joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc503
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5250a4], 0
je 0x405949
xor al, al
jmp 0x4059fe
push 0x40
call fcn.00404f8a
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40596c
push 0
mov ecx, eax
call fcn.00405a20
jmp 0x40596e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5250a4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4059a0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405fe0
mov dword [ebp - 4], 1
mov ecx, dword [0x5250a4]
lea edx, [ebp - 0x2c]
push edx
call fcn.00406250
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4059e8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x406250
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x522638]
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 eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x34], edi
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], edi
lea edx, [ebp - 0x2c]
push edx
push 3
push eax
call fcn.00406350
add esp, 0xc
cmp dword [ebp - 0x1c], edi
jne 0x4062d1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4062c6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], cx
jmp 0x406329
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edi
jae 0x4062e0
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x30]
push esi
push eax
mov ecx, ebx
call fcn.00406a80
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x40631c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406ca9
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x1c], 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.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x407520
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14c], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x4e598c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x407570
xor eax, eax
jmp 0x407596
lea ecx, [ebp - 0x124]
push ecx
push edi
mov dword [ebp - 0x124], ebx
call eax
test eax, eax
jne 0x40758b
mov eax, 2
jmp 0x407596
xor eax, eax
cmp dword [ebp - 0x124], ebx
setne al
push 0x118
lea edx, [ebp - 0x11c]
push ebx
push edx
mov dword [esi + 0x24], eax
mov dword [ebp - 0x120], 0x11c
call fcn.004b8020
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x4075f6
cmp ecx, ebx
jle 0x407622
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x407622
cmp eax, 6
jne 0x40761a
sub ecx, ebx
je 0x407612
dec ecx
je 0x40760a
mov dword [esi], 5
jmp 0x407622
mov dword [esi], 4
jmp 0x407622
mov dword [esi], 3
jmp 0x407622
jle 0x407622
mov dword [esi], 6
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
xor eax, eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x148]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x148], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
cmp eax, ebx
je 0x40769c
cmp eax, 6
je 0x407693
cmp eax, 9
jne 0x40769f
mov dword [esi + 0x18], 1
jmp 0x40769f
mov dword [esi + 0x18], 2
jmp 0x40769f
mov dword [esi + 0x18], ebx
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x12c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x4088f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x804]
push 0x400
push ecx
mov dword [ebp - 0x814], edx
xor bl, bl
call fcn.004089f0
add esp, 0x14
test eax, eax
js 0x4089d1
lea edx, [ebp - 0x808]
push edx
push 1
push 0
lea eax, [ebp - 0x804]
push eax
push esi
mov dword [ebp - 0x808], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4089d1
lea ecx, [ebp - 0x818]
push ecx
mov ecx, dword [ebp - 0x808]
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x810]
push eax
xor esi, esi
push esi
push edi
push ecx
mov dword [ebp - 0x810], esi
mov dword [ebp - 0x80c], esi
mov dword [ebp - 0x818], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4089c4
cmp dword [ebp - 0x810], 4
jne 0x4089c4
mov eax, dword [ebp - 0x814]
xor edx, edx
cmp dword [ebp - 0x80c], esi
mov bl, 1
setne dl
mov dword [eax], edx
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x40a300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareAdobeAdobe_Acrobat11.0Security
push 0x80000002
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a36a
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4e77c4
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a360
cmp dword [ebp - 4], eax
jne 0x40a360
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a380
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push edi
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call esi
test eax, eax
je 0x40a3a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a3d5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x40a3d5
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call esi
test eax, eax
je 0x40a3ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a3d5
call edi
cmp eax, 2
je 0x40a410
push 0x525eb5
push 0x208
call fcn.004282c1
mov edi, eax
add esp, 8
test edi, edi
je 0x40a410
push 0x208
push 0
push edi
call fcn.004b8020
push edi
call fcn.00441010
add esp, 0x10
test eax, eax
je 0x40a416
push edi
call fcn.0041ecb3
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x40a428
add eax, 0x3e8
push 1
push eax
push edi
call fcn.00440d40
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40a470
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 2
je 0x40a46f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 1
jne 0x40a45c
push 0
push 0xce
jmp 0x40a466
test ebx, ebx
jne 0x40a46f
push ebx
push 0xcc
push edi
call fcn.00440d40
add esp, 0xc
pop ebx
push edi
call fcn.0041ecb3
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40a720
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ebx, eax
test ebx, ebx
je 0x40a7e1
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004b8020
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a7f0
cmp dword [ebp - 0x11c], 5
jne 0x40a7f0
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x40a796
cmp eax, 2
jne 0x40a7f0
push esi
push edi
mov dword [ebp - 0x124], 2
call fcn.004b8a00
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
test esi, esi
je 0x40a7c7
push 4
lea edx, [ebp - 0x124]
push edx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test edi, edi
je 0x40a7dd
push 4
lea eax, [ebp - 0x124]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
pop edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x40ae70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0040af10
mov dword [ebp - 8], eax
test eax, eax
jne 0x40ae98
call fcn.00404010
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.0040b3a0
add esp, 4
test al, al
jne 0x40aeb1
mov eax, 5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call fcn.0040bbd0
add esp, 0x14
mov esp, ebp
pop ebp
ret

Function at 0x40bab0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x524014], esi
jne 0x40baef
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40bae5
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x524010], eax
mov dword [0x524014], 1
mov eax, dword [0x524010]
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bb0b
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40bb45
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x40bb3a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov eax, dword [ebp + 8]
jns 0x40bb29
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
jmp 0x40bb2e
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
call edx
test eax, eax
je 0x40bb45
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push edi
push eax
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40c060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcdcc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0040c170
mov dword [ebp - 4], 1
lea esi, [edi + 0x18]
push 8
mov dword [ebp - 0x18], esi
mov dword [esi], ebx
call fcn.00404f8a
add esp, 4
cmp eax, ebx
je 0x40c112
xor ecx, ecx
mov dword [esi], eax
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 8
mov ecx, dword [0x5250b4]
mov dword [edi + 0x30], ecx
mov dword [ebp - 4], 8
mov dword [0x5250b4], edi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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 dword [ebp - 0x28], 0x4e82e0
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0x4e8300
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00452740
int3
Function at 0x40e350
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd103
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push ebx
push ecx
mov dword [0x5250bc], eax
call fcn.0040e580
add esp, 8
cmp dword [0x5250f0], 0
jne 0x40e3a7
mov edx, dword [0x5250f4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40e3b2
mov ecx, dword [0x5250ec]
call fcn.0040e730
mov dword [ebp - 4], 0
mov eax, dword [0x5250d4]
test eax, eax
je 0x40e3d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5250d4], 0
mov eax, dword [ebp + 0xc]
mov dword [0x5250cc], eax
test eax, eax
je 0x40e4b8
cmp eax, 2
je 0x40e4b8
mov ecx, dword [0x5250d0]
test ecx, ecx
jne 0x40e42e
push 0x1c
call fcn.00404f8a
add esp, 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40e420
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
jmp 0x40e422
xor eax, eax
mov byte [ebp - 4], 0
mov ecx, eax
mov dword [0x5250d0], ecx
mov eax, ebx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e433
sub eax, esi
sar eax, 1
push eax
push ebx
call fcn.00405fe0
cmp dword [ebp + 0x14], 0
jne 0x40e463
mov eax, dword [0x5250d0]
cmp dword [eax + 0x14], 8
jb 0x40e45c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004567c0
mov bl, al
mov dword [ebp - 4], 0xffffffff
cmp dword [0x5250f0], 0
jne 0x40e49a
mov edx, dword [0x5250f4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5250ec]
call fcn.0040e740
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
cmp dword [0x5250f0], 0
jne 0x40e4e7
mov eax, dword [0x5250f4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5250ec]
call fcn.0040e740
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ff80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push 0
push 0
push 0xffffc000
push 0xffffc000
push 0x10000000
push 0x4e596c
push str.EDIT
push 0x80
call fcn.00410010
cmp byte [ebp + 8], 0
mov dword [0x5240ac], eax
jne 0x40ffd1
test eax, eax
je 0x40ffd1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret
Function at 0x410140
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da3db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00410230
push 4
mov dword [ebp - 4], 0
call fcn.00404f8a
mov edi, eax
add esp, 4
test edi, edi
je 0x4101c0
call fcn.0040ea5d
mov dword [edi], eax
call fcn.0040ecb5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040eb1f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4101b6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040ec7a
jmp 0x4101c2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x4164a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd149
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x522638]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 1
cmp dword [edi], 0
jne 0x4165db
lea esi, [edi + 8]
push 0x4e85e8
push esi
call fcn.00415d00
add esp, 8
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00416690
mov byte [ebp - 4], 2
push 0
push 0
call fcn.0040e580
mov eax, dword [0x5250cc]
add esp, 8
mov esi, 0x10
test eax, eax
je 0x4165b4
cmp eax, 2
je 0x4165b4
cmp dword [0x5250f0], 0
jne 0x416540
mov ecx, dword [0x5250f4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x41654b
mov ecx, dword [0x5250ec]
call fcn.0040e730
mov byte [ebp - 4], 3
call fcn.004567c0
test al, al
je 0x41658d
mov edx, dword [0x5250d4]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x416576
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [0x5250d4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
cmp dword [0x5250f0], 0
jne 0x4165a9
mov ecx, dword [0x5250f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4165b4
mov ecx, dword [0x5250ec]
call fcn.0040e740
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jb 0x4165c9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov eax, dword [edi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 8]
call fcn.00416950
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.00401306
mov esp, ebp
pop ebp
ret
Function at 0x419a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dca62
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x522638]
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, dword [ebp + 8]
xor edi, edi
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
mov dword [ebp - 0x21c], edi
push ecx
mov dword [ebp - 0x220], esi
mov word [ebp - 0x218], ax
call fcn.004b8020
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x419b21
cmp eax, 0x104
jae 0x419b21
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x419b01
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00405fe0
jmp 0x419b3d
push edi
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push 0x4e596c
mov ecx, esi
mov word [esi], dx
call fcn.00405fe0
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], 1
mov eax, esi
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.00401306
mov esp, ebp
pop ebp
ret
Function at 0x41d630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df02b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x522638]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x240], ebx
push 0x2c
xor eax, eax
push str.SoftwareAdobeAcrobat_Reader11.0Installer
lea ecx, [ebp - 0x238]
mov byte [ebp - 0x239], bl
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
call fcn.00405fe0
mov ecx, dword [0x52513c]
mov dword [ebp - 4], ebx
cmp byte [ecx + 0x45], bl
je 0x41d6bd
push 0x2b
push str.SoftwareAdobeAdobe_Acrobat11.0Installer
lea ecx, [ebp - 0x238]
call fcn.00405fe0
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x41d6d2
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x244]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d77e
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004b8020
mov eax, dword [ebp - 0x244]
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
push str.Path
push eax
mov dword [ebp - 0x240], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d763
cmp word [ebp - 0x21c], bx
je 0x41d763
cmp edi, ebx
je 0x41d75c
cmp word [edi], bx
je 0x41d75c
push edi
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41d763
mov byte [ebp - 0x239], 1
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x21c]
cmp byte [ebp - 0x239], bl
jne 0x41d783
mov edx, 0x4e596c
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41d797
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00405fe0
cmp dword [ebp - 0x224], 8
jb 0x41d7c7
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406ca9
add esp, 4
mov eax, esi
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.00401306
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41d80c
call fcn.0041d887
mov dword [eax], esi
call fcn.00409709
push 0x16
pop esi
mov dword [eax], esi
call fcn.004b8d17
mov eax, esi
jmp 0x41d861
test dword [ebp + 0xc], 0xfffffff9
jne 0x41d7f2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41d839
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041d864
pop ecx
call fcn.00409709
mov eax, dword [eax]
jmp 0x41d861
test al, 0x10
jne 0x41d85f
test al, 1
je 0x41d85f
test byte [ebp + 0xc], 2
je 0x41d85f
call fcn.0041d887
mov dword [eax], 5
call fcn.00409709
mov dword [eax], 0xd
jmp 0x41d830
xor eax, eax
pop esi
pop ebp
ret