joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10b6e50
Capabilities:
Log keystrokes via application hook

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp byte [esi + 0x55], 0
jne 0x10b6ead
cmp dword [0x10fd678], 0
jne 0x10b6ead
push ebx
push edi
mov dword [0x10fd678], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ebx, eax
push ebx
push 0
push 0x10b6dce
push 7
call edi
push ebx
push 0
push 0x10b68e5
push 2
mov dword [esi + 0x14], eax
call edi
push ebx
push 0
push 0x10b6423
push 4
mov dword [esi + 0x18], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
mov byte [esi + 0x55], 1
pop ebx
pop esi
ret
Function at 0x10c18e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 4
mov eax, 0x10e2c99
call fcn.01001f95
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010abcd9
and dword [ebp - 4], 0
lea ecx, [esi + 0x7a8]
mov dword [esi], 0x10052fc
call fcn.0100ad56
lea ebx, [esi + 0x7bc]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0100ad56
mov al, byte [ebp + 0x1c]
and dword [esi + 0x8c], 0
mov byte [esi + 0x7d4], al
xor eax, eax
lea edi, [esi + 0x398]
mov byte [ebp - 4], 2
mov word [edi], ax
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
push 0x106d1ec
push 0x106d1d8
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call sub.MFC42u.dll_CWinApp::GetProfileStringW
push dword [ebp + 0x18]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0100ae0e
test eax, eax
jge 0x10c1985
mov ecx, ebx
call fcn.0100a6f0
lea ebx, [esi + 0x7c0]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10c19a4
test al, 0x10
je 0x10c19a4
mov eax, dword [ebx]
mov dword [esi + 0x8c], eax
lea eax, [ebp + 0x20]
push eax
push 5
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x10c1a07
push edi
push dword [ebp + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp + 0x1c], ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
call fcn.0100a5e6
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [ebp + 0x1c]
call fcn.0100a5cf
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [esi + 0x8c], ebx
jne 0x10c19f6
mov dword [esi + 0x8c], edi
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x10c1a07
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x208
lea edi, [esi + 0x5a0]
push ebx
push edi
call sub.msvcrt.dll_memset
or dword [esi + 0x94], 0x80840
add esp, 0xc
push 0xe136
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 0x104
mov dword [esi + 0xa8], 0xc9
mov dword [esi + 0x7d0], ebx
call dword [sym.imp.mmcbase.DLL_struct_HINSTANCE______stdcall_GetStringModule_void_]
lea edi, [esi + 0x7a8]
push eax
mov ecx, edi
call fcn.010329cf
cmp eax, ebx
jge 0x10c1a77
push 0x10c1a9c
mov ecx, edi
call fcn.0100ae0e
cmp eax, ebx
jge 0x10c1a77
mov ecx, edi
call fcn.0100a6f0
mov eax, dword [esi + 0x7ac]
lea ecx, [ebp + 0x18]
mov dword [esi + 0x90], eax
mov byte [ebp - 4], 2
call fcn.0100a3e5
mov eax, esi
call fcn.01001fcf
ret 0x1c
Function at 0x10ce142
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x10e6f51
call fcn.01001f95
mov esi, ecx
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
call fcn.0100ad56
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0100ad56
push dword [esi + 0xc]
lea eax, [ebp - 0x30]
push dword [0x10ce2b8]
mov byte [ebp - 4], 1
push 0x106b664
push eax
call fcn.0104c71d
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x10ce1c2
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10ce282
cmp byte [eax + 0x19], 2
jb 0x10ce282
mov esi, dword [esi + 0xc]
push edi
push esi
push 0x106da08
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010701d4
jmp 0x10ce282
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], 4
push 0x80000002
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x10ce222
jle 0x10ce1fd
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x10ce282
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10ce282
cmp byte [eax + 0x19], 4
jb 0x10ce282
push edi
push dword [ebp - 0x2c]
push 0x106da08
push 0xc
jmp 0x10ce1b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [0x10ce2b4]
push dword [ebp - 0x10]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x10ce277
cmp eax, 2
je 0x10ce282
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x10ce282
cmp byte [eax + 0x19], 2
jb 0x10ce282
push dword [ebp - 0x2c]
push dword [0x10ce2b4]
push 0x106da08
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f855
jmp 0x10ce282
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
mov dword [esi + 0x20], eax
cmp dword [ebp - 0x10], 0
je 0x10ce291
push dword [ebp - 0x10]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0100a77d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0100a77d
mov eax, edi
call fcn.01001fcf
ret
Function at 0x10d0ad4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10f52d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10d0bbc
push 0x80000000
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x10d0ba9
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x10d0b98
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x10d0b82
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x10d0b98
push eax
push edi
push dword [ebp - 0x110]
call fcn.010374f5
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x10d0bab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01002492
leave
ret 4
Function at 0x408d86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x418f92
call fcn.00416c70
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
push edi
mov edi, dword [esi + 0x48]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call sub.MFC42u.DLL_AfxGetModuleState
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x408dd6
push 5
push eax
call sub.MFC42u.DLL_AfxFindResourceHandle
push 5
push dword [esi + 0x44]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x408de4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x408df2
or eax, 0xffffffff
jmp 0x408ef9
mov ecx, esi
call sub.MFC42u.DLL_CDialog::PreModal
mov dword [ebp - 0x14], eax
call sub.MFC42u.DLL_AfxUnhookWindowCreate
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x408e34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x408e34
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x408e34
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], edi
push esi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_AfxHookWindowCreate
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CWnd::FromHandle
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call sub.MFC42u.DLL_CWnd::CreateDlgIndirect
cmp eax, edi
je 0x408eb6
test byte [esi + 0x28], 0x10
je 0x408e81
push 4
pop ebx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::GetStyle
test ah, 1
je 0x408e79
push 5
pop ebx
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::RunModalLoop
cmp dword [esi + 0x20], edi
je 0x408eb6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call sub.MFC42u.DLL_CWnd::SetWindowPos
jmp 0x408eb6
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_AfxTryCleanup
cmp dword [ebp - 0x20], edi
je 0x408ecf
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x408ee8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x408ee8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call sub.MFC42u.DLL_CDialog::PostModal
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40b78a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41917a
call fcn.00416c70
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
push edi
mov edi, dword [esi + 0x48]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call sub.MFC42u.DLL_AfxGetModuleState
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40b7da
push 5
push eax
call sub.MFC42u.DLL_AfxFindResourceHandle
push 5
push dword [esi + 0x44]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b7e8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40b7f6
or eax, 0xffffffff
jmp 0x40b8fd
mov ecx, esi
call sub.MFC42u.DLL_CDialog::PreModal
mov dword [ebp - 0x14], eax
call sub.MFC42u.DLL_AfxUnhookWindowCreate
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40b838
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40b838
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40b838
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], edi
push esi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_AfxHookWindowCreate
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CWnd::FromHandle
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call sub.MFC42u.DLL_CWnd::CreateDlgIndirect
cmp eax, edi
je 0x40b8ba
test byte [esi + 0x28], 0x10
je 0x40b885
push 4
pop ebx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::GetStyle
test ah, 1
je 0x40b87d
push 5
pop ebx
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::RunModalLoop
cmp dword [esi + 0x20], edi
je 0x40b8ba
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call sub.MFC42u.DLL_CWnd::SetWindowPos
jmp 0x40b8ba
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_AfxTryCleanup
cmp dword [ebp - 0x20], edi
je 0x40b8d3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40b8ec
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40b8ec
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call sub.MFC42u.DLL_CDialog::PostModal
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40bc9c
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x41913c
call fcn.00416c70
sub esp, 0x4d0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov esi, 0x12d
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x4dc]
rep stosd dword es:[edi], eax
mov eax, dword [0x4047f4]
xor ebx, ebx
inc ebx
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x294], ebx
call sub.MFC42u.DLL_CString::CString_2
push 0x438a
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::LoadStringW
push dword [ebp - 0x10]
lea eax, [ebp - 0x3d0]
push 0x96
push eax
call fcn.00408ad1
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push eax
call fcn.0040a659
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
push eax
call fcn.00407781
push 0xa
lea eax, [ebp - 0x28]
push eax
push 0xa
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40bd62
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
cmp eax, ebx
pop ecx
je 0x40bd62
mov dword [ebp - 0x58], 3
sub esp, 0x4b4
mov ecx, esi
mov edi, esp
lea esi, [ebp - 0x4dc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
call fcn.00412de0
push 0x4389
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
push dword [ebp - 0x10]
lea eax, [ebp - 0x3d0]
push 0x96
push eax
call fcn.00408ad1
sub esp, 0x4b4
mov edi, esp
mov ecx, 0x12d
lea esi, [ebp - 0x4dc]
mov dword [ebp - 0x74], 2
mov dword [ebp - 0x70], 0xc8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
call fcn.00412de0
push 0x438b
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
push dword [ebp - 0x10]
lea eax, [ebp - 0x3d0]
push 0x96
push eax
call fcn.00408ad1
sub esp, 0x4b4
mov edi, esp
mov ecx, 0x12d
lea esi, [ebp - 0x4dc]
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x70], 0xc8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
call fcn.00412de0
push 0x438c
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
push dword [ebp - 0x10]
lea eax, [ebp - 0x3d0]
push 0x96
push eax
call fcn.00408ad1
sub esp, 0x4b4
mov edi, esp
mov ecx, 0x12d
lea esi, [ebp - 0x4dc]
mov dword [ebp - 0x74], 2
mov dword [ebp - 0x70], 0x12c
mov dword [ebp - 0x29c], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
call fcn.00412de0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40cb01
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x8023
push 0
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x402b80
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bc6a
push eax
call fcn.00408b5f
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.00408ad1
mov edi, 0x402b64
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bc6a
push eax
call fcn.00408b5f
and dword [ebp - 4], 0
push 0x402b50
lea eax, [ebp - 4]
push eax
lea ecx, [ebx + 0xf0]
call fcn.0040a2f0
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x40cbab
cmp dword [ebp - 4], 0
je 0x40cbab
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40cc42
and word [ebp - 0x414], 0
push esi
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40cbe1
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x40cbe1
and word [eax + 2], 0
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0040bc6a
push eax
call fcn.00408b5f
lea eax, [ebp - 0x61c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40cc12
push 0
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push eax
call ebx
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e4a1
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp dword [eax + 0x4a4], 2
push edi
jne 0x40e4c0
xor edi, edi
jmp 0x40e4cb
mov ecx, dword [esi + 0x10]
call fcn.0040781e
movzx edi, al
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x40347c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esi + 0x10]
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.00407ace
test al, al
lea eax, [ebp - 0x20c]
je 0x40e54b
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 4]
inc dword [eax + 0x28]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040e3c0
test eax, eax
jge 0x40e53d
mov dword [ebp - 4], 0x377b
jmp 0x40e559
mov ecx, dword [esi + 0x10]
call fcn.00407c07
mov eax, edi
pop edi
pop esi
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0x3b04
push 0x41a118
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x40e9e6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
call fcn.00407d28
cmp dword [esi + 0x14], 0
je 0x40ea49
mov ecx, dword [esi + 0x10]
xor eax, eax
cmp byte [esi + 0x44], al
sete al
push eax
call fcn.00407d51
lea ecx, [ebp - 0x20c]
call fcn.004090e4
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x402b50
push dword [ebp - 0x20c]
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x20c]
call fcn.0040880e
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0xea60
push 0x11
mov ebx, 0x401
push ebx
push dword [eax + 4]
call edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40ea73
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 4]
push 0
push 0x11
push ebx
push dword [eax + 4]
call edi
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
test eax, eax
pop edi
pop ebx
je 0x40ea93
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 4]
and dword [eax + 0xc], 0
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x40f342
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xb4]
push eax
push 0x426e
mov dword [ebp - 8], edi
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42u.DLL_CWnd::GetWindowTextW_1
lea esi, [edi + 0xb0]
push esi
push 0x426f
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42u.DLL_CWnd::GetWindowTextW_1
mov eax, 0x208
call fcn.00416c20
mov dword [ebp - 4], esp
push 0x104
push dword [ebp - 4]
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f3c6
mov ebx, 0x4039cc
push ebx
push dword [ebp - 4]
lea ecx, [edi + 0xb4]
call sub.MFC42u.DLL_CString::Replace_1
push ebx
push dword [ebp - 4]
mov ecx, esi
call sub.MFC42u.DLL_CString::Replace_1
mov ebx, dword [esi]
test ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x40f3d6
xor eax, eax
jmp 0x40f3f9
push ebx
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00416c20
mov eax, esp
push 0
push edi
push ebx
push eax
call fcn.0040789a
mov edi, dword [ebp - 8]
push eax
call dword [sym.imp.msvcrt.dll_atof]
fstp dword [edi + 0xa8]
mov ebx, dword [edi + 0xb4]
test ebx, ebx
pop ecx
jne 0x40f415
xor eax, eax
jmp 0x40f435
push ebx
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00416c20
mov eax, esp
push 0
push esi
push ebx
push eax
call fcn.0040789a
push eax
call dword [sym.imp.msvcrt.dll_atof]
fstp dword [edi + 0xac]
pop ecx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebx + 4]
push eax
mov esi, 0xff
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00408ad1
push 0x404308
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bc6a
lea eax, [ebp + 0x114]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bc6a
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp + 0x114]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x412e54
xor eax, eax
jmp 0x412fba
push dword [ebp + 0x46c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp + 0x46c]
push eax
push 3
push edi
push 0x4042ec
push dword [ebp - 4]
call esi
push dword [ebp + 0x488]
lea eax, [ebp + 0x488]
push eax
push 3
push edi
push 0x4042d4
push dword [ebp - 4]
call esi
push 4
pop ebx
push ebx
lea eax, [ebp + 0x244]
push eax
push ebx
push edi
push 0x4042c4
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp + 0x248]
push eax
push ebx
push edi
push 0x4042a8
push dword [ebp - 4]
call esi
push 1
lea eax, [ebp + 0x24c]
push eax
push 3
push edi
push 0x404294
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp + 0x250]
push eax
push ebx
push edi
push 0x404284
push dword [ebp - 4]
call esi
lea eax, [ebp + 0x254]
push eax
call dword [sym.imp.MSO.DLL_Ordinal_670]
test eax, eax
jne 0x412f0f
lea eax, [ebp + 0x254]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
pop ecx
push eax
lea eax, [ebp + 0x254]
jmp 0x412f16
mov dword [ebp - 8], edi
push edi
lea eax, [ebp - 8]
push eax
push 1
push edi
push 0x404268
push dword [ebp - 4]
call esi
push 1
lea eax, [ebp + 0x45c]
push eax
push 3
push edi
push 0x404260
push dword [ebp - 4]
call esi
push 1
lea eax, [ebp + 0x460]
push eax
push 3
push edi
push 0x404250
push dword [ebp - 4]
call esi
push 1
lea eax, [ebp + 0x464]
push eax
push 3
push edi
push 0x404240
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp + 0x468]
push eax
push ebx
push edi
push 0x40422c
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp + 0x4b4]
push eax
push ebx
push edi
push 0x404210
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 0x4b8]
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x4041f8
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret 0x4b4