joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push edi
and byte [ebp - 0x108], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
and byte [ebp - 0x318], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
and byte [ebp - 0x210], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [0x424f70], eax
mov eax, dword [0x424f70]
mov dword [0x4252b4], eax
and dword [0x4252b0], 0
and dword [0x424f78], 0
and dword [0x424f6c], 0
and dword [0x4253d0], 0
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00408838
push 0x105
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
push 0x4252c0
lea eax, [ebp - 0x108]
push eax
call fcn.00408266
push 0x4252c0
call fcn.00408802
call fcn.00402220
call fcn.004020ed
push dword [ebp + 0x10]
call fcn.004014a3
pop ecx
call fcn.004024c0
test eax, eax
jne 0x4010fa
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
call fcn.004021dd
xor eax, eax
jmp 0x401244
cmp dword [0x42529c], 0
je 0x40114e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x31c], eax
push dword [ebp + 8]
call fcn.00401dc8
pop ecx
test eax, eax
jne 0x401134
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x31c]
cmp eax, 0x7d0
jae 0x401149
jmp 0x401134
call fcn.00401d7d
call fcn.00401413
test eax, eax
jne 0x40116f
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
cmp dword [0x425294], 0
jne 0x4011a2
cmp dword [0x425290], 0
jne 0x4011a2
cmp dword [0x425298], 0
jne 0x4011a2
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
cmp dword [0x4253d4], 0
jne 0x4011bc
push dword [0x4253c8]
push dword [0x4253cc]
call fcn.00405220
lea eax, [ebp - 0x318]
push eax
push dword [0x424660]
call fcn.00407d91
test eax, eax
je 0x401207
push dword [0x424660]
push 0
lea eax, [ebp - 0x318]
push eax
push 0xfffffffffffffff8
call fcn.004019ff
call fcn.0040530e
call fcn.00401485
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
xor eax, eax
jmp 0x401244
call fcn.004027f3
call fcn.0040133c
mov dword [ebp - 0x320], eax
push dword [ebp - 0x320]
call fcn.0040285a
pop ecx
call fcn.0040530e
call fcn.00401485
call fcn.004021dd
lea eax, [ebp - 0x210]
push eax
call fcn.00408802
mov eax, dword [ebp - 0x320]
pop edi
leave
ret 0x10

Function at 0x401d7d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [0x424664]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x424664]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x424668], 0
je 0x401daf
push dword [0x424668]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x42466c], 0
je 0x401dc4
push dword [0x42466c]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop ebp
ret
Function at 0x401dc8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [0x42466c], 0
push 0x1d4c
push dword [0x424f70]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [0x424668], eax
cmp dword [0x424668], 0
jne 0x401e28
push 0x42466c
call fcn.004022b1
pop ecx
mov dword [0x424668], eax
cmp dword [0x424668], 0
jne 0x401e28
push 0x10
push str.Error
push str.Unable_to_locate_process_internal_binary_resource.__Please_contact_your_software_vendor.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401f49
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x401f4b
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
mov eax, dword [0x424f70]
mov dword [ebp - 0x3c], eax
push 0x3e8
push dword [0x424f70]
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x38], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x421038
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x401e91
xor eax, eax
jmp 0x401f49
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [0x424668]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
push 0
push dword [0x424f70]
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x80800000
push str.DeIsAbtWinName
push str.DeIsAbtClsName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401f15
xor eax, eax
jmp 0x401f49
mov eax, dword [ebp - 4]
mov dword [0x424664], eax
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
leave
ret
Function at 0x4022b1
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [ebp - 0xa8], 0
call fcn.004026d5
test eax, eax
je 0x4022ee
push 0x3e8
push 0x3e9
push dword [0x424f70]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xac], eax
jmp 0x40230a
push 0x3e8
push 0x3e8
push dword [0x424f70]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x40231a
xor eax, eax
jmp 0x4024be
push dword [ebp - 0xac]
push dword [0x424f70]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0xac]
push dword [0x424f70]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x402360
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4024be
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xa8]
add eax, 0x64
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40238e
xor eax, eax
jmp 0x4024be
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xb0], eax
and dword [ebp - 0xb4], 0
jmp 0x4023b3
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0xa8]
jge 0x4023dc
mov eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xb4]
mov cl, byte [ecx]
mov byte [eax], cl
jmp 0x4023a6
push 1
push 0xaf325de9
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
call fcn.0040ee2d
push 0x105
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x1c0]
push eax
call fcn.0040831c
push str._bmp23_.bm_
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1001
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0xb8], eax
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll__hwrite]
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.0040ea72
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.0040b363
cmp dword [ebp - 0x1c4], 0
je 0x4024b3
xor eax, eax
jmp 0x4024be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x4025b2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 1
cmp dword [0x424f74], 0
je 0x4025d4
mov dword [ebp - 4], 1
jmp 0x4026d0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004025a9
test eax, eax
je 0x4025f1
mov dword [ebp - 4], 7
jmp 0x4026d0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1e6
ja 0x40262c
cmp dword [ebp - 0x34], 0x1e6
je 0x4026a5
cmp dword [ebp - 0x34], 0x182
je 0x4026a5
jmp 0x4026d0
cmp dword [ebp - 0x34], 0x259
ja 0x402650
cmp dword [ebp - 0x34], 0x259
je 0x4026c9
cmp dword [ebp - 0x34], 0x24a
je 0x4026a5
jmp 0x4026d0
cmp dword [ebp - 0x34], 0x26c
ja 0x402676
cmp dword [ebp - 0x34], 0x26c
je 0x4026c9
cmp dword [ebp - 0x34], 0x25b
jb 0x4026d0
cmp dword [ebp - 0x34], 0x25c
jbe 0x4026c9
jmp 0x4026d0
cmp dword [ebp - 0x34], 0x35c
je 0x4026ae
cmp dword [ebp - 0x34], 0x7d0
je 0x4026b7
cmp dword [ebp - 0x34], 0xbb8
je 0x4026b7
cmp dword [ebp - 0x34], 0xfa0
je 0x4026b7
cmp dword [ebp - 0x34], 0x5248
je 0x4026c0
jmp 0x4026d0
mov dword [ebp - 4], 2
jmp 0x4026d0
mov dword [ebp - 4], 2
jmp 0x4026d0
mov dword [ebp - 4], 4
jmp 0x4026d0
mov dword [ebp - 4], 3
jmp 0x4026d0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
leave
ret

Function at 0x404830
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov al, byte [esp + 8]
mov cl, 1
test al, al
mov byte [esp], cl
je 0x40484e
mov dl, al
and dl, 1
xor cl, dl
shr al, 1
jne 0x40483f
mov byte [esp], cl
mov eax, dword [esp]
and eax, 0xff
pop ecx
ret 4

Function at 0x4070a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x105
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040831c
mov dword [ebp - 0x10c], 1
push dword [ebp - 0x10c]
push 0x4213d8
lea eax, [ebp - 0x108]
push eax
push 0x4213e0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp + 8]
call fcn.0040c670
test eax, eax
je 0x40713b
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
push dword [ebp - 0x10c]
push str._detmp
lea eax, [ebp - 0x108]
push eax
push 0x4213f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x4070fd
push 1
pop eax
leave
ret 4
Function at 0x40719e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4071c0
xor eax, eax
jmp 0x407245
mov eax, dword [ebp - 8]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4071e6
xor eax, eax
jmp 0x407245
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4071ff
xor eax, eax
jmp 0x407245
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x1c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40721c
xor eax, eax
jmp 0x407245
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 1
pop eax
leave
ret

Function at 0x407972
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
test eax, eax
jne 0x40798c
xor eax, eax
jmp 0x407a8c
push dword [ebp + 8]
call fcn.004077c9
pop ecx
push 0x421490
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x41c]
push eax
call fcn.0040831c
push dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x2a6
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx eax, byte [ebp - 0x314]
test eax, eax
jne 0x407a40
push 0x105
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x314]
push eax
call fcn.0040831c
push str.IsUninst.exe
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4214d8
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x13d
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x314]
push eax
push 0xffffffffffffffff
push 1
push str.UninstallString
lea eax, [ebp - 0x41c]
push eax
push dword [0x42137c]
call fcn.0040ffaf
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0x242
push eax
push 0xffffffffffffffff
push 1
push str.DisplayName
lea eax, [ebp - 0x41c]
push eax
push dword [0x42137c]
call fcn.0040ffaf
push 1
pop eax
leave
ret
Function at 0x40a230
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0xc], 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x40a28a
cmp dword [0x424704], 0
je 0x40a28a
push dword [ebp + 8]
call dword [0x424704]
xor eax, eax
cmp dword [ebp - 0x118], 0
sete al
leave
ret
Function at 0x40d6d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x4247a0], 0
je 0x40d6e7
push 1
pop eax
jmp 0x40d87f
push 0x1003
push 0x9c4
call fcn.00402b40
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40d707
or eax, 0xffffffff
jmp 0x40d87f
push 0x32c
push dword [ebp - 0xc]
call fcn.00403130
mov dword [0x42479c], eax
cmp dword [0x42479c], 0
jne 0x40d72a
or eax, 0xffffffff
jmp 0x40d87f
mov eax, dword [0x42479c]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [0x42479c]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [0x42479c]
and byte [eax + 0x226], 0
mov eax, dword [0x42479c]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [0x42479c]
and dword [eax + 4], 0
mov eax, dword [0x42479c]
and dword [eax + 0x18], 0
mov eax, dword [0x42479c]
and dword [eax + 0x14], 0
mov eax, dword [0x42479c]
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 6
je 0x40d792
cmp dword [ebp + 8], 7
jne 0x40d7bd
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
sar eax, 8
and eax, 0xff
movzx eax, al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x40d7bd
mov eax, dword [0x42479c]
and dword [eax + 0x10], 0
push dword [ebp + 0x10]
mov eax, dword [0x42479c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
mov eax, dword [0x42479c]
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 [0x4247b0], eax
push str.ISMSG16_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247b4], eax
push str.ISMSG32_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247b8], eax
push str.ISMSG32_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247bc], eax
push str.ISMSG32_DELETEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247c0], eax
push str.ISMSG32_RENAMEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247c4], eax
push str.ISMSG32_STRINGLEN
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247c8], eax
push str.ISMSG32_CHARS
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247cc], eax
push str.ISMSG32_DOFILEOP
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247d0], eax
mov dword [0x4247a0], 1
xor eax, eax
leave
ret 0x10
Function at 0x40dd9c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push dword [ebp + 8]
push str.file_d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x42479c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x421784
push str.main
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42179c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40de05
xor eax, eax
jmp 0x40de1d
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040de1f
pop ecx
pop ecx
push 1
pop eax
leave
ret

Function at 0x40de1f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push dword [ebp + 0xc]
call fcn.0040d9a2
and dword [ebp - 4], 0
jmp 0x40de3d
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x64
jge 0x40dead
push dword [ebp - 4]
push str.alt_d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x42479c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
push 0x4217b4
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOWAYVALUEXX
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40de9f
jmp 0x40dead
lea eax, [ebp - 0x214]
push eax
call fcn.0040d9a2
jmp 0x40de36
push 1
pop eax
leave
ret

Function at 0x40dfc9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push 0x105
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x421804
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409bda
push str.tmpdelis.bat
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.00409bda
push 0x421824
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00409bda
push str.winstart.isk
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00409bda
mov eax, dword [0x42479c]
and dword [eax + 0x14], 0
mov eax, dword [0x42479c]
and dword [eax + 0x18], 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e0b9
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e1b5
add esp, 0x10
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e2df
add esp, 0xc
push 1
pop eax
leave
ret

Function at 0x40e857
Capabilities:
Delete file
Move file

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x20
jae 0x40e9a8
xor eax, eax
jmp 0x40ea1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1b58
mov dword [ebp - 0x24], eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ea00
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x24], eax
jbe 0x40ea00
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
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 - 4], eax
jmp 0x40e9c5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ea1a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push 1
pop eax
jmp 0x40ea1c
xor eax, eax
leave
ret
Function at 0x40ffaf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 4
jl 0x41000d
cmp dword [ebp - 0x814], 5
jle 0x40ffd5
jmp 0x41000d
push dword [ebp + 0x1c]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x800]
push eax
call fcn.0041a050
pop ecx
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x804], eax
mov dword [ebp + 0x18], 4
jmp 0x410032
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x804], eax
cmp dword [ebp + 0x14], 1
je 0x410022
cmp dword [ebp + 0x14], 2
jne 0x410032
push dword [ebp - 0x804]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0xffffffff
jne 0x410048
push dword [ebp - 0x804]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fd31
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x410085
push 0x4247e0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fb6d
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x410085
xor eax, eax
jmp 0x4100e3
push dword [ebp + 0x18]
push dword [ebp - 0x804]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x4100c1
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4100e3
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x4100e0
xor eax, eax
jmp 0x4100e3
push 1
pop eax
leave
ret 0x18