joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b230
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4622a0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4785d0]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov eax, dword [0x4785d0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], 0
call fcn.00409ef0
mov dword [esp + 0x60], 0
push dword [esi + 0xc]
lea ecx, [esp + 0x18]
call fcn.00418840
test al, al
jne 0x40b2b7
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x10], 0
jne 0x40b304
push 7
push str.WMIFAIL
call fcn.00407c90
jmp 0x40b304
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.0040e460
mov ecx, dword [esi]
add esp, 8
mov dword [ecx], eax
mov eax, dword [esi]
lea ecx, [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x40e560
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi + 8]
mov al, byte [esp + 0x11]
mov byte [ecx], al
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 1
call fcn.00409e60
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], 0xffffffff
call fcn.00409e60
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x40bac0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462308
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 1
push 0x3e
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
call fcn.00407c90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x11c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40bb57
push eax
call ebx
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x11c]
push ecx
push 0x20019
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push 0
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x11c], 0
call esi
test eax, eax
je 0x40bbd2
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x40bb9e
push eax
call ebx
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x11c]
push ecx
push 0x20019
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], 0
call esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x140], 1
test esi, esi
je 0x40bc95
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x13c], 0x104
mov dword [ebp - 0x138], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bc8f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bc8f
cmp byte [ebp - 0x118], 0
jne 0x40bc6e
xor ecx, ecx
jmp 0x40bc80
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bc77
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call fcn.00407c90
mov esi, dword [ebp - 0x11c]
cmp dword [ebp - 0x120], 0x10
jb 0x40bcb2
push dword [ebp - 0x134]
call fcn.0041a4c1
mov esi, dword [ebp - 0x11c]
add esp, 4
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
test esi, esi
je 0x40bcd4
push esi
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x40be70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4624c3
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xbc]
cmp eax, 5
jb 0x40bf80
jne 0x40bf54
mov eax, dword [ebp - 0xb8]
cmp eax, 1
jb 0x40bf80
jne 0x40bf80
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405140
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push 1
dec eax
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c7f0
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00409d40
add esp, 4
cmp dword [ebp - 0xc4], 0x10
mov edi, eax
jb 0x40bf32
push dword [ebp - 0xd8]
call fcn.0041a4c1
add esp, 4
xor eax, eax
cmp edi, 3
mov esi, 4
cmove esi, eax
cmp dword [ebp - 0x14], 0x10
jb 0x40bf50
push dword [ebp - 0x28]
call fcn.0041a4c1
add esp, 4
mov eax, esi
jmp 0x40bf85
cmp eax, 6
jne 0x40bf80
mov eax, dword [ebp - 0xb8]
test eax, eax
jne 0x40bf6a
mov eax, 1
jmp 0x40bf85
cmp eax, 1
jne 0x40bf76
mov eax, 2
jmp 0x40bf85
cmp eax, 2
mov eax, 3
jae 0x40bf85
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x40ddb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x40], 0x3c
call fcn.00420820
add esp, 0xc
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x24], 9
mov eax, 0x8400
mov dword [ebp - 0x30], esi
test ebx, ebx
je 0x40de03
cmp byte [ebx], 0
mov dword [ebp - 0x2c], ebx
jne 0x40de0a
mov dword [ebp - 0x2c], 0
mov ecx, 0x8540
test edi, edi
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40de38
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x40de41
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x40e370
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46268b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x40f
lea eax, [ebp - 0x41f]
push 0
push eax
mov byte [ebp - 0x420], 0
call fcn.00420820
push esi
lea eax, [ebp - 0x420]
push str.SELECT_ParentProcessId_FROM_Win32_Process_WHERE_ProcessId___u
push eax
call fcn.00419166
mov esi, esp
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], esi
push 0x18
mov dword [ebp - 4], 0
call fcn.0041a823
add esp, 4
test eax, eax
jne 0x40e3f9
call fcn.0042ed49
mov dword [eax], 0x46d4e8
mov dword [eax + 4], 0x418ca0
lea ecx, [ebp - 0x424]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], str.ParentProcessId
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x420]
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00418aa0
xor ecx, ecx
test al, al
cmovne ecx, dword [ebp - 0x424]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret

Function at 0x40e460
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4626cb
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040e370
mov esi, eax
test esi, esi
je 0x40e536
push 0x40f
lea eax, [ebp - 0x41f]
push 0
push eax
mov byte [ebp - 0x420], 0
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x420]
push esi
push str.SELECT_Name_FROM_Win32_Process_WHERE_ProcessId___u
push eax
call fcn.00419166
sub esp, 0xc
mov edi, esp
mov dword [ebp - 0x424], edi
push 0x1c
mov dword [ebp - 4], 0
call fcn.0041a823
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x40e4f5
call fcn.0042ed49
mov eax, dword [ebp + 8]
mov dword [ecx], 0x46d498
mov dword [ecx + 4], 0x418dd0
mov dword [ecx + 8], 0x104
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], str.Name
lea eax, [ebp - 0x420]
mov dword [edi + 0x10], ecx
push eax
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00418aa0
test al, al
je 0x40e536
mov eax, esi
jmp 0x40e538
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x40f050
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4628e6
mov eax, dword fs:[0]
push eax
mov eax, 0x281c
call fcn.004241f0
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
push 0
push 0
push 0
push 1
push str.zz_ag1.6.2870
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x40f0a6
xor al, al
jmp 0x40f21c
push dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x2824]
push edi
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2820], 0
call fcn.00410410
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x40f0db
mov esi, dword [esi]
push 0
push 0x4000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
or edi, 0xffffffff
test esi, esi
jne 0x40f0fe
xor bl, bl
jmp 0x40f1e7
push dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x281c]
push esi
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x2818], 0
call fcn.00410410
push 0x27ff
lea eax, [ebp - 0x280f]
push 0
mov byte [ebp - 4], 1
push eax
mov byte [ebp - 0x2810], 0
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x2814]
push eax
push 0x2800
lea eax, [ebp - 0x2810]
push eax
push esi
mov dword [ebp - 0x2814], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40f1b4
lea ecx, [ecx]
mov eax, dword [ebp - 0x2814]
test eax, eax
je 0x40f1b4
push dword [ebp - 0x2814]
lea ecx, [ebp - 0x2810]
add eax, ecx
push eax
mov eax, ecx
push eax
push dword [ebx + 4]
mov ecx, ebx
call fcn.004104d0
lea eax, [ebp - 0x2814]
push eax
push 0x2800
lea eax, [ebp - 0x2810]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40f170
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x2818]
mov bl, 1
test esi, esi
je 0x40f1e7
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40f1e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x40f1e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2820]
test esi, esi
je 0x40f21a
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40f21a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x40f21a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x410a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462da0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4785d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0xa
push 0x66
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test ebx, ebx
je 0x410b95
test edi, edi
je 0x410b95
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.0041aa39
add esp, 4
mov dword [ebp - 0x20], 0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0
call fcn.00410340
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x410b5e
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x410b5e
push edi
push eax
push ecx
call fcn.004201d0
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x410b37
mov dword [eax], edi
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00407590
lea ecx, [ebp - 0x24]
call fcn.00405c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x410b95
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x410b95
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x410b95
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x410b95
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004172c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410bd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 3
jbe 0x410c8b
push 1
push 3
lea eax, [ebp - 8]
push eax
mov byte [ebp - 8], 0x5c
call fcn.0040c870
mov esi, eax
cmp esi, 0xffffffff
je 0x410c8b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push 0
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00407060
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410c5a
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push 0
push eax
call ebx
test eax, eax
jmp 0x410c5c
test al, 0x10
je 0x410ca1
cmp dword [ebp - 0xc], 0x10
jb 0x410c6f
push dword [ebp - 0x20]
call fcn.0041a4c1
add esp, 4
push 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 8]
push eax
mov ecx, edi
mov byte [ebp - 8], 0x5c
call fcn.0040c870
mov esi, eax
cmp esi, 0xffffffff
jne 0x410c11
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 0x10
jb 0x410cb2
push dword [ebp - 0x20]
call fcn.0041a4c1
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00419056
mov esp, ebp
pop ebp
ret

Function at 0x410cd0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462d28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
test eax, eax
je 0x410d22
sub eax, ecx
push 0
push 1
push eax
lea ecx, [ebp + 8]
call fcn.0040c9d0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
test eax, eax
je 0x410d50
sub eax, ecx
push 0
push 1
push eax
lea ecx, [ebp + 8]
call fcn.0040c9d0
cmp dword [ebp + 0x1c], 0x10
xorps xmm0, xmm0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x28], eax
mov eax, 0x14
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], 0
mov dword [ebp - 0x2c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], 0x10
jb 0x410dba
push dword [ebp + 8]
call fcn.0041a4c1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x417f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push dword [esi + 0x34]
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp byte [ebp - 0x108], 0
mov esi, eax
jne 0x417fdd
xor ecx, ecx
jmp 0x417fef
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417fe6
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.00407c90
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419056
mov esp, ebp
pop ebp
ret 0xc

Function at 0x418020
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.004241f0
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 2
push dword [ecx + 0x34]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x100c]
push eax
mov dword [ebp - 0x100c], 0
mov word [ebp - 0x1008], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
xor esi, esi
mov dword [ebp - 0x1018], 0
cmp dword [ebp - 0x1004], esi
jbe 0x4180dc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [ebp - 0x1000]
push dword [edi]
push dword [ebp - 0x1014]
call ebx
test eax, eax
jne 0x4180d0
inc esi
add edi, 8
cmp esi, dword [ebp - 0x1004]
jb 0x4180b4
jmp 0x4180da
mov dword [ebp - 0x1018], 1
pop edi
pop ebx
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1018]
xor ecx, ebp
pop esi
call fcn.00419056
mov esp, ebp
pop ebp
ret
Function at 0x4263b8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00424a4d
mov dword [ebp - 0x14], eax
cmp dword [0x47cfec], edi
jne 0x4264a9
push 0x800
push edi
push 0x466824
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x426436
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426589
push 0x466824
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x426589
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426589
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x47cfec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x47cff0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x47cff4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47cffc], eax
test eax, eax
je 0x4264a6
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47cff8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4264ce
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4264c1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4264e3
push 4
pop eax
jmp 0x42658b
cmp dword [ebp - 0x14], edi
je 0x4264e3
push dword [0x47cfec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4264c8
mov eax, dword [0x47cff8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x426541
cmp dword [0x47cffc], esi
je 0x426541
push eax
call ebx
push dword [0x47cffc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x426541
test eax, eax
je 0x426541
call ecx
test eax, eax
je 0x426536
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x426536
test byte [ebp - 8], 1
jne 0x426541
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x426571
mov eax, dword [0x47cff0]
cmp eax, esi
je 0x42656e
push eax
call ebx
test eax, eax
je 0x42656e
call eax
mov edi, eax
test edi, edi
je 0x42656e
mov eax, dword [0x47cff4]
cmp eax, esi
je 0x42656e
push eax
call ebx
test eax, eax
je 0x42656e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x47cfec]
call ebx
test eax, eax
je 0x426589
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42658b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419056
leave
ret
Function at 0x42a318
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041fb9f
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42a350
xor eax, eax
jmp 0x42a37c
cmp esi, dword [ebp - 4]
je 0x42a379
cmp dword [ebp + 0xc], 0
je 0x42a379
push dword [edi + 0x9c]
call fcn.00429f26
push dword [edi + 0x9c]
mov esi, eax
call fcn.004262e1
pop ecx
pop ecx
cmp esi, eax
je 0x42a34c
xor eax, eax
inc eax
pop edi
pop esi
leave
ret