joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cba1
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x45362f
call fcn.00435574
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004490ce
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
mov dword [esi], vtable.CInternetFile.0
call fcn.004031d0
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xc]
mov ecx, 0x46e454
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0044c2d8
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004049d0
mov eax, dword [ebx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.0042b605
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00403320
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004032e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x44cd3b
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x45364c
call fcn.00435574
push ecx
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push edi
call fcn.0044ccfd
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004031d0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x44cda2
push eax
push dword [esi + 8]
call fcn.0044c462
push dword [esi + 0xc]
mov ecx, 0x46e454
push eax
call fcn.0044c2d8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x44dd7e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x46a4c0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x44dddc
push 0x45b06c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00435761
add esp, 0x10
cmp eax, 0xffffffff
je 0x44ddf0
cmp eax, esi
jae 0x44ddf0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44ddf2
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x44dda7
jmp 0x44ddf3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00434040
leave
ret
Function at 0x44de13
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46a4c0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44deb5
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x44dfb7
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x44df65
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44dfb8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44df5a
cmp dword [ebp - 0x24], 1
jne 0x44df5a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x45b07c
push eax
call fcn.00434537
add esp, 0xc
cmp eax, 1
jne 0x44df5a
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44dfb8
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44dfb8
lea ecx, [ebp - 0x18]
push ecx
push 0x44ddfd
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x44dfb8
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x44dfde
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0044dd7e
cmp eax, ebx
pop ecx
pop ecx
jne 0x44dfe0
inc edi
cmp edi, esi
jl 0x44dfc7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00434040
leave
ret 4
Function at 0x44dfef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x469a34
je 0x44e0ab
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44e093
mov esi, dword [ebx + 4]
jmp 0x44e08d
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44e07d
cmp dword [ebp - 0xc], 4
jne 0x44e07d
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x44e075
or dword [eax + 0x9c], ecx
jmp 0x44e07d
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x44e041
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x44e024
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x44e464
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x453504
call fcn.00435574
sub esp, 0x11c
mov eax, dword [0x46a4c0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x44e55d
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x44e531
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00405350
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0044e464
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004032e0
test bl, bl
jne 0x44e531
or dword [ebp - 4], 0xffffffff
jmp 0x44e4a2
cmp esi, 0x103
je 0x44e541
cmp esi, 0x3f2
jne 0x44e551
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00434040
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44eac4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x44eaf9
cmp edi, dword [esi + 0xc]
jge 0x44eaf9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44eaf9
cmp edi, dword [eax + 8]
jge 0x44eaf9
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x44eafb
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44ebff
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x44ec33
jmp fcn.00441821
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x44eca4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44ed9d
cmp eax, dword [edi + 0xc]
jge 0x44ed9d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x44ecf5
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x44ed86
cmp dword [ebp + 0xc], ebx
je 0x44ed86
jmp 0x44ed1f
push 0x10
call fcn.0044e990
cmp eax, ebx
je 0x44ed0b
mov ecx, eax
call fcn.0044ebf6
mov esi, eax
jmp 0x44ed0d
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x44ed36
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x44ed46
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x44ed58
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00441821
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00434a50
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x44ed98
cmp ecx, dword [esi + 8]
jge 0x44ed98
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44ed9e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44ee5d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44ee8b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44eea9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044edc7
jmp 0x44eea9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44eea9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044edc7
test edi, edi
mov eax, edi
jne 0x44ee93
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46e4ec]
test ecx, ecx
je 0x44ef5c
jmp 0x44ee5c
ret 8
Function at 0x4029c8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x402b20
cmp dword [ebp + 0xc], ebx
je 0x402b20
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push 0x4176a8
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402b00
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402af7
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402aef
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x417690
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402ae6
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402b25
add esp, 0x18
test eax, eax
je 0x402ae6
cmp byte [ebp - 0x7c], bl
je 0x402ad4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x402ae6
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.0040255a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x402a1a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x402b20
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040255a
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x402b22
xor eax, eax
pop ebx
leave
ret
Function at 0x40318a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push esi
je 0x403293
cmp dword [ebp + 0xc], 0x20
jb 0x403293
mov esi, 0x400
lea eax, [ebp - 0x508]
push esi
push 0
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 8]
push eax
push 0x417794
push 0x41777c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x403293
lea eax, [ebp - 0x508]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x40
pop ecx
jne 0x403293
push edi
lea eax, [ebp - 0x508]
push 0x20
push eax
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.00403298
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040255a
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x508]
push esi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00402ffc
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop edi
jne 0x403293
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040255a
neg eax
sbb eax, eax
inc eax
jmp 0x403295
xor eax, eax
pop esi
leave
ret

Function at 0x40338e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
and word [ebp - 0x208], 0
push ebx
push esi
mov ebx, 0x81
push edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
and word [ebp - 0x410], 0
mov ecx, ebx
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
mov esi, 0x103
push eax
push 0x4177a8
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x616]
mov word [ebp - 0x618], dx
mov word [ebp - 0x820], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x81e]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x820]
push esi
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40347d
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
and word [ebp - 0x410], 0
push ebx
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
and word [ebp - 0x208], 0
mov ecx, esi
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x410]
mov ebx, 0x103
push eax
push 0x4177a8
lea eax, [ebp - 0x208]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [ebp - 0x618], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40352f
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push 0x4177a8
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push 5
push eax
lea eax, [ebp - 0x410]
push esi
push eax
push 0x4177cc
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 4
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4038c0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
and byte [esi], 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40391c
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40391c
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40390b
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov byte [esi], 1
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x406d03
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov byte [ebp - 1], 1
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x406d58
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x406db2
shr eax, 2
test al, 1
je 0x406d81
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
jmp 0x406d4f
xor ebx, ebx
push 1
push ebx
push ebx
push dword [esi + 0x24]
push 0x4177cc
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x406db2
or byte [esi + 0x54], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret