joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fc6
Capabilities:
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], str.MODE_:_ashcv_n
call sub.msvcrt.dll_printf
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x40c0d0
call fcn.004048a0
test eax, eax
jne 0x402017
mov dword [esp], 0x40c0d0
call fcn.00404a0e
mov dword [esp + 4], 0x27
mov dword [esp], 0x40c0d0
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x53f290
call fcn.00404852
test eax, eax
jne 0x402059
mov dword [esp], 0x53f290
call fcn.00402f94
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x53f290
call fcn.00402be0
jmp 0x40208d
mov dword [esp], 0x53f290
call fcn.00402c78
test eax, eax
jne 0x40208d
mov dword [esp], 0x53f290
call fcn.00402f94
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x53f290
call fcn.00402be0
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
call fcn.00402b09
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40a135
mov dword [esp + 8], 0x402977
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4020e9
mov dword [esp], 0x48de60
call fcn.00404aae
mov dword [esp], 0x40d900
call fcn.00404852
test eax, eax
jne 0x402111
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x40d900
call fcn.00402f94
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
call fcn.00402504
leave
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x418444], 0
jne 0x40110d
push edi
push 0x40
mov byte [ebp - 0x108], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.fsllib32.dll
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x418444], eax
jne 0x40104e
or dword [0x418444], 0xffffffff
jmp 0x40110c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FSL2GetProductKey
push eax
call esi
push str.FSL2InitSystem
push dword [0x418444]
mov dword [0x418448], eax
call esi
mov ecx, dword [0x418448]
test ecx, ecx
mov dword [0x41844c], eax
je 0x40110b
test eax, eax
je 0x40110b
push ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x47
call ecx
test eax, eax
mov edi, 0x7d2
mov ebx, 0x7d5
je 0x4010b1
cmp eax, edi
je 0x4010b1
cmp eax, ebx
jne 0x40110a
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x47
lea eax, [ebp - 0x108]
push eax
call dword [0x41844c]
test eax, eax
je 0x4010d4
cmp eax, edi
je 0x4010d4
cmp eax, ebx
jne 0x40110a
push str.FSL2DeactivateLayer
push dword [0x418444]
call esi
push str.FSL2DeleteLayer
push dword [0x418444]
mov dword [0x418450], eax
call esi
push 0x414408
push dword [0x418444]
mov dword [0x418454], eax
call esi
mov dword [0x418458], eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40169a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x4186c0], esi
je 0x401814
cmp dword [ebp + 0x1c], esi
je 0x4016d7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push esi
push 6
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x418030]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4016f1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push 0x1f
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x418030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x401835
mov esi, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, eax
inc ebx
cmp dword [ebp + 0xc], 3
jne 0x40171e
push esi
call fcn.0040e6f7
pop ecx
push 4
mov dword [esi], eax
pop ebx
jmp 0x401743
cmp dword [ebp + 0xc], 2
jne 0x40176d
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp byte [eax], bl
je 0x401740
push esi
call edi
push esi
lea ebx, [ebx + eax + 1]
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x40172d
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [eax*4 + 0x418044]
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
jmp 0x401835
cmp dword [ebp + 0xc], 4
jne 0x401743
xor ebx, ebx
cmp byte [esi], bl
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
mov edi, esi
mov dword [ebp - 8], esi
je 0x401743
movsx eax, byte [edi]
push eax
call fcn.0040e620
mov byte [edi], al
cmp dword [0x41806c], 1
pop ecx
movsx eax, al
jle 0x4017a8
push 4
push eax
call fcn.0040e5a2
pop ecx
pop ecx
jmp 0x4017b5
mov ecx, dword [str.________________________________H]
movzx eax, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x4017c3
mov al, byte [edi]
cmp al, 0x41
jl 0x401805
cmp al, 0x46
jg 0x401805
cmp dword [ebp - 0xc], 0
mov al, byte [edi]
je 0x4017f1
cmp al, 0x39
movsx eax, al
jg 0x4017d7
sub eax, 0x30
jmp 0x4017da
sub eax, 0x37
mov cl, byte [ebp - 1]
shl cl, 4
or cl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
inc ebx
and dword [ebp - 0xc], 0
mov byte [eax], cl
jmp 0x401805
cmp al, 0x39
jg 0x4017f9
sub al, 0x30
jmp 0x4017fb
sub al, 0x37
mov byte [ebp - 1], al
mov dword [ebp - 0xc], 1
inc edi
cmp byte [edi], 0
jne 0x401784
jmp 0x401743
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x401835
cmp dword [ebp + 8], esi
jne 0x401835
push esi
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop esi
leave
ret
Function at 0x401b27
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x414474
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x4186c0], ebx
lea esi, [ebp + eax - 0x18f]
je 0x401bce
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push 0x1f
push ebx
push dword [ebp + 8]
push dword [eax*4 + 0x418030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bf9
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0xc]
mov esi, eax
call edi
cmp esi, ebx
jne 0x401bf9
push dword [ebp + 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.00401b27
pop ecx
pop ecx
jmp 0x401c00
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401bf9
push pe_nt_image_headers32
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 8]
jmp 0x401bb3
mov dword [ebp - 4], 0x800
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x800
jl 0x401b3e
cmp dword [0x4186c0], ebx
pop edi
pop esi
pop ebx
push dword [ebp + 8]
je 0x401c2a
mov eax, dword [ebp + 0xc]
push dword [eax*4 + 0x418030]
jmp 0x401c2f
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret

Function at 0x401ca3
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
jne 0x401cb2
mov dword [esp + 8], 0x80
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
inc eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret

Function at 0x401e0c
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x401e5e
push esi
push edi
push 0x10020
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x401e59
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee8
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
cmp dword [0x4186c0], 2
push esi
push edi
jne 0x401fd7
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x100]
push eax
call esi
cmp byte [ebp + eax - 0x101], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401f3f
push 0x414474
lea eax, [ebp - 0x100]
push eax
call edi
push str.WININIT.INI
lea eax, [ebp - 0x100]
push eax
call edi
push 1
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x401fa7
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str.NUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x401fe4
push 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x401fe4
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str._rename__r_nNUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401f86
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
leave
ret

Function at 0x402539
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x402546
or eax, 0xffffffff
jmp 0x402573
mov eax, dword [0x418af8]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x402572
push edi
mov edi, dword [0x418a50]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edi + edx*4]
inc ecx
dec esi
jne 0x402555
pop edi
pop esi
mov dword [0x418af8], eax
not eax
ret

Function at 0x40257b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040e810
push dword [ebp + 0xc]
lea eax, [ebp - 0x254]
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x4025e1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret
Function at 0x402793
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push dword [0x418aec]
lea eax, [ebp - 0x520]
push str.Icons_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp - 0x520]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028f3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.Path
push dword [ebp - 8]
mov edi, 0x104
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.Arguments
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.WorkingDir
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x4144fc
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x218]
neg al
lea ecx, [ebp - 0x218]
sbb eax, eax
and eax, ecx
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040e74f
pop ecx
push eax
lea eax, [ebp - 0x624]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
pop esi
ja 0x4028f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0x10]
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
leave
ret
Function at 0x4028f6
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ecx
mov eax, dword [0x4186c0]
dec eax
neg eax
sbb eax, eax
push esi
add eax, 0x75fa
movzx eax, ax
push 0x12c
push eax
push dword [0x418790]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4029cb
push ebx
push esi
push dword [0x418790]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x418790]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4029ca
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4029c2
mov esi, dword [esp + 0x14]
push edi
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x402986
push 0x414474
push esi
call edi
cmp dword [0x4186c0], 0
jne 0x402996
push str._MSSETUP.EXE
jmp 0x40299b
push str._MSRSTRT.EXE
push esi
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
pop edi
je 0x4029c2
push dword [esp + 0xc]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop ebx
pop esi
pop ecx
ret

Function at 0x40302a
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.00401ca3
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [0x418b60], 0
je 0x403066
test esi, esi
jne 0x403066
mov eax, dword [0x4186bc]
test eax, eax
je 0x403066
push esi
push edi
push 1
push 0x10
call eax
pop edi
mov eax, esi
pop esi
ret

Function at 0x403209
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.0040306b
cmp dword [0x4186c0], edi
pop ecx
pop ecx
mov dword [ebp - 8], edi
je 0x4032a6
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x4032a5
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
push 2
lea eax, [ebp - 4]
push eax
push ebx
call esi
cmp word [ebp - 4], 0x5a4d
jne 0x40329d
push edi
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0x3c
push ebx
call edi
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
push 0
push dword [ebp - 0xc]
push ebx
call edi
push 2
lea eax, [ebp - 4]
push eax
push ebx
call esi
cmp word [ebp - 4], 0x4550
jne 0x40329d
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret
Function at 0x4033e3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push str.Msg_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
push dword [0x418a24]
lea eax, [ebp - 0x20]
push dword [ebp + 0x14]
push ebx
push 0x4145d4
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0x7f
mov dword [ebp + 0x10], eax
jne 0x403442
cmp eax, 1
jne 0x403442
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x4034ab
push edi
push 0x7c
push ebx
call fcn.004025e3
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40348d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
push 0x4145c4
push edi
call esi
lea eax, [ebp - 0x220]
push eax
add edi, 2
push edi
call esi
push 0x7c
push ebx
call fcn.004025e3
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x40345a
pop esi
push 0x7e
push ebx
call fcn.004025e3
pop ecx
pop ecx
pop edi
jmp 0x4034a7
push 0x7e
push ebx
mov byte [eax], 0x20
call fcn.004025e3
pop ecx
pop ecx
test eax, eax
jne 0x40349a
mov eax, dword [ebp + 0x10]
pop ebx
leave
ret

Function at 0x4034b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push dword [0x418ba8]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x418a24]
mov ebx, eax
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp - 0x100]
push eax
push 0x41461e
push str.Text_Font
mov esi, str.Settings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x100], 0
je 0x403517
push edi
call fcn.00401fe8
pop ecx
lea ecx, [ebp - 0x100]
push ecx
push eax
mov dword [0x418b68], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x418a24]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Font_Character_Set
push esi
call edi
push dword [0x418a24]
mov byte [0x4186dc], al
push 8
push str.Font_Character_Size
push esi
call edi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push ebx
mov byte [0x4186d4], al
call esi
push 0xc
push ebx
call esi
push 8
push ebx
call esi
push 0xa
push ebx
mov dword [0x418680], eax
call esi
pop edi
pop esi
mov dword [0x418700], eax
pop ebx
leave
ret
Function at 0x408926
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x408ab6
lea eax, [ebp - 4]
push eax
push 0x4143e8
push 1
push ebx
push 0x4143f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x408ab0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41542c
push eax
call dword [ecx]
test eax, eax
jne 0x408aa7
push esi
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.00401653
pop ecx
pop ecx
lea edx, [ebp - 0x210]
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00401653
pop ecx
pop ecx
lea edx, [ebp - 0x210]
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00401653
mov esi, eax
push esi
call fcn.0040e74f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
add esp, 0xc
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [edx + 0x44]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00401653
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401653
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040e74f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
add esp, 0x14
and eax, 7
push eax
push ecx
call dword [edx + 0x3c]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00401653
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040e74f
add esp, 0xc
cmp al, bl
je 0x408a64
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x34]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00401653
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x2c]
push dword [ebp + 8]
call fcn.00403854
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x418]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
leave
ret
Function at 0x4090a2
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
cmp dword [0x418b60], ebx
push esi
push edi
je 0x4092a0
lea eax, [ebp - 4]
push eax
push 0x1f
push ebx
push dword [0x418058]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4092a0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov esi, pe_nt_image_headers32
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409297
cmp dword [ebp - 8], 1
push 4
pop edi
jne 0x409120
lea eax, [ebp - 0x10c]
push eax
call fcn.0040e74f
pop ecx
jmp 0x40913e
cmp dword [ebp - 8], edi
je 0x409138
cmp dword [ebp - 8], 3
jne 0x409297
cmp dword [ebp - 0xc], edi
jne 0x409297
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jle 0x409297
cmp dword [0x41869c], ebx
je 0x409151
dec eax
jmp 0x409154
sub eax, dword [ebp + 0x10]
cmp eax, ebx
jge 0x40915c
xor eax, eax
cmp eax, ebx
jne 0x409271
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x26
push dword [0x418790]
call fcn.004033e3
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push dword [0x418a5c]
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x27
push dword [0x418790]
call fcn.004033e3
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
push dword [0x418a5c]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x41878c], ebx
mov esi, 0x3ed
jne 0x409258
cmp dword [0x418a38], ebx
jne 0x409258
cmp dword [0x418b14], ebx
je 0x4091e1
mov edi, esi
jmp 0x40925b
cmp dword [0x418784], ebx
je 0x4091f7
push 0x19
push dword [0x418794]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x418794]
push 0x68
push dword [0x418790]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x418784], ebx
mov edi, eax
je 0x40922f
push ebx
push 0x96
push 0x19
push dword [0x418794]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
cmp edi, eax
jne 0x40923b
mov dword [0x418a38], eax
cmp edi, 0x3ef
jne 0x40924a
mov edi, esi
mov dword [0x418b14], eax
push dword [0x418794]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40925b
push 7
pop edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor eax, eax
cmp edi, esi
sete al
inc eax
jmp 0x4092a2
cmp eax, 1
jl 0x409297
push edi
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
inc eax
jmp 0x4092a2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret