joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e49e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4d81a8
call fcn.004aef44
sub esp, 0x26c
mov eax, dword [0x51f03c]
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], eax
push 0x44
lea eax, [ebp - 0x84]
pop edi
mov dword [ebx], esi
push edi
push esi
push eax
call fcn.004af060
push 0x10
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004af060
mov edx, dword [ebp + 0x18]
add esp, 0x18
mov eax, edx
mov dword [ebp - 0x84], edi
push 1
sub eax, esi
pop ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x50], esi
mov word [ebp - 0x52], si
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x58], ecx
je 0x40e529
dec eax
je 0x40e521
dec eax
je 0x40e519
dec eax
je 0x40e513
mov word [ebp - 0x54], dx
jmp 0x40e52d
mov word [ebp - 0x54], si
jmp 0x40e52d
mov word [ebp - 0x54], 3
jmp 0x40e52d
mov word [ebp - 0x54], 6
jmp 0x40e52d
mov word [ebp - 0x54], cx
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
call edi
test eax, eax
jne 0x40e54e
push dword [ebp + 8]
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x40e569
push dword [ebp + 0xc]
lea eax, [ebp - 0x278]
push dword [ebp + 8]
push 0x510e08
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp + 0x10]
call edi
test eax, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x84]
push eax
jne 0x40e580
push esi
jmp 0x40e583
push dword [ebp + 0x10]
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x278]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
cmp eax, esi
jne 0x40e5ac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x40e643
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x14], esi
mov dword [ebx], eax
je 0x40e633
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, 0xff
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push esi
push eax
push 1
call edi
cmp eax, 1
jne 0x40e622
push 1
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x40e616
cmp dword [ebp - 0x3c], 0x200
je 0x40e5d2
cmp dword [ebp - 0x3c], 0x201
je 0x40e5d2
cmp dword [ebp - 0x3c], 0x202
je 0x40e5d2
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40e5d2
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push esi
push eax
push 1
jmp 0x40e5cb
cmp dword [ebp + 0x20], esi
je 0x40e633
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x40e6db
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4d81dc
call fcn.004aef44
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004c613f
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call fcn.004c5fe3
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004c5eaa
mov eax, dword [edi]
push 1
push ebx
push ebx
mov dword [esi + 8], eax
push dword [edi + 0x1c]
call fcn.004af6a0
mov ecx, dword [edi + 0x20]
add eax, ecx
lea ecx, [ebp + 8]
adc edx, ebx
and dword [esi + 0x30], ebx
and dword [esi + 0x2c], ebx
mov dword [esi + 0x10], eax
or ebx, 0xffffffff
lea eax, [edi + 4]
push ebx
push eax
mov dword [esi + 0x14], edx
call fcn.004c2f2f
mov eax, dword [ebp + 8]
push ebx
mov dword [esi + 0x18], eax
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.004c2f2f
mov eax, dword [ebp + 8]
add edi, 0x14
push ebx
push edi
lea ecx, [ebp + 8]
mov dword [esi + 0x1c], eax
call fcn.004c2f2f
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov dword [ebp - 4], ebx
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40fb14
Capabilities:
Check if file exists
Get file attributes
Get file version info

Disassembly:
mov eax, 0x4d83cf
call fcn.004aef44
sub esp, 0x148
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x10]
pop ebx
push 0x523a30
mov dword [ebp - 4], ebx
call fcn.004c5f18
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fbf0
push dword [ebp + 0xc]
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x154]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x40fbf0
push esi
call fcn.004af1a1
mov edi, eax
pop ecx
test edi, edi
je 0x40fbf0
push edi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x510870
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40fbe9
push 0x34
lea eax, [ebp - 0x54]
push dword [ebp - 0x18]
push eax
call fcn.004af6e0
movzx esi, word [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
movzx edx, word [ebp - 0x4c]
add esp, 0xc
shr ecx, 0x10
push esi
push ecx
shr eax, 0x10
push edx
push eax
lea eax, [ebp - 0x10]
push str._d._d._d._d
push eax
call fcn.004c2c3a
add esp, 0x18
push edi
call fcn.004af0b8
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ff92
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d84a3
call fcn.004aef44
mov eax, 0x2008
call fcn.004af620
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
push 1
pop ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x51f03c]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5e35
push dword [esi + 4]
lea eax, [ebp - 0x2014]
push 0x2000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x2014]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c6033
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c5eaa
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x410df4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410e64
and dword [ebp - 4], eax
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push esi
push eax
inc dword [ebp - 4]
push esi
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov eax, esi
pop esi
leave
ret 4

Function at 0x4123ac
Capabilities:
Check os version

Disassembly:
mov eax, 0x4d8af7
call fcn.004aef44
sub esp, 0x98
mov eax, dword [0x51f03c]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x30]
mov dword [ebx], eax
push 1
xor eax, eax
pop edi
mov ecx, ebx
push str.Unknown_OS
mov dword [ebp - 4], eax
mov dword [esi], vtable.CIROSVersionInfo.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.004c6033
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x4124f6
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
mov dword [esi + 0x20], ecx
dec ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
je 0x4124b7
dec ecx
jne 0x4124f9
mov ecx, dword [ebp - 0x98]
cmp eax, 3
mov dword [esi + 0x2c], ecx
jne 0x41246a
push str.Windows_NT_3
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x10], edi
cmp dword [esi + 0x24], 4
jne 0x41247f
push str.Windows_NT_4
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x14], edi
cmp dword [esi + 0x24], 5
jne 0x4124f9
cmp dword [esi + 0x28], 0
jne 0x41249a
push str.Windows_2000
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x18], edi
cmp dword [esi + 0x24], 5
jne 0x4124f9
cmp dword [esi + 0x28], 0
jbe 0x4124f9
push str.Windows_XP
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x1c], edi
jmp 0x4124f9
movzx ecx, word [ebp - 0x98]
cmp eax, 4
mov dword [esi + 0x2c], ecx
ja 0x4124d6
jne 0x4124cc
test edx, edx
ja 0x4124d6
mov dword [esi + 4], edi
push str.Windows_95
jmp 0x4124e3
cmp edx, 0xa
ja 0x4124ec
mov dword [esi + 8], edi
push str.Windows_98
mov ecx, ebx
call fcn.004c6033
jmp 0x4124f9
mov dword [esi + 0xc], edi
push str.Windows_ME
jmp 0x4124e3
mov dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414a15
Capabilities:
Delete file

Disassembly:
mov eax, 0x4d9174
call fcn.004aef44
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x51f03c]
xor esi, esi
mov dword [ebp - 0x10], eax
push 0x510870
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004c2c4d
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s.lnk
push eax
call fcn.004c2c3a
push ebx
push dword [ebp - 0x10]
call fcn.004b0b55
add esp, 0x18
test eax, eax
je 0x414aae
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s.pif
push eax
call fcn.004c2c3a
push ebx
push dword [ebp - 0x10]
call fcn.004b0b55
add esp, 0x18
test eax, eax
je 0x414aae
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s.url
push eax
call fcn.004c2c3a
push ebx
push dword [ebp - 0x10]
call fcn.004b0b55
add esp, 0x18
test eax, eax
jne 0x414abe
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x414abe
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x414af3
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 0x4f0950
push 1
push ebx
push 0x4f0940
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x414c31
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, dword [ebp - 4]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [esi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
push dword [esi + 0x10]
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
push dword [esi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov si, word [esi + 0x1c]
cmp si, bx
je 0x414bab
mov eax, dword [ebp - 4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [ebp - 0xc]
call fcn.00414c3a
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4f0960
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x414c28
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x316]
mov word [ebp - 0x318], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x318]
push 0x104
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x318]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414c3a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
xor ebx, ebx
push 0x9c
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.004af060
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x414c9d
mov eax, dword [ebp - 0x8c]
dec eax
dec eax
jne 0x414c9d
cmp dword [ebp - 0x98], 6
jne 0x414c92
cmp dword [ebp - 0x94], 2
jae 0x414c9b
cmp dword [ebp - 0x98], 0xa
jne 0x414c9d
mov bl, 1
mov al, bl
pop ebx
leave
ret
Function at 0x415a61
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, edi
je 0x415a9b
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp + 8]
push 0x4159d6
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x415b2f
push 0x24
lea eax, [ebp - 0x24]
pop esi
push esi
push edi
push eax
call fcn.004af060
add esp, 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x415b0a
mov eax, dword [ebp - 0x18]
sub eax, edi
je 0x415aeb
dec eax
je 0x415acf
dec eax
je 0x415aeb
dec eax
jne 0x415b2f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
jmp 0x415b05
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x415b2f
mov esi, dword [ebp + 8]
push edi
push esi
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x415b34
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
push 1
pop eax
jmp 0x415b36
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x416a2f
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x4d9610
call fcn.004aef44
sub esp, 0x10
mov eax, dword [0x51f03c]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x24]
mov byte [ebp - 4], 1
test esi, esi
je 0x416aec
push edi
mov eax, esi
mov esi, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x416ae3
lea edi, [eax + 0x24]
mov eax, dword [eax + 0x24]
cmp dword [eax - 8], 0
je 0x416ae3
push str..TFT
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004c613f
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004c5fe3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004c5eaa
push str..FON
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004c613f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c5fe3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004c5eaa
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
test eax, eax
je 0x416ae3
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
call edi
push dword [ebp - 0x14]
call edi
test esi, esi
jne 0x416a5f
pop edi
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x416b1b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d9624
call fcn.004aef44
sub esp, 0x10c
mov eax, dword [0x51f03c]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 1
pop edi
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c6033
push 0x510870
lea ecx, [ebp - 0x10]
call fcn.004c2c4d
add esi, 0x3c
push edi
push dword [ebp - 0x10]
push str._s_ir_tmpfnt__d
push esi
call fcn.004c2c3a
mov eax, dword [esi]
push 0
push eax
call fcn.004b0b55
add esp, 0x18
test eax, eax
je 0x416ba5
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c5c1f
call fcn.0040ca76
test eax, eax
pop ecx
jne 0x416ba8
inc edi
jmp 0x416b6f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4177a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4d97cc
call fcn.004aef44
push ecx
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
xor edi, edi
call fcn.00417781
mov eax, dword [ebp + 8]
cmp dword [eax - 8], edi
jne 0x4177cd
push 1
jmp 0x4177f8
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4177c9
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.00417863
test eax, eax
mov dword [esi + 0x34], eax
jne 0x4177fb
push 2
pop edi
jmp 0x417835
dec eax
je 0x417819
dec eax
jne 0x41783e
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.00417931
jmp 0x41782f
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.004179ab
mov edi, eax
test edi, edi
je 0x41783e
mov ecx, esi
call fcn.00417781
jmp 0x417845
mov dword [esi + 0x30], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x417ee7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417f31
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
je 0x417f31
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
leave
ret

Function at 0x418f0c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
lea eax, [ebp - 4]
push edi
push eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, edi
je 0x418f6b
mov ecx, dword [ebp - 4]
mov edx, ecx
and edx, 1
mov dword [esi + 0x3c], edx
mov edx, ecx
and edx, 2
mov dword [esi + 0x40], edx
mov edx, ecx
and edx, 4
mov dword [esi + 0x44], edx
mov edx, ecx
and edx, 0x10
mov dword [esi + 0x48], edx
mov edx, ecx
and edx, 0x20
and ecx, 0x40
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
pop edi
pop esi
leave
ret
Function at 0x41d955
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x41e7c9
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
lea eax, [ebp - 0xb0]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x41e7fe
cmp dword [ebp - 0xa0], 2
je 0x41e806
push 1
pop eax
jmp 0x41e970
cmp dword [ebp - 0xac], 6
jb 0x41e816
mov dword [ebp - 0x1c], 1
and byte [ebp - 0x14], 0
and byte [ebp - 0x13], 0
and byte [ebp - 0x12], 0
and byte [ebp - 0x11], 0
and byte [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
push 1
push 8
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 0xf], 5
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x41e881
call edi
cmp eax, 0x3f0
jne 0x41e917
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e917
mov esi, 0x1000
push esi
call fcn.004af1a1
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41e96d
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebx
push 2
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0
jne 0x41e8df
cmp eax, 0x7a
jne 0x41e8df
push dword [ebp - 0xc]
push ebx
call fcn.004b15b0
pop ecx
test eax, eax
pop ecx
je 0x41e917
lea ecx, [ebp - 0xc]
mov ebx, eax
push ecx
push dword [ebp - 0xc]
push eax
push 2
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
cmp dword [ebp - 4], edi
je 0x41e910
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea eax, [ebp - 0x14]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41e91b
push ebx
call fcn.004af0b8
pop ecx
xor eax, eax
jmp 0x41e970
cmp ebx, edi
mov dword [ebp - 4], edi
je 0x41e94b
cmp dword [ebx], edi
jbe 0x41e94b
lea esi, [ebx + 4]
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41e942
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x41e929
jmp 0x41e949
mov dword [ebp - 4], 1
xor edi, edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.004af0b8
cmp dword [ebp - 0x1c], edi
pop ecx
je 0x41e96d
cmp dword [ebp - 4], edi
je 0x41e96d
call fcn.0041e975
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret