joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b30a
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x70c]
mov ecx, dword [edi]
test ecx, ecx
je 0x42b324
push 1
call fcn.0042923b
and dword [edi], 0
mov eax, dword [0x456778]
mov ecx, dword [eax + 0xcc]
push ebx
push 0x402820
add ecx, 0x44
call fcn.00437fef
mov ebx, dword [esi + 0x5c]
xor edi, edi
test ebx, ebx
jbe 0x42b360
push edi
mov ecx, esi
call fcn.00414f52
test eax, eax
je 0x42b35b
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
inc edi
cmp edi, ebx
jb 0x42b346
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x54]
call sub.MFC42u.DLL_CObArray::SetSize
mov eax, dword [0x456778]
mov ecx, dword [eax + 0xc8]
call fcn.0042c7a3
mov eax, dword [0x456778]
mov ecx, dword [eax + 0xcc]
call fcn.00424e89
mov ecx, dword [0x456778]
push 0
add ecx, 0x8fc
call fcn.00426bbe
mov ecx, esi
call fcn.004287ec
mov ecx, esi
call fcn.00428c4f
cmp dword [esi + 0x29c], 0
pop ebx
je 0x42b3d0
mov eax, dword [esi + 0x2c4]
test byte [eax + 0x624], 4
je 0x42b3d0
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.0042b1bc
push 1
mov ecx, esi
call fcn.00428b80
mov ecx, dword [0x456778]
call fcn.0040fd88
mov eax, dword [0x456778]
mov ecx, dword [eax + 0x20]
push 1
call fcn.004216bc
pop edi
xor eax, eax
pop esi
ret

Function at 0x42ba9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
cmp dword [0x4569f0], esi
jne 0x42bb5c
cmp word [0x4569ec], si
mov dword [0x4569f0], 1
jne 0x42bb6d
push 0x407758
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
cmp eax, esi
mov dword [0x4569e8], eax
jne 0x42bb64
mov word [0x4569ec], 1
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x40772c
push SysReAllocString
mov dword [0x4569e4], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42bb5c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x407708
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bb53
push 0xa
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [0x4569e4], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4569e4]
pop esi
leave
ret
mov word [0x4569ec], 2
cmp word [0x4569ec], 2
jne 0x42baed
push 0x4076e4
push 0x4076d4
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x42baed
mov ecx, dword [0x4569e8]
cmp ecx, esi
je 0x42baed
push esi
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x4569e4], eax
jmp 0x42bb61
Function at 0x430344
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx + 0xf2c]
push edi
mov edi, dword [ebx + 0x9c8]
cmp edi, 0xffffffff
jne 0x4303ac
movzx eax, word [ebx + 0xf48]
mov edi, eax
and edi, 0x3ff
cmp edi, 4
jne 0x4303ac
mov edx, 0x404
cmp eax, edx
je 0x4303aa
mov ecx, 0x804
cmp eax, ecx
je 0x43044b
cmp eax, 0xc04
je 0x4303aa
cmp eax, 0x1004
je 0x43044b
cmp eax, 0x1404
jne 0x4303ac
mov edi, edx
mov eax, dword [esi]
push 0
push 4
push esi
call dword [eax + 0x18]
mov eax, dword [0x456778]
cmp dword [eax + 0x9c0], 0
je 0x4303cb
mov dword [ebp - 4], 4
cmp dword [eax + 0x9c4], 0
je 0x4303d8
or dword [ebp - 4], 8
push dword [ebp - 4]
mov eax, dword [esi]
push 4
push esi
call dword [eax + 0x18]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x78]
test eax, eax
mov dword [ebp - 4], eax
jge 0x430443
cmp eax, 0xc6c8111e
je 0x4303ff
cmp eax, 0xc6c8113b
jne 0x430443
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00437805
test eax, eax
jne 0x43042a
push esi
lea eax, [ebp - 0x20c]
push eax
movzx eax, di
push 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0x1260
mov ecx, ebx
call fcn.0042ee8a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov edi, ecx
jmp 0x4303ac

Function at 0x430544
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x109c
call fcn.004445f0
push ebx
push esi
push edi
mov esi, ecx
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x200
lea ebx, [esi + 0xb28]
push ebx
push 0xe000
push eax
call edi
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x430584
and dword [ebp - 4], eax
jmp 0x43058a
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], eax
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
xor ecx, ecx
cmp dword [0x456184], ecx
push 0x42e095
sete cl
push ecx
push ebx
push dword [ebp - 4]
push eax
call fcn.00448bbc
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0xb0c], eax
jne 0x4305ce
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1239
mov ecx, esi
call fcn.0042ee8a
xor eax, eax
jmp 0x430648
push 0x824
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.MSO.DLL_Ordinal_1326]
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x20
lea ecx, [ebp - 0x54]
push ecx
push 0x1259
push eax
call edi
lea eax, [ebp - 0x54]
push eax
push dword [0x458228]
call fcn.00448cb0
push ebx
push 0x453f48
add esi, 0xf54
push esi
push dword [0x45822c]
call dword [sym.imp.MSO.DLL_Ordinal_3339]
cmp dword [esi], ebx
je 0x430645
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov esi, dword [esi]
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [eax + 4]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430b39
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x44b7b6
call fcn.00444524
sub esp, 0x87c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x888]
push eax
xor ebx, ebx
push 0x40001
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x68], 0x44
call fcn.0043064d
test eax, eax
jl 0x430bff
mov edi, 0x40800c
push edi
mov esi, 0x208
push esi
lea eax, [ebp - 0x478]
push eax
call fcn.0040feeb
lea eax, [ebp - 0x888]
push eax
push esi
lea eax, [ebp - 0x478]
push eax
call fcn.00417208
push edi
push esi
lea eax, [ebp - 0x478]
push eax
call fcn.00417208
cmp dword [ebp + 8], ebx
je 0x430bdf
push 0x4041d4
push esi
lea eax, [ebp - 0x478]
push eax
call fcn.00417208
push dword [ebp + 8]
lea eax, [ebp - 0x478]
push esi
push eax
call fcn.00417208
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x478]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x430c1a
mov ecx, dword [0x456778]
push ebx
push ebx
push ebx
push ebx
push 0x10
push 0x1239
call fcn.0042ee8a
mov esi, dword [ebp - 0x14]
jmp 0x430c26
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4312b8
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44b89e
call fcn.00444524
sub esp, 0x26c
push ebx
push esi
push edi
call sub.MFC42u.DLL_CWinApp::GetAppRegistryKey
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
push 5
pop ecx
mov esi, 0x40806c
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push 0xf
pop ecx
mov esi, 0x408030
lea edi, [ebp - 0x70]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x7c
rep movsd dword es:[edi], dword [esi]
je 0x431402
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4313e8
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x104
push edi
lea eax, [ebp - 0x278]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x431380
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x278]
push eax
call sub.MFC42u.DLL_CString::operator
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_CString::operator
inc dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x431349
cmp dword [ebp - 0x14], ebx
jne 0x4313dc
mov dword [ebp - 0x1c], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4313c5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call fcn.0044391a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_CString::operator
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
je 0x4313d7
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x4313e8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_CString::operator
cmp dword [ebp - 0x10], ebx
je 0x4313f9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x431415
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
push edi
mov edi, 0x40800c
push edi
mov esi, 0x30c
push esi
lea eax, [ebp - 0x670]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov word [ebp - 0x670], bx
call fcn.00417208
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0x670]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
push 0x11
xor eax, eax
cmp dword [ebp + 8], ebx
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x58], 0x44
je 0x431532
mov ebx, 0x4041d4
push ebx
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
cmp dword [ebp + 0xc], 0
je 0x431520
mov edi, 0x404104
push edi
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
push 0x4021ec
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
push ebx
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
push edi
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
push 0x4021f8
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
cmp dword [ebp + 0x10], 0
je 0x431512
push dword [ebp + 0x10]
lea eax, [ebp - 0x670]
push esi
push eax
call fcn.00430d04
push ebx
push esi
lea eax, [ebp - 0x670]
push eax
call fcn.00417208
push dword [ebp + 8]
lea eax, [ebp - 0x670]
push esi
push eax
call fcn.00430d04
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x670]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x43155b
mov dword [ebp - 4], 0x80004005
jmp 0x43156b
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x432221
Capabilities:
Get common file path

Disassembly:
mov eax, 0x44b99e
call fcn.00444524
sub esp, 0x228
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
inc esi
xor ebx, ebx
xor edi, edi
cmp eax, esi
mov dword [ebp - 0x14], ecx
je 0x432275
jle 0x432340
cmp eax, 3
jg 0x432340
xor edx, edx
cmp eax, 2
sete dl
push esi
push edx
push 0xffffffffffffffff
push 2
call fcn.00431998
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
jmp 0x432340
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ecx + 0xcc]
lea ecx, [ebp - 0x10]
add eax, 0x44
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00437d07
mov edi, eax
cmp edi, ebx
jl 0x432331
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4322de
mov dword [ebp - 0x1c], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x40443c
push eax
mov byte [ebp - 4], 1
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x4322d2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push ebx
push eax
call dword [ecx + 0x2c]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], bl
call fcn.00415caa
cmp edi, ebx
jl 0x432331
cmp dword [ebp - 0x18], ebx
je 0x432331
mov eax, dword [0x456778]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x40]
cmp dword [eax + 0x5c], ebx
jbe 0x432301
mov eax, dword [eax + 0x58]
mov edi, dword [eax]
jmp 0x432303
xor edi, edi
push esi
push esi
mov ecx, edi
call fcn.004355aa
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, edi
call fcn.00435fb2
mov ecx, dword [ebp - 0x14]
push esi
push esi
push 0xffffffffffffffff
push 2
call fcn.00431998
xor ecx, ecx
cmp eax, ebx
setge cl
mov edi, ecx
jmp 0x432333
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00415caa
cmp edi, ebx
mov dword [ebp - 0x10], esi
je 0x4323c5
xor eax, eax
mov word [ebp - 0x234], bx
mov ecx, 0x81
lea edi, [ebp - 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x234]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x234]
push eax
mov esi, 0xff000
xor edi, edi
call dword [sym.imp.SHELL32.dll_SHGetDiskFreeSpaceExW]
test eax, eax
je 0x4323c5
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jb 0x4323b2
ja 0x4323a2
mov eax, dword [ebp - 0x20]
cmp eax, esi
jbe 0x4323b2
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.00432105
mov dword [ebp - 0x10], eax
jmp 0x4323c5
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push 0x10
push 0x1237
call fcn.0042ee8a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x432b38
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + 0x2c4]
push edi
add eax, 4
push eax
mov edi, 0x105
push edi
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0xc], esi
call fcn.0040feeb
mov ecx, dword [esi + 0xc4]
xor ebx, ebx
push ebx
call fcn.00428b80
xor eax, eax
cmp dword [ebp + 8], 0xc6c81098
push ebx
setne al
xor ecx, ecx
dec eax
and eax, 0xffffffb2
add eax, 0x1249
cmp eax, 0x11fb
sete cl
push ecx
push ebx
lea ecx, [ebp - 0x220]
push ecx
push 0x31
push eax
mov ecx, esi
call fcn.0042ee8a
cmp eax, 1
jne 0x432d02
push eax
call fcn.00436f3d
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x432bec
mov dword [ebp + 8], 0xc6c81098
jmp 0x432cd3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x638]
push eax
push edi
lea eax, [ebp - 0x220]
push eax
mov dword [ebp + 8], 0xc6c8111a
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x432cca
lea eax, [ebp - 0x42c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x432c34
lea eax, [ebp - 0x42c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp - 8]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
mov edi, eax
lea eax, [ebp - 0x42c]
push eax
call esi
add edi, eax
add edi, 0x10
lea eax, [edi + edi]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004445f0
mov dword [ebp - 4], esp
push dword [ebp - 8]
lea eax, [ebp - 0x42c]
push eax
push 0x40808c
push edi
push dword [ebp - 4]
call fcn.00426375
mov edi, dword [ebp - 4]
push edi
call esi
add esp, 0x18
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x432c99
cmp esi, 0x104
jl 0x432cb1
push edi
call fcn.00437057
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], 1
call fcn.00437ae6
push ebx
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov esi, dword [ebp - 0xc]
je 0x432cca
mov dword [ebp + 8], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00436f3d
cmp dword [ebp + 8], ebx
mov ecx, esi
jge 0x432d11
push ebx
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
xor eax, eax
cmp dword [ebp + 8], 0xc6c81098
push ebx
setne al
add eax, 0x124a
push eax
call fcn.0042ee8a
xor eax, eax
lea esp, [ebp - 0x644]
pop edi
pop esi
pop ebx
leave
ret 4
push 1
push ebx
push dword [ebp - 4]
call fcn.00432aea
mov edi, eax
cmp edi, ebx
jl 0x432d42
mov ecx, dword [esi + 0xc4]
lea eax, [ebp - 0x220]
push eax
call fcn.0042f5ae
push dword [ebp - 4]
mov ecx, dword [esi + 0xc4]
call fcn.0042f596
mov eax, edi
jmp 0x432d04
Function at 0x4366c1
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, ecx
push 4
lea eax, [esi + 0x6c]
push eax
push 0xf
mov ebx, 0x400
push ebx
call edi
push 4
add esi, 0x74
push esi
push 0xe
push ebx
call edi
push 0x408dec
push 0
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x436b79
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [ecx + 0x68]
push esi
push dword [eax + 8]
mov esi, dword [eax + 0xc]
add esi, ecx
mov ecx, dword [eax + 4]
push esi
push dword [ecx*4 + 0x402100]
push 0
push dword [eax]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
ret 4

Function at 0x436bac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
push edi
lea ebx, [esi + esi*2]
lea ebx, [ebx*8 + 0x454f28]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
add edi, ecx
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebx]
mov dword [ebp - 8], ecx
mov ecx, dword [ecx + 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x436c1b
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x436c0b
mov ecx, dword [ebx + 8]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x436c14
mov ecx, dword [ebp - 8]
push esi
call fcn.00436a88
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x4378cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 0xc], 0x104
push ebx
push esi
jb 0x437934
mov ebx, dword [ebp + 8]
xor esi, esi
cmp ebx, esi
je 0x437934
push edi
xor eax, eax
mov word [ebp - 0x208], si
mov ecx, 0x81
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 5
push esi
mov word [ebx], si
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jl 0x43792f
lea eax, [ebp - 0x208]
push eax
push 0x104
push ebx
call fcn.0040feeb
mov eax, edi
pop edi
jmp 0x437939
mov eax, 0x80070057
pop esi
pop ebx
leave
ret 8
Function at 0x437ae6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
mov eax, 0xf8
cmp esi, eax
pop ecx
jle 0x437b12
and word [edi + 0x1f0], 0
mov esi, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebp - 8], eax
je 0x437b8a
lea eax, [edi + esi*2]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov esi, 0x104
mov eax, dword [ebp + 8]
and word [eax], 0
cmp dword [ebx], 0
je 0x437b59
push 0x408f04
push esi
push edi
call fcn.00417208
push dword [ebx]
lea ecx, [ebp - 0x20]
call fcn.004109d4
push eax
push esi
push edi
call fcn.00417208
inc dword [ebx]
cmp dword [ebp + 0x10], 0
jne 0x437b68
push 0x408080
jmp 0x437b6b
push dword [ebp + 0x10]
push esi
push edi
call fcn.00417208
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437b2f
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ebx
jmp 0x437b91
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc

Function at 0x439faa
Capabilities:
Set registry value

Disassembly:
mov eax, 0x44bfe0
call fcn.00444524
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov edi, 0x80004005
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov ecx, dword [0x456778]
push 0x402fe8
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CWinApp::GetSectionKey
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x43a08b
mov ecx, dword [ebx + 0x1b70]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
push 4
push esi
push 0x402fa0
push eax
call edi
cmp dword [ebp + 8], esi
push esi
push esi
push 0xf003f
push esi
lea ecx, [ebp - 0x10]
push esi
jne 0x43a047
push 0x402fd8
push dword [ebp - 0x14]
call fcn.00413cbd
cmp dword [ebp - 0x10], esi
je 0x43a07d
mov eax, dword [ebx + 0x1b74]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x402f80
jmp 0x43a070
push 0x402fc4
push dword [ebp - 0x14]
call fcn.00413cbd
cmp dword [ebp - 0x10], esi
je 0x43a07d
mov eax, dword [ebx + 0x1b78]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x402f5c
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00413ca6
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
lea ecx, [ebp - 0x10]
call fcn.00413ca6
lea ecx, [ebp - 0x18]
call fcn.00413ca6
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4