joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40235f
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 4], 0
call fcn.004028a3
test eax, eax
je 0x4023a9
push 0x3e8
push 0x3e9
push dword [0x4232e0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x9c], eax
jmp 0x4023c5
push 0x3e8
push 0x3e8
push dword [0x4232e0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x4023d9
xor eax, eax
jmp 0x40259f
push dword [ebp - 0x9c]
push dword [0x4232e0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c0], eax
push dword [ebp - 0x9c]
push dword [0x4232e0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402423
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x40259f
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 4]
add eax, 0x64
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
jne 0x40245e
xor eax, eax
jmp 0x40259f
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1bc], 0
jmp 0x402482
inc dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x1bc]
cmp dword [ebp - 4], eax
jle 0x4024b1
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x98]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x40247c
push 1
push 0xaf325de9
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004106bd
push 0x105
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x1b4]
push eax
call fcn.0040b491
push str._bmp23_.bm_
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1001
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x1b8], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x1b8]
call dword [sym.imp.KERNEL32.dll__hwrite]
push dword [ebp - 0x1b8]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00414d86
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00408a1e
cmp dword [ebp - 0xc], 0
je 0x402589
xor eax, eax
jmp 0x40259f
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xac]
jmp 0x40259f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ad66
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40ad9f
mov eax, 0xffffffff
jmp 0x40aea0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ae06
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
push dword [ebp + 8]
call fcn.004080d2
mov dword [ebp - 0xc], eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0xc], 0xffffffff
je 0x40adfc
push dword [ebp - 0xc]
call fcn.00408771
mov eax, 0xfffffff8
jmp 0x40aea0
mov eax, 0xfffffffe
jmp 0x40aea0
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x7ffe
call fcn.004193c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40ae2c
mov eax, 0xffffffff
jmp 0x40aea0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40ae4f
mov eax, 0xffffffff
jmp 0x40aea0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4219e4
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40ae76
mov eax, 0xffffffff
jmp 0x40aea0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x18]
push 0x7ffe
call fcn.00418f80
xor eax, eax
jmp 0x40aea0
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
call fcn.0040c754
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40aef7
xor eax, eax
jmp 0x40aeff
mov eax, dword [ebp - 4]
jmp 0x40aeff
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40af06
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c754
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40af43
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d9e7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40da4c
cmp dword [0x4219e8], 0
je 0x40da4c
push dword [ebp + 8]
call dword [0x4219e8]
cmp dword [ebp - 4], 0
jne 0x40da60
mov eax, 1
jmp 0x40da62
xor eax, eax
jmp 0x40da67
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411857
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
jmp 0x4118d7
push dword [ebp + 0x1c]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x808]
push eax
call fcn.0041c470
add esp, 4
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 8], eax
mov dword [ebp + 0x18], 4
jmp 0x4118f6
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 1
je 0x4118c5
cmp dword [ebp + 0x14], 2
jne 0x4118d2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
jmp 0x4118f6
cmp dword [ebp - 0x814], 4
jl 0x4118ab
cmp dword [ebp - 0x814], 5
jle 0x411871
jmp 0x4118ab
cmp dword [ebp + 0x18], 0xffffffff
jne 0x41190d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004114fa
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x411955
push 0x421b80
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041127d
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x411955
xor eax, eax
jmp 0x4119b9
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41198f
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4119b9
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4119af
xor eax, eax
jmp 0x4119b9
mov eax, 1
jmp 0x4119b9
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4119c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0041c530
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004114fa
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x4119f5
xor eax, eax
jmp 0x411b58
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x3ff
push dword [ebp + 0x18]
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411a3c
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x411b58
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1014], eax
jmp 0x411af5
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411b2e
lea eax, [ebp - 0x804]
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp - 0x100c]
push dword [eax]
push 0x421b84
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411b2e
mov dword [ebp - 0x1008], 0
jmp 0x411ab4
inc dword [ebp - 0x1008]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1008]
cmp dword [eax], ecx
jle 0x411ae3
mov eax, dword [ebp - 0x1008]
mov al, byte [ebp + eax - 0x804]
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ebp + 0x1c]
mov byte [ecx + edx], al
jmp 0x411aae
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + 0x1c]
mov byte [eax + ecx], 0
jmp 0x411b2e
cmp dword [ebp - 0x1014], 1
jl 0x411a9f
cmp dword [ebp - 0x1014], 2
jle 0x411a4c
cmp dword [ebp - 0x1014], 4
jl 0x411a9f
cmp dword [ebp - 0x1014], 5
jle 0x411a61
jmp 0x411a9f
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411b4e
xor eax, eax
jmp 0x411b58
mov eax, 1
jmp 0x411b58
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x411b5f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004114fa
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x411b87
xor eax, eax
jmp 0x411bba
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x411bb3
mov eax, 1
jmp 0x411bb5
xor eax, eax
jmp 0x411bba
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411dac
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 5
cmp dword [0x4231b4], 0
je 0x411deb
mov eax, 1
jmp 0x411f57
lea eax, [ebp - 0x18]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x411e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x411e40
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411e3b
xor eax, eax
jmp 0x411f57
jmp 0x411e47
xor eax, eax
jmp 0x411f57
lea eax, [ebp - 8]
push eax
push 0
push 0
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x411e69
xor eax, eax
jmp 0x411f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x411e7f
xor eax, eax
jmp 0x411f57
mov eax, dword [ebp - 8]
add eax, 3
and al, 0xfc
call fcn.0041c530
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x10], 0
jne 0x411ea0
xor eax, eax
jmp 0x411f57
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x411ec4
xor eax, eax
jmp 0x411f57
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x411ef6
xor eax, eax
jmp 0x411f57
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
jmp 0x411f0c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp dword [eax], ecx
jbe 0x411f46
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x411f41
mov dword [ebp - 0x14], 1
jmp 0x411f46
jmp 0x411f09
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
jmp 0x411f57
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415b06
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x415b23
xor eax, eax
jmp 0x415b71
push 0x105
lea eax, [ebp - 0x108]
push eax
push 0x489
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
add eax, 0x30f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
mov dword [eax + 0x62c], 1
mov eax, 1
jmp 0x415b71
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415b9d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
cmp dword [0x421e90], 0
je 0x415bbd
mov eax, 1
jmp 0x415d79
push 0x1003
push 0x9c4
call fcn.00418d50
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x415be3
mov eax, 0xffffffff
jmp 0x415d79
push 0x32c
push dword [ebp - 0xc]
call fcn.004193c0
mov dword [0x421e8c], eax
cmp dword [0x421e8c], 0
jne 0x415c0c
mov eax, 0xffffffff
jmp 0x415d79
mov eax, dword [ebp + 8]
mov ecx, dword [0x421e8c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x421e8c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x421e8c]
mov byte [eax + 0x226], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x421e8c]
mov dword [ecx], eax
mov eax, dword [0x421e8c]
mov dword [eax + 4], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x18], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x14], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 6
je 0x415c88
cmp dword [ebp + 8], 7
jne 0x415cb2
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
movzx eax, ah
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jge 0x415cb2
mov eax, dword [0x421e8c]
mov dword [eax + 0x10], 0
push dword [ebp + 0x10]
mov eax, dword [0x421e8c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
mov eax, dword [0x421e8c]
add eax, 0x121
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ISMSG16_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ea4], eax
push str.ISMSG16_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ea8], eax
push str.ISMSG32_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eac], eax
push str.ISMSG32_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eb0], eax
push str.ISMSG32_DELETEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eb4], eax
push str.ISMSG32_RENAMEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eb8], eax
push str.ISMSG32_STRINGLEN
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ebc], eax
push str.ISMSG32_CHARS
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ec0], eax
push str.ISMSG32_DOFILEOP
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ec4], eax
mov dword [0x421e90], 1
xor eax, eax
jmp 0x415d79
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4164db
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push dword [ebp + 8]
push str.file_d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x421e8c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x108]
push eax
push 0x421f88
push str.main
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x421fa0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41654e
xor eax, eax
jmp 0x41656e
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00416573
add esp, 8
mov eax, 1
jmp 0x41656e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416573
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00415ef3
mov dword [ebp - 0x214], 0
jmp 0x41659c
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 0x64
jge 0x416620
push dword [ebp - 0x214]
push str.alt_d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x421e8c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x421fb8
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOWAYVALUEXX
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41660f
jmp 0x416620
lea eax, [ebp - 0x210]
push eax
call fcn.00415ef3
jmp 0x416596
mov eax, 1
jmp 0x41662a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4167d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x422008
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.0040d248
push str.tmpdelis.bat
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040d248
push 0x422028
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040d248
push str.winstart.isk
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040d248
mov eax, dword [0x421e8c]
mov dword [eax + 0x14], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x18], 0
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004168d4
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004169dd
add esp, 0x10
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416b0f
add esp, 0xc
mov eax, 1
jmp 0x4168cf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4171ab
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor eax, eax
jmp 0x4171c5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4172ea
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x20
jae 0x41731b
xor eax, eax
jmp 0x4173ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1b58
mov dword [ebp - 4], eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41737e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
jae 0x41737e
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x28], eax
jmp 0x417338
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4173a6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x4173ad
xor eax, eax
jmp 0x4173ad
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4176af
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0040b3af
push dword [ebp + 8]
call fcn.00417d78
add esp, 4
mov dword [ebp - 0x368], 1
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 1
cmp dword [ebp - 0x368], 0
je 0x417833
cmp dword [ebp - 0x114], 0
je 0x417762
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x41775d
mov dword [ebp - 0x110], 0
jmp 0x417833
jmp 0x4177a3
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x4177a3
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x110], 0
jmp 0x417833
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 8]
test byte [eax + 4], 2
je 0x4177c7
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [ebp + 8]
test byte [eax + 4], 4
je 0x4177f0
test byte [ebp - 0x258], 0x10
je 0x4177eb
mov dword [ebp - 0x368], 0
jmp 0x41782e
test byte [ebp - 0x258], 0x10
jne 0x41782e
test byte [ebp - 0x258], 0xa0
jne 0x417824
cmp dword [ebp - 0x258], 0
je 0x417824
test byte [ebp - 0x258], 1
je 0x41782e
mov dword [ebp - 0x368], 0
jmp 0x41770d
cmp dword [ebp - 0x110], 0
je 0x4178d8
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0xc]
call fcn.0040b491
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x105
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [ebp - 0x25c]
shl eax, 0x10
movzx ecx, word [ebp - 0x36c]
or eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20c], eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x210], eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x21c]
mov dword [ecx + 0x10c], eax
mov eax, dword [ebp + 0xc]
add eax, 0x105
jmp 0x417944
mov eax, dword [ebp + 8]
cmp dword [eax + 0x224], 0
je 0x41793d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x224]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x364]
push eax
call fcn.0040c317
test eax, eax
je 0x417925
lea eax, [ebp - 0x364]
push eax
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 4]
jmp 0x41793d
lea eax, [ebp - 0x364]
push eax
push 2
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 4]
xor eax, eax
jmp 0x417944
pop edi
pop esi
pop ebx
leave
ret