joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42529a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 2
xor eax, eax
mov dword [ebp - 4], 0x2e
pop esi
push esi
mov dword [ebp - 8], eax
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebx]
cmp dword [eax - 8], edx
je 0x42533c
push dword [ebp - 4]
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CString::Find]
push 1
mov ecx, ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.MFC42u.dll_CString::GetBuffer]
mov ebx, eax
push ebx
call dword [sym.imp.msvcrt.dll__wtoi]
imul edx, eax, 0x3e8
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 8], edx
test eax, eax
js 0x42533c
lea ebx, [ebx + eax*2]
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jle 0x42531c
xor eax, eax
mov word [ebx + 4], ax
push ebx
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
push ebx
imul edi, eax, 0xa
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jge 0x42533c
sub esi, eax
imul edi, edi, 0xa
sub esi, 1
jne 0x425334
mov eax, dword [ebp - 8]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42534f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
add eax, 5
mov dword [ebp - 4], 0x2e
mov ecx, 0x3e8
div ecx
push esi
push edi
push 0xa
mov esi, eax
mov eax, edx
pop ecx
xor edx, edx
div ecx
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp + 8]
push 0x18
call dword [sym.imp.MFC42u.dll_CString::GetBufferSetLength]
test edi, edi
je 0x4253b4
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push 0x40f108
push 0x18
push eax
call fcn.004159df
add esp, 0x18
jmp 0x4253c5
push esi
push 0x40f11c
push 0x18
push eax
call fcn.004159df
add esp, 0x10
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.MFC42u.dll_CString::ReleaseBuffer]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x426dec
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x28
call fcn.00426cb0
test eax, eax
jne 0x426ea9
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
push 0x426ec0
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 4], eax
test eax, eax
jne 0x426e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0041e8bd
jmp 0x426ea8
push ebx
push esi
mov esi, edi
mov ebx, 0x4a39a0
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, ebx
test eax, eax
je 0x426e60
call dword [sym.imp.MFC42u.dll_CWinThread::PumpMessage]
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CCmdTarget::RestoreWaitCursor]
jmp 0x426e3c
push esi
call fcn.0044b960
inc esi
test eax, eax
jne 0x426e3c
push 4
push 0x1cff
push 0xffffffffffffffff
lea eax, [ebp - 4]
mov esi, edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x426e3c
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x43277d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x4a1d78]
xor eax, esp
mov dword [esp], eax
push ebx
push esi
mov ebx, ecx
mov ecx, dword [0x4a2b54]
push edi
call fcn.0041b699
xor esi, esi
mov dword [0x4a2f40], esi
mov dword [0x4a2f3c], esi
cmp dword [0x4a4978], esi
je 0x4327ca
call fcn.004338c7
mov dword [0x4a2b98], 1
jmp 0x4328b0
mov edi, dword [0x49f134]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call dword [sym.imp.MFC42u.dll_CWnd::FromHandle]
cmp eax, ebx
je 0x432836
cmp dword [edi + 0x20], esi
jne 0x432836
cmp dword [edi + 0x14], esi
jne 0x432822
mov eax, dword [0x49f134]
cmp dword [eax + 0x40], 0x259
je 0x432822
cmp dword [eax + 0x40], 0x25a
je 0x432822
cmp dword [eax + 0x40], 0x25b
je 0x432822
mov eax, dword [edi]
push 5
mov esi, dword [eax + 0x68]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
test al, al
je 0x432887
mov eax, dword [edi]
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
jmp 0x432887
push esi
push esi
push ecx
push 0x400
mov ecx, ebx
call fcn.004341df
push 0x7f16
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [0x49f134]
mov eax, dword [edi]
mov esi, dword [eax + 0x84]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
test eax, eax
je 0x43287d
mov ecx, ebx
call fcn.00434939
mov dword [0x4a2b98], 1
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4328a1
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4328ab
mov dword [0x4a2b98], 1
call fcn.00433859
mov ecx, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048e170
mov esp, ebp
pop ebp
ret
Function at 0x438eb5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a1d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
push dword [edi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor ebx, ebx
test esi, esi
mov dword [ebp - 0x18], esi
setne bl
test ebx, ebx
je 0x438fe3
mov ecx, dword [ebp - 0x24]
movzx eax, word [edi + 8]
push 0
push edi
push esi
push eax
mov eax, dword [ecx + 8]
push 0
push dword [eax]
mov eax, dword [ecx + 0x10]
push dword [eax]
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ebx, eax
test ebx, ebx
je 0x438fe3
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
setne bl
test ebx, ebx
je 0x438fc5
mov esi, dword [edi + 0x20]
mov eax, 0x4d42
mov edx, dword [edi]
mov word [ebp - 0x14], ax
mov eax, dword [edi + 0x14]
add eax, 0xe
lea ecx, [edx + esi*4]
add eax, ecx
mov dword [ebp - 0x12], eax
xor eax, eax
mov dword [ebp - 0xe], eax
lea eax, [esi*4 + 0xe]
mov esi, dword [ebp - 0x1c]
add eax, edx
push 0
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0x20]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x438fc5
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [edi + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x438fc5
push 0
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
cmp esi, 0xffffffff
je 0x438fe0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x438fde
test ebx, ebx
je 0x438fde
xor ebx, ebx
inc ebx
jmp 0x438fe0
xor ebx, ebx
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x438fee
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e170
mov esp, ebp
pop ebp
ret 8
Function at 0x44bbd3
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push edi
mov edi, ecx
movzx eax, word [edi + 0x224]
test al, 8
je 0x44bc7e
push esi
test al, 0x10
jne 0x44bc0f
mov esi, dword [edi + 0x648]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0xea60
ja 0x44bc0f
mov eax, 0xfff7
and word [edi + 0x224], ax
jmp 0x44bc7d
xor esi, esi
cmp dword [edi + 0x248], esi
je 0x44bc7d
test byte [edi + 0x224], 0x10
lea eax, [edi + 0x64c]
jne 0x44bc2e
lea eax, [edi + 0x650]
push esi
push 0x2010
push dword [eax]
call dword [sym.imp.MFC42u.dll_AfxMessageBox_1]
cmp eax, 1
jne 0x44bc59
mov eax, 0xffe7
and word [edi + 0x224], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x648], eax
mov eax, dword [edi + 0x20]
push dword [eax + 0x100]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44bc7d
mov eax, dword [edi + 0x20]
push esi
push esi
push dword [eax + 0x100]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop edi
ret

Function at 0x44fce3
Capabilities:
Get geographical location

Disassembly:
push 0x20c
mov eax, 0x49285e
call fcn.0048e6b2
mov esi, 0xac
lea eax, [ebp - 0x168]
push esi
xor ebx, ebx
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x214]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0xbc]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0x168]
mov edi, 0x400
push 0x56
pop esi
push esi
push eax
push 0x1001
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fe20
push esi
lea eax, [ebp - 0x214]
push eax
push 0x1002
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fe20
push esi
lea eax, [ebp - 0xbc]
push eax
push 0x1004
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x44fd97
push esi
lea eax, [ebp - 0xbc]
push eax
push 0xb
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fe20
lea ecx, [ebp - 0x218]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
lea eax, [ebp - 0x168]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x218]
call dword [0x4a5528]
push 0x40f804
lea ecx, [ebp - 0x218]
call dword [sym.imp.MFC42u.dll_CString::operator_1]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
call dword [sym.imp.MFC42u.dll_CString::operator_1]
push 0x40f104
lea ecx, [ebp - 0x218]
call dword [sym.imp.MFC42u.dll_CString::operator_1]
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x218]
call dword [sym.imp.MFC42u.dll_CString::operator_1]
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.msvcrt.dll__wsetlocale]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x218]
call dword [sym.imp.MFC42u.dll_CString::CString]
call fcn.0048e652
ret
Function at 0x459004
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4a1d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov dword [ebp - 0x228], ecx
mov esi, edx
mov ecx, dword [ebp + 0x1c]
lea edx, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], ecx
mov ecx, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x234], edi
call fcn.0045918b
cmp dword [0x4a3d98], 0
mov ebx, eax
jne 0x459088
push dword [ebp - 0x22c]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push dword [ebp - 0x230]
push edi
call fcn.0045943c
mov ebx, eax
test ebx, ebx
je 0x459171
xor edi, edi
test esi, esi
je 0x4590a8
cmp word [esi], di
je 0x4590a8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4590a8
inc edi
push dword [ebp - 0x234]
lea edx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x224]
mov ecx, esi
push dword [ebp - 0x228]
push edi
push dword [ebp + 8]
call fcn.00459480
mov ebx, eax
test ebx, ebx
je 0x459164
mov edx, dword [ebp - 0x220]
lea ecx, [ebp - 0x20c]
push edi
push esi
call fcn.0045a5cb
mov ebx, eax
test ebx, ebx
je 0x459164
mov esi, 0x412f20
lea eax, [ebp - 0x238]
push eax
push ecx
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
lea edi, [ebp - 0x21c]
push dword [ebp - 0x228]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x21c]
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00438238
mov esi, dword [ebp - 0x234]
mov ecx, esi
push eax
call fcn.0041d2a0
push dword [ebp - 0x220]
mov dword [esi + 0x10], 4
lea edi, [esi + 0x14]
lea esi, [ebp - 0x21c]
mov ecx, 0x4a3d78
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x4a5528]
jmp 0x459171
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e170
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x45918b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a1d78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov esi, edx
push 0
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, eax
test ecx, ecx
je 0x459215
push edi
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.004158fd
xor ecx, ecx
test eax, eax
setns cl
test ecx, ecx
je 0x459215
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
mov ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e170
mov esp, ebp
pop ebp
ret
Function at 0x46a16d
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x49458a
call fcn.0048e6b2
mov esi, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x18], ebx
push 0x40efc8
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edi, 0x80004005
test esi, esi
je 0x46a261
sub esp, 0x10
lea ecx, [ebp - 0x18]
mov edi, esp
mov esi, 0x4121e8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046a4ee
test eax, eax
js 0x46a259
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
xor eax, eax
push eax
mov esi, dword [ebx]
push eax
push eax
push ebx
mov ecx, dword [esi + 0x14]
call dword [0x4a60bc]
call dword [esi + 0x14]
push 0xd
pop eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4a60bc]
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x18]
lea esi, [ebp - 0x30]
push ecx
sub esp, 0x10
mov edi, esp
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0xe8]
mov ecx, esi
call dword [0x4a60bc]
call esi
test eax, eax
jne 0x46a24f
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov eax, dword [ebx]
push ecx
push ebx
mov esi, dword [eax + 0x88]
mov ecx, esi
call dword [0x4a60bc]
call esi
lea ecx, [ebp - 0x30]
call fcn.0046b00f
jmp 0x46a25c
mov ebx, dword [ebp - 0x18]
mov edi, 0x80004005
lea eax, [ebp - 0x1c]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x41218c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46a2d5
mov ecx, dword [ebp - 0x14]
xor edi, edi
mov esi, dword [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x46a294
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x14]
push 1
push edi
push 0x41219c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x46a2d5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, edi
test esi, esi
je 0x46a2d5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x46a2f6
mov ecx, dword [ebx]
push ebx
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4a60bc]
call esi
mov eax, edi
call fcn.0048e652
ret
Function at 0x46af76
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 0x41219c
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46afe5
cmp dword [ebp - 4], 1
je 0x46afbd
cmp dword [ebp - 4], 2
je 0x46afbd
push 0xd
pop eax
jmp 0x46afe5
mov ecx, dword [ebp - 8]
test esi, esi
je 0x46afdf
test ecx, ecx
je 0x46afda
test cl, 1
jne 0x46afb8
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x46afdf
jmp 0x46afb8
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46e8c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e928
xor ebx, ebx
test eax, 0x4000
je 0x46e8fd
push ebx
push esi
call dword [sym.imp.FeClient.dll_EfsClientDecryptFile]
test eax, eax
je 0x46e8fd
push eax
push ecx
mov ecx, dword [ebp + 4]
call fcn.0046da68
jmp 0x46e92a
cmp word [edi], bx
je 0x46e928
mov edx, edi
mov ecx, esi
call fcn.0046e010
mov esi, eax
test esi, esi
jns 0x46e928
mov ecx, dword [ebp + 4]
mov edx, 0xd9
push esi
push 0x412270
call fcn.00416a5c
mov eax, esi
jmp 0x46e92a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x47042d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x438
mov eax, 0x494c66
call fcn.0048e6b2
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
push 0x208
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, esi
push 0x40efc8
call fcn.004180ac
push edi
push 0x1a
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push edi
mov dword [ebp - 0x440], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x470583
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00470d0c
push 0x412510
mov ecx, esi
call fcn.00470cde
push 0xffffffffffffffff
push edi
add ebx, 0x1c
mov ecx, esi
push ebx
call fcn.0042271c
push 0x40fd0c
mov ecx, esi
call fcn.00470cde
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x4704da
mov eax, dword [edi]
jmp 0x4704dc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x470542
cmp dword [esi + 0x18], 8
jb 0x4704f2
mov eax, dword [edi]
jmp 0x4704f4
mov eax, edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x470542
xor ebx, ebx
mov dword [ebp - 0x424], 7
xor eax, eax
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], ax
push 0xffffffffffffffff
xor edi, edi
lea eax, [ebp - 0x43c]
push ebx
inc edi
mov ecx, esi
push eax
mov dword [ebp - 4], edi
call fcn.0041aa3d
push ebx
push edi
lea ecx, [ebp - 0x43c]
call fcn.0041ab08
jmp 0x470583
cmp dword [ebx + 0x18], 8
jb 0x47054d
mov ebx, dword [ebx + 4]
jmp 0x470550
add ebx, 4
cmp dword [esi + 0x18], 8
jb 0x470558
mov edi, dword [edi]
lea eax, [ebp - 0x420]
push eax
push 0
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetTempFileNameW]
push 0x40efc8
mov ecx, esi
call fcn.00470d0c
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00470cde
mov eax, esi
call fcn.0048e652
ret 4
Function at 0x4708ee
Capabilities:
Delete file
Delete registry key

Disassembly:
push 0x5c
mov eax, 0x494dbc
call fcn.0048e6b2
mov edi, ecx
lea eax, [edi + 0x1c]
mov edx, 0x4124a8
push eax
lea ecx, [ebp - 0x64]
call fcn.004726ea
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov edx, eax
call fcn.0047273a
pop ecx
push 0
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0041ab08
push 0
push 0x40efc8
push dword [edi + 0x14]
push ecx
mov ecx, edi
call fcn.00472789
test eax, eax
jne 0x470949
xor esi, esi
jmp 0x4709eb
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.0042271c
push 0x41254c
lea ecx, [ebp - 0x48]
call fcn.004180ac
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [edi + 0x48]
call fcn.00470bc0
push 0
push 1
lea ecx, [ebp - 0x48]
mov esi, dword [eax]
mov byte [ebp - 4], 2
call fcn.0041ab08
cmp esi, dword [edi + 0x4c]
je 0x4709cc
push 0x41254c
lea ecx, [ebp - 0x48]
call fcn.004180ac
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x48]
call fcn.00470c37
cmp dword [eax + 0x18], 8
jb 0x4709b6
mov eax, dword [eax + 4]
jmp 0x4709b9
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0041ab08
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4709d8
lea eax, [ebp - 0x28]
push eax
push SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4709eb
inc esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041ab08
mov eax, esi
call fcn.0048e652
ret