joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf04ea05
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov esi, dword [sym.imp.ntdll.dll_RtlInitString]
lea ebx, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call esi
mov edi, dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
push 0
lea eax, [ebp - 8]
push eax
push ebx
call edi
test eax, eax
jge 0xf04ea5c
cmp eax, 0x80000005
jne 0xf04ea4c
push 0xce
jmp 0xf04ea54
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf04eaae
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call esi
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call edi
xor edi, edi
cmp eax, edi
jl 0xf04ea4c
mov word [ebp - 0xe], 0x20a
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0xe]
mov eax, dword [eax + 0x30]
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0xf04eab2
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
xor eax, eax
jmp 0xf04eb26
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, eax
cmp esi, edi
je 0xf04eb04
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x105
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
cmp eax, edi
jge 0xf04eb04
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword fs:[0x18]
push dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0xf04ee2c
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
lea esi, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf04ee7e
cmp eax, 0x80000005
jne 0xf04ee6c
push 0xce
jmp 0xf04ee74
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf04ee8a
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
leave
ret 8
Function at 0xf04eef9
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov esi, dword [sym.imp.ntdll.dll_RtlInitString]
lea ebx, [eax + 0xbf8]
lea eax, [ebp - 0x10]
push eax
call esi
mov edi, dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
call edi
test eax, eax
jge 0xf04ef40
cmp eax, 0x80000005
jne 0xf04ef5f
push 0xce
jmp 0xf04ef67
cmp dword [ebp + 0xc], 0
je 0xf04ef71
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call esi
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jge 0xf04ef75
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf04ef97
and dword [ebp - 4], 0
push 2
push dword [ebp - 4]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0xf04ef95
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0xf04f4f1
Capabilities:
Get hostname
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, dword [eax + 0x30]
shl ecx, 1
push ecx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0xf04f529
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf04f55a
mov ax, word [esi]
mov word [ebp - 6], ax
mov eax, dword [ebp + 8]
push esi
push edi
mov word [ebp - 8], bx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0xf04f55e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0xf04f595
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
movzx eax, word [ebp - 8]
mov dword [esi], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04f8fb
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xf0a40f8]
mov edx, dword [ebp + 8]
mov ecx, dword [0xf0773f4]
push esi
lea esi, [eax + edx - 1]
lea edx, [eax - 1]
not edx
and esi, edx
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
lea eax, [ebp - 8]
push eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push 0
push ecx
push 0xffffffffffffffff
mov dword [ebp - 4], ecx
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
jl 0xf04f985
test byte [ebp - 0x12], 1
mov eax, dword [ebp - 0x18]
je 0xf04f94f
cmp esi, eax
jbe 0xf04f963
mov ecx, dword [ebp - 0x24]
add ecx, eax
cmp ecx, dword [0xf0a4100]
jae 0xf04f985
mov eax, dword [0xf0a40f8]
jmp 0xf04f91d
push 0x40
push 0x2000
lea eax, [ebp + 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jl 0xf04f985
mov eax, dword [ebp - 4]
jmp 0xf04f987
xor eax, eax
pop esi
leave
ret 4

Function at 0xf04fa55
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0xc]
add eax, 0xfff
lea ecx, [edi + 0xfff]
shr eax, 0xc
shr ecx, 0xc
cmp eax, ecx
je 0xf04fade
jb 0xf04fade
and dword [ebp + 0xc], 0
push 0x40
push 0x1000
push esi
push 0
lea eax, [ebp + 0xc]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov ebx, eax
test ebx, ebx
jl 0xf04fada
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov esi, dword [esi]
cmp esi, edi
mov dword [ebp + 0x14], edi
ja 0xf04fab0
mov dword [ebp + 0x14], esi
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
call fcn.0f04f9b2
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
push 0x8000
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
mov dword [ebp + 0x14], edi
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, ebx
jmp 0xf04fae8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0xf04faf4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [sym.ntvdm.exe_ExpLdt]
push esi
movzx esi, word [ebp + 8]
push edi
movzx edi, word [ebp + 0xc]
mov eax, esi
shr eax, 3
lea eax, [ecx + eax*8]
shl edi, 3
cmp word [ebp + 0xc], 2
mov dword [ebp + 8], eax
ja 0xf04fb67
test esi, esi
je 0xf04fb67
cmp word [ebp + 0xc], 2
jne 0xf04fb31
lea ecx, [esi + 8]
jmp 0xf04fb33
xor ecx, ecx
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push 0xa
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ntdll.dll_NtVdmControl]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0xf04fbdf
lea eax, [edi + 0x10]
push ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.0f006f83
mov ebx, eax
test ebx, ebx
pop ecx
je 0xf04fbde
mov ecx, edi
mov eax, ecx
mov dword [ebx], esi
mov esi, dword [ebp + 8]
mov dword [ebx + 4], edi
shr ecx, 2
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
and ecx, 3
push 0xb
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], ebx
call dword [sym.imp.ntdll.dll_NtVdmControl]
test eax, eax
jge 0xf04fbd4
mov ecx, dword [0xf09bb30]
and ecx, 0xf
cmp cl, 2
jb 0xf04fbca
push eax
push 0xf003b30
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push ebx
call fcn.0f00579c
xor eax, eax
jmp 0xf04fbdd
push ebx
call fcn.0f00579c
xor eax, eax
inc eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0xf0500cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ax, word [0xf077404]
mov word [ebp - 4], ax
jmp 0xf05014f
movzx edx, word [ebp - 4]
mov eax, dword [sym.ntvdm.exe_ExpLdt]
shr edx, 3
shl edx, 3
add eax, edx
cmp byte [eax + 5], 0
jne 0xf0500ff
cmp byte [eax + 7], 0x80
je 0xf050147
xor eax, eax
xor ecx, ecx
mov ax, word [ebp - 4]
or eax, 7
lsl ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xffff
jne 0xf050147
mov eax, dword [sym.ntvdm.exe_ExpLdt]
xor ecx, ecx
add eax, edx
mov ch, byte [eax + 7]
movzx edx, word [eax + 2]
mov cl, byte [eax + 4]
shl ecx, 0x10
or ecx, edx
cmp dword [ebp + 8], ecx
jne 0xf050147
movzx eax, byte [eax + 5]
movzx ecx, byte [ebp + 0xc]
xor eax, ecx
test eax, 0xfffffffe
je 0xf05015f
add dword [ebp - 4], 8
mov ax, word [ebp - 4]
cmp ax, word [0xf077400]
jb 0xf0500e2
xor ax, ax
leave
ret 8
mov eax, dword [ebp - 4]
or eax, 7
jmp 0xf05015b
Function at 0xf053e8a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0xf061038]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
push 9
xor edi, edi
push edi
push 0xf003b70
push 0x80000002
mov dword [ebp - 0x88], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf053f9f
push ebx
push esi
push 0x40
pop esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
push edi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x98]
mov dword [ebp - 0x90], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x8c], esi
call edi
mov ebx, 0x103
jmp 0xf053f83
test eax, eax
jne 0xf053f46
cmp dword [ebp - 0x8c], 3
jbe 0xf053f46
lea eax, [ebp - 0x9c]
push eax
push 0xa
lea eax, [ebp - 0x41]
push eax
call dword [sym.imp.ntdll.dll_RtlCharToInteger]
test eax, eax
jl 0xf053f46
mov ecx, dword [ebp - 0x9c]
xor eax, eax
dec ecx
inc eax
shl eax, cl
or dword [ebp - 0x88], eax
inc dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
mov dword [ebp - 0x94], esi
push dword [ebp - 0x98]
mov dword [ebp - 0x8c], esi
call edi
cmp eax, ebx
jne 0xf053f10
push dword [ebp - 0x98]
and dword [ebp - 0x88], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x88]
pop edi
call fcn.0f01b45c
leave
ret
Function at 0xf05cb3f
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0xf0789ec], 0
je 0xf05cbb4
push 0
push dword [ebp + 8]
call fcn.0f00f591
and dword [ebp - 8], 0
push 0x40
push 0x40000000
push 2
mov dword [ebp - 4], eax
mov eax, dword [0xf09ab30]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov eax, 0x4000
push eax
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push dword [0xf0789f0]
push dword [0xf0788e0]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf05cbba
push 0x1b5
push 0xf004040
push eax
push 0x3e9
call fcn.0f03446f
xor eax, eax
leave
ret 4
xor eax, eax
inc eax
jmp 0xf05cbb6

Function at 0xf05cbc4
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0xf0789ec], edi
je 0xf05cc83
push edi
push dword [ebp + 0xc]
call fcn.0f00f591
mov dword [ebp + 0xc], eax
movsx eax, word [ebp + 8]
shl eax, 0xe
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x4000
call fcn.0f05c011
push dword [ebp + 0xc]
push dword [0xf0789f0]
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
cmp eax, edi
jge 0xf05cc2c
push 0x1f0
push 0xf004040
push eax
push 0x3e9
call fcn.0f03446f
xor eax, eax
jmp 0xf05cc86
mov eax, dword [0xf0789f0]
cmp eax, edi
jne 0xf05cc42
push 0x1f6
push 0xf004040
push edi
jmp 0xf05cc79
push 0x40
push 0x40000000
push 2
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x4000
push edi
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [0xf0788e0]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, edi
jge 0xf05cc28
push 0x209
push 0xf004040
push eax
push 0x3e9
call fcn.0f03446f
or eax, 0xffffffff
pop edi
leave
ret 8
Function at 0xf05d0c3
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0x40
pop edx
xor eax, eax
mov edi, 0xf0788e8
mov dword [0xf0789e8], edi
mov ecx, edx
rep stosd dword es:[edi], eax
movsx eax, word [ebp + 8]
xor esi, esi
push esi
shl eax, 0x14
push 0x8000000
lea ecx, [eax + 0x4000]
push edx
mov dword [0xf09ab30], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xa
or edi, 0xffffffff
push 0xf0788e0
mov dword [0xf0789f0], edi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jl 0xf05d178
push 4
push esi
push 2
lea eax, [ebp + 8]
push eax
push esi
push esi
push esi
push 0xf0789ec
push dword [0xf0789f0]
mov dword [0xf0789ec], esi
push dword [0xf0788e0]
mov dword [ebp + 8], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf05d178
call fcn.0f03ca70
test eax, eax
jne 0xf05d17c
call fcn.0f05caac
mov eax, edi
jmp 0xf05d1b0
push ebx
call fcn.0f05c035
mov ebx, eax
jmp 0xf05d1a8
xor eax, eax
mov al, bl
dec al
push eax
call fcn.0f05c041
cmp ax, 0xa000
jbe 0xf05d1a2
push eax
call fcn.0f05cb3f
test eax, eax
je 0xf05d1b6
add ebx, 0xffff
cmp bx, si
jne 0xf05d186
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
mov eax, edi
jmp 0xf05d1af
Function at 0xf05d698
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0xf078c64]
jae 0xf05d7f3
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0xf078c80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0xf05d7f3
push 1
push esi
push ebx
call fcn.0f057ed0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0xf05d7fd
push 2
push esi
push ebx
call fcn.0f057ed0
add esp, 0xc
cmp eax, 0xffffffff
je 0xf05d7fd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0xf05d7a0
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0xf05d736
mov dword [0xf065a5c], 0xc
or esi, 0xffffffff
jmp 0xf05d7e0
push 0x8000
push ebx
call fcn.0f05d809
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, 0x1000
cmp edi, eax
jge 0xf05d751
mov eax, edi
push eax
push dword [ebp + 8]
push ebx
call fcn.0f01d495
add esp, 0xc
cmp eax, 0xffffffff
je 0xf05d76b
sub edi, eax
test edi, edi
jg 0xf05d746
jmp 0xf05d781
cmp dword [0xf065a60], 5
jne 0xf05d77e
mov dword [0xf065a5c], 0xd
or esi, 0xffffffff
push dword [ebp - 4]
push ebx
call fcn.0f05d809
pop ecx
pop ecx
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0xf05d7e0
jge 0xf05d7e0
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0f057ed0
push ebx
call fcn.0f01df40
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0xf05d7e0
mov dword [0xf065a5c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xf065a60], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0f057ed0
add esp, 0xc
mov eax, esi
pop edi
jmp 0xf05d800
mov dword [0xf065a5c], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x40690e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42f764], 0
jne 0x40694c
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406922
mov dword [ecx*4 + 0x42f760], eax
inc ecx
cmp ecx, 0x100
jl 0x40691d
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406979
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40695a
not eax
pop ebp
ret 0xc

Function at 0x402733
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402c58
push 0
push 0x405020
push 0x40501c
call fcn.00402c58
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4030f6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405744]
test eax, eax
je 0x40310f
call eax
test eax, eax
jne 0x40310f
push 0xfffffffffffffffe
jmp 0x403129
push 1
push 0x405010
push 0x405008
call fcn.00402c58
add esp, 0xc
test eax, eax
je 0x40312f
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402c58
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403155
mov esi, 0x404561
mov cl, 0x20
jmp 0x40315e
cmp al, 0x20
ja 0x403168
inc esi
mov al, byte [esi]
test al, al
jne 0x403159
cmp al, 0x20
jbe 0x40317f
mov al, byte [esi]
cmp al, 0x22
jne 0x403171
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40316a
jmp 0x40317f
cmp al, cl
ja 0x403185
inc esi
mov al, byte [esi]
test al, al
jne 0x40317a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4031ae
movzx eax, word [ebp - 0x14]
jmp 0x4031b1
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402733
pop ecx
pop esi
leave
ret

Function at 0x4031e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40515c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4055a0
push 0x405608
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403232
xor eax, eax
jmp 0x403249
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
Function at 0x4121cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4121da
pop dword [ebp - 0x4c]
mov eax, 0xacd389c
add eax, 0xf573e93e
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x4fbde
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xe984443a
sub ecx, 0xe983fcee
mov ebx, eax
mov edx, 0xb674883a
sub edx, 0xb62c0a3a
add edx, dword [ebp - 0x4c]
mov edi, 0x962687eb
add edi, 0xff11ada9
xor dword [ebp - 0x24], eax
mov esi, dword [edx]
add dword [ebp - 0x2c], esi
sub esi, edi
mov dword [ebp - 0x1c], 0x1079920d
mov dword [ebx], esi
mov dword [ebp - 0x20], 0x1f9a070
add ebx, 0xc66cac06
sub ebx, 0xc66cac02
add edx, 0x5e5400c3
add edx, 0xa1abff41
loop 0x412234
add eax, 0xa5b8f14a
add eax, 0x5a481eb9
xor ebx, ebx
add ebx, eax
add eax, 0x68d73ab0
sub eax, 0x68d73aab
mov ecx, 0xcea1449e
add ecx, 0x319ebb62
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401300
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push str.TeenyWiny
push str.Balaklava
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401338
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xbc], eax
push str.Times_New
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 8]
push eax
call fcn.00401600
add esp, 4
push str.Roman
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x3c], 0xe
mov dword [ebp - 0x4c], 0xa
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call section..text
add esp, 8
test eax, eax
jne 0x40139c
xor eax, eax
jmp 0x4013d5
push 0
push 0
push 0
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4013cf
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40139c
mov eax, dword [ebp - 0xb0]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret