joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1884d3c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1884d46
pushal
call 0x1884d4c
pop ebp
sub ebp, 0x10
sub ebp, 0x1484d3c
jmp 0x1884d62
mov eax, 0x1484d3c
add eax, ebp
add eax, 0x4c
mov ecx, 0x57b
mov edx, 0xdfbb55e4
xor byte [eax], dl
inc eax
dec ecx
jne 0x1884d79
jmp 0x1884d8c
outsd dx, dword [esi]
sub dword [edi + 0x6d], ebp
fsub st(4)
in al, 0xe4
and eax, 0xe4e4e41c
out 0x29, eax
pop esp
jecxz 0x1884d83
in al, 0xe4
pop esi
int3
Function at 0x409ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409eb5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409ef4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409ef0
lea ebx, [ebx]
cmp esi, edx
jae 0x409ef4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409ee0
cmp esi, edx
jb 0x409ef9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40bc40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bcb1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40bc7f
cmp eax, 2
jne 0x40bc9b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40bcab
test ecx, ecx
je 0x40bca6
test cl, 1
jne 0x40bc9b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40bcab
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40c5c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40c5d5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40c5e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c5e0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40d550
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d642
mov eax, dword [0x566ac0]
imul eax, eax
push esi
and eax, 0x8000000f
jns 0x40d58f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 2
jne 0x40d5b2
push 4
call fcn.004e4ad7
mov esi, eax
call fcn.004e5d44
mov dword [esi], eax
push esi
mov dword [0x566ac0], eax
call fcn.004e4aa8
add esp, 8
push 5
push str.tempo
push 1
push str.Tempo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x40d5dd
push str.Tempo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040d650
test al, al
jne 0x40d62d
mov esi, dword [0x566ac0]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x63]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e3d44
push eax
call fcn.004e5e73
add esp, 8
call fcn.0040d680
pop esi
test al, al
jne 0x40d642
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x566ac0], eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d6f0
Capabilities:
Contain obfuscated stackstrings
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x566ac0]
xor eax, eax
mov word [ebp - 8], ax
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
cdq
mov ecx, 0x14
idiv ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x5f005f
mov dword [ebp - 0x44], 0x520043
mov dword [ebp - 0x40], 0x40005f
mov dword [ebp - 0x3c], 0x410046
mov dword [ebp - 0x38], 0x4c0049
mov dword [ebp - 0x34], 0x440045
mov dword [ebp - 0x30], 0x44005f
mov dword [ebp - 0x2c], 0x57004f
mov dword [ebp - 0x28], 0x4c004e
mov dword [ebp - 0x24], 0x41004f
mov dword [ebp - 0x20], 0x5f0044
mov dword [ebp - 0x1c], 0x450052
mov dword [ebp - 0x18], 0x440041
mov dword [ebp - 0x14], 0x5f0040
mov dword [ebp - 0x10], 0x520043
mov dword [ebp - 0xc], 0x5f005f
cmp edx, 0xb
jne 0x40d7b2
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00401ba0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e52a4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d84b
test al, 0x10
je 0x40d84b
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x40d9c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040d830
add esp, 4
test al, al
jne 0x40da3f
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40da3f
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.0040eda0
test al, al
jne 0x40da32
mov esi, dword [0x566ac0]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x7b]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e3d44
push eax
call fcn.004e5e73
add esp, 8
cmp edi, 0xb7
pop edi
sete al
pop esi
pop ebp
ret
mov al, 1
pop esi
pop ebp
ret

Function at 0x40de90
Capabilities:
Check for time delay via gettickcount
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call fcn.0040ece0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, al
jne 0x40ded0
call esi
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x566ac0], edx
cmp ebx, 0xffffffff
jne 0x40dedb
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call esi
mov ecx, dword [0x566ac0]
mov esi, 0xe
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 9
jne 0x40df6e
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, esi, 0xe8
mov eax, ecx
push edi
sub eax, esi
xor edi, edi
cmp eax, 0xcb
je 0x40df67
jmp 0x40df30
mov eax, ecx
or eax, 0xffffff49
add ecx, eax
mov eax, ecx
imul eax, ecx
inc edi
cmp edi, eax
jg 0x40df67
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, esi, 0xe8
mov eax, ecx
sub eax, esi
cmp eax, 0xcb
jne 0x40df30
mov dword [0x566ac0], edi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x40e900
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x566ac0]
push esi
lea eax, [ecx + 1]
imul eax, ecx
push edi
cdq
mov edi, 0x17
idiv edi
mov esi, dword [ebp + 8]
cmp edx, 4
jne 0x40e941
mov eax, 1
test ecx, ecx
cmove ecx, eax
mov dword [0x566ac0], ecx
push 0
push 0x2000000
push 4
push 0
push 0
push 0xc0000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e974
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x566ac0]
mov edi, dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x14
idiv ecx
xorps xmm0, xmm0
movq qword [ebp - 0xc8], xmm0
movq qword [ebp - 0xc0], xmm0
cmp edx, 0xf
jne 0x40e9af
lea eax, [ebp - 0xb0]
push eax
call edi
push ebx
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc8]
push eax
xorps xmm0, xmm0
push esi
movq qword [ebp - 0xb8], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [0x566ac0]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ebx, 7
idiv ebx
pop ebx
cmp edx, 5
jne 0x40ea50
movsd xmm3, qword [0x519ef8]
movsd xmm6, qword [0x519f00]
movsd xmm5, qword [0x519ef0]
movd xmm4, ecx
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
jmp 0x40ea20
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x40ea3a
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x40ea20
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x566ac0]
imul eax, eax
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 0xd
jne 0x40ea9e
lea eax, [ebp - 0xb0]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
Function at 0x40eab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506748
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x565680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40eb04
xor bl, bl
jmp 0x40eb69
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x40eb3a
push 0
lea ecx, [ebp + 0xc]
call fcn.00407590
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40eb8d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ef40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.0040edc0
test al, al
jne 0x40ef6b
dec dword [0x566ac0]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [esi]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f070
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x566ac0]
mov eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 0xb4], 0x17
idiv dword [ebp - 0xb4]
cmp edx, 0x14
jne 0x40f013
movsd xmm3, qword [0x519ef8]
movsd xmm6, qword [0x519f00]
movsd xmm5, qword [0x519ef0]
movd xmm4, ecx
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x40effd
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x40efe3
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0xb4]
push ecx
mov dword [ebp - 0xb4], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f069
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [0x566ac0]
imul eax, eax
cdq
mov ecx, 6
idiv ecx
mov bl, 1
cmp edx, 2
jne 0x40f069
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
Function at 0x417610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5070b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x417741
cmp byte [ebx + 0x46], 0
je 0x417741
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x41766f
xor al, al
jmp 0x417743
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
nop
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4176da
dec eax
je 0x4176de
sub eax, 2
je 0x41772a
xor bl, bl
jmp 0x41772c
mov byte [ebx + 0x46], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x417710
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.004e7c1b
add esp, 0x10
cmp esi, eax
jne 0x4176d6
cmp byte [ebx + 0x46], 0
je 0x41772a
test esi, esi
jne 0x4176a0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00418340
jmp 0x4176a0
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x41773d
push dword [ebp - 0x28]
call fcn.004e4aa8
add esp, 4
mov al, bl
jmp 0x417743
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
Function at 0x41dd10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507868
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x565680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0041e070
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0041e070
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.0041e120
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.0041e120
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4209e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x61c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x614], edi
call fcn.004208f0
mov ebx, dword [0x566ac0]
test al, al
jne 0x420a3e
xor ecx, ecx
mov dword [ebp - 0x60c], ebx
mov word [ebp + ecx*2 - 0x14], 0
inc ecx
cmp ecx, 7
jl 0x420a31
lea ecx, [ebx + 1]
lea eax, [ebx + 2]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0x14
idiv ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp edx, 7
jne 0x420b16
xor eax, eax
mov dword [ebp - 0x608], eax
lea ecx, [ebp - 0x604]
mov edi, edi
xor edx, edx
mov dword [ebp - 0x60c], edx
mov dword [ebp - 0x610], ecx
mov edi, edi
lea ecx, [eax + 1]
lea edi, [edx + 1]
mov eax, ebx
cdq
idiv ecx
mov eax, ebx
mov ecx, ebx
sub ecx, dword [ebp - 0x608]
mov ebx, dword [ebp - 0x610]
mov esi, edx
cdq
imul esi, ecx
idiv edi
add esi, eax
sub esi, dword [ebp - 0x60c]
push esi
push 0x519f70
call fcn.004e6944
mov eax, dword [ebp - 0x608]
mov edx, edi
add ebx, 4
add esp, 8
mov dword [ebp - 0x60c], edx
mov dword [ebp - 0x610], ebx
cmp edx, 0x14
jge 0x420aed
mov ebx, dword [0x566ac0]
jmp 0x420a90
inc eax
mov dword [ebp - 0x608], eax
cmp eax, 0x13
jge 0x420b0a
mov ebx, dword [0x566ac0]
mov ecx, dword [ebp - 0x610]
jmp 0x420a80
mov esi, dword [ebp - 0x618]
mov edi, dword [ebp - 0x614]
push 0
push 0
push 0x2001f
push 0x100
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push edi
call fcn.0040a620
test eax, eax
je 0x420b58
push 0
push 0
push 0x2001f
push 0
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push edi
call fcn.0040a620
test eax, eax
je 0x420b58
mov esi, dword [ebp - 0x14]
xor bl, bl
jmp 0x420bb2
mov edx, dword [ebp - 0x620]
mov esi, dword [ebp - 0x14]
mov edx, dword [edx]
test edx, edx
jne 0x420b6e
mov edi, 0xd
jmp 0x420ba0
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420b73
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x61c]
push edx
push 1
push 0
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x420bad
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test edi, edi
sete bl
test esi, esi
je 0x420bbd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
Function at 0x43c110
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
call fcn.0043bec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43c12f
lea eax, [edi + 7]
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.0043bf70
push esi
test eax, eax
je 0x43c171
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test ebx, ebx
jne 0x43c1a9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c1a9
mov eax, edi
inc edi
cmp eax, 3
jge 0x43c1a9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test ebx, ebx
je 0x43c146
jmp 0x43c1a9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
jne 0x43c1a9
lea ecx, [ecx]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43c1a9
mov eax, edi
inc edi
cmp eax, 3
jge 0x43c1a9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
je 0x43c180
push esi
call fcn.0043b500
add esp, 4
xor ecx, ecx
test ebx, ebx
pop ebx
mov eax, 0xa
pop edi
cmovne eax, ecx
pop esi
pop ebp
ret

Function at 0x43c270
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call fcn.0043bec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43c28b
lea eax, [esi + 7]
pop esi
pop ebp
ret
push ebx
call fcn.0043bf70
push esi
test eax, eax
je 0x43c29e
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x43c2a4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.0043b500
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x43c390
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x43c3a0
xor eax, eax
pop esi
pop ebp
ret
call fcn.0043bf70
test eax, eax
jne 0x43c3c1
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c3b0
sub ecx, edx
cmp ecx, 0x104
ja 0x43c39b
push esi
call fcn.0043bec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43c3d6
lea eax, [esi + 7]
pop esi
pop ebp
ret
push ebx
call fcn.0043bf70
push esi
test eax, eax
je 0x43c3e9
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x43c3ef
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov ebx, eax
call fcn.0043b500
add esp, 4
cmp ebx, 0xffffffff
jne 0x43c405
pop ebx
xor eax, eax
pop esi
pop ebp
ret
movsx eax, bl
and eax, 0x10
pop ebx
shr eax, 4
pop esi
pop ebp
ret