joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3b006
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
push 0x1ae10
call fcn.000124c0
and dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx]
add esi, 0x410
push 0x73525349
push esi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp + 0x18], edi
test edi, edi
jne 0x3b03f
mov eax, 0xc000009a
jmp 0x3b0b3
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x3b098
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x3b06a
mov ecx, dword [edi + 4]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x3b093
mov eax, dword [ebx]
test eax, eax
jbe 0x3b093
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x3b07f
mov eax, ecx
mov dword [ebx], eax
push eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
jmp 0x3b098
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0003b0be
push 0x73525349
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x1c]
call fcn.00012505
ret 0x14

Function at 0x3b200
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x3b265
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x3b270
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x3b2cb
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 8
Function at 0x3b9d4
Capabilities:
Map section object

Disassembly:
push 0x48
push 0x1ae70
call fcn.000124c0
mov dword [ebp - 0x1c], 0xc0000034
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x3bb14
mov dword [ebp - 0x58], 0x18
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], 0x40
lea eax, [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
push 0x20
push 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x100020
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x3ba68
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x3bb14
mov dword [ebp - 0x50], esi
push dword [ebp + 8]
push 0x1000000
push 0x10
push esi
lea eax, [ebp - 0x58]
push eax
push 0xf001f
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x3baa5
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x3bb14
mov dword [ebp - 0x28], esi
push 4
push 0x100000
push 1
lea eax, [ebp - 0x28]
push eax
push esi
push 0x400
push esi
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x3baee
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp + 8]
call esi
jmp 0x3bb14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0003bb2b
mov eax, dword [ebp - 0x1c]
call fcn.00012505
ret 0xc
Function at 0x3e812
Capabilities:
Register minifilter driver

Disassembly:
push 0x14
push 0x1a6b8
call fcn.000124c0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [0x2b264]
mov eax, dword [eax + 0x28]
lea esi, [eax + 0x80]
mov dword [ebp - 0x24], esi
cmp byte [esi + 0x48], bl
je 0x3e843
xor eax, eax
jmp 0x3e922
mov dword [ebp - 4], ebx
push esi
push 0x169d4
push dword [ebp + 8]
call sub.FLTMGR.SYS_FltRegisterFilter
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0x3e86a
push eax
push 0x54
push 0x3ee52
push 0x3ee16
jmp 0x3e8c2
push 0x1f0001
lea eax, [ebp - 0x20]
push eax
call sub.FLTMGR.SYS_FltBuildDefaultSecurityDescriptor
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0x3e88e
push eax
push 0x5c
push 0x3ee52
push 0x3edca
jmp 0x3e8c2
push 1
push dword [ebp - 0x20]
call fcn.0003e786
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0x3e8a4
push eax
push 0x64
jmp 0x3e8b8
push 2
push dword [ebp - 0x20]
call fcn.0003e786
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0x3e8ce
push eax
push 0x6c
push 0x3ee52
push 0x3ed86
push ebx
push 0x65
call dword [sym.imp.ntoskrnl.exe_DbgPrintEx]
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
call fcn.0003e92f
cmp dword [ebp - 0x1c], ebx
jl 0x3e91f
lea eax, [esi + 0x20]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [esi + 0x28]
push eax
call sub.FLTMGR.SYS_FltInitializePushLock
lea eax, [esi + 0x14]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [esi + 0x1c]
push eax
call sub.FLTMGR.SYS_FltInitializePushLock
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 0x1e
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x3c
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], 1
mov eax, dword [ebp - 0x1c]
call fcn.00012505
ret 4

Function at 0x3ed1e
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0003ece5
pop ebp
jmp fcn.0003ea9a
Function at 0x100028ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x100028c9
pop dword [ebp - 0x44]
mov eax, 0x100028c9
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x42ac6c2
add dword [ebp - 0x54], 0x4a277e89
mov dword [ebp - 0x50], 0x2dfff1b6
sub dword [ebp - 0x50], 0xfbcca571
mov dword [ebp - 0x4c], 0xfcc06f0
sub dword [ebp - 0x4c], 0xc37fc2c2
mov dword [ebp - 0x48], 0x69fc57f5
add dword [ebp - 0x48], 0x9603a80b
lea eax, [ebp - 0x54]
push eax
mov eax, 0x45d7c85e
sub eax, 0x35d5d7ba
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x7951074d
sub dword [ebp - 0x54], 0x4de9df7
mov dword [ebp - 0x50], 0x59bea9e7
sub dword [ebp - 0x50], 0x18524872
mov dword [ebp - 0x4c], 0x43d620d3
sub dword [ebp - 0x4c], 0xe066b467
mov dword [ebp - 0x48], 0x5fd97b46
add dword [ebp - 0x48], 0xa02684ba
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x54f86186
add eax, 0xbb098f16
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x39b2c
push 0
call eax
mov ecx, 0x2ee224b3
sub ecx, 0x2ee1e31e
mov ebx, eax
mov edi, 0x272618de
sub edi, 0x17237ede
add edi, dword [ebp - 0x44]
mov edx, 0x11c27452
xor dword [ebp - 0x18], ecx
mov esi, dword [edi]
xor dword [ebp - 0x38], ecx
xor esi, edx
xor dword [ebp - 0x24], edi
mov dword [ebx], esi
xor dword [ebp - 0x38], ebx
add ebx, 0xbd7b7e8
sub ebx, 0xbd7b7e4
add edi, 0x5e81f702
sub edi, 0x5e81f6fe
loop 0x100029e0
add eax, 0x4881e183
add eax, 0xb77f17a4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x47a3f89b
add ecx, 0xc85c0765
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x1001cc37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001ccba
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1001cc84
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001cc84
cmp edi, ebx
jge 0x1001cc84
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ccb4
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ccb4
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x1001cccc
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x403a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x403b63
mov dword [ebp + 0x28], edi
test eax, eax
je 0x403b30
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403b1a
mov edi, eax
add ecx, 0x10
dec edx
jne 0x403b12
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x403b33
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404230
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x403b59
push eax
call fcn.004042c6
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.004042c6
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404230
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x403baf
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.0040438d
jmp 0x403bb1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x403be0
test eax, eax
je 0x403bdd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.0040432a
push ebx
call fcn.004042c6
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004036d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x409764
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
jmp 0x40980d
cmp dword [esi + 0x10], 0x1000
jne 0x4097f9
test byte [esi + 0x15], 1
jne 0x4097f9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4097b8
cmp eax, 2
je 0x4097b8
cmp eax, 0x10
je 0x4097b8
cmp eax, 0x20
jne 0x4097cd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4097cd
mov bl, 1
xor ebp, ebp
jmp 0x4097de
mov eax, dword [esi]
add eax, ebp
call fcn.0040975c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4097d1
test bl, bl
je 0x4097f9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409790
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x191a5063
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3f2a4efe
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x1588058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015881a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x158807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x158806a
add dl, dl
jne 0x1588089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15880dc
xor eax, eax
add dl, dl
jne 0x1588096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x158817d
add dl, dl
jne 0x15880a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15880b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15880bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15880c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15880d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1588075
mov eax, 1
add dl, dl
jne 0x15880ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15880f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15880e1
sub eax, ebx
mov ebx, 1
jne 0x1588128
mov ecx, 1
add dl, dl
jne 0x158810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1588119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1588105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1588075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x158813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x158814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1588136
cmp eax, 0x7d00
jae 0x158816d
cmp eax, 0x500
jb 0x1588168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1588075
cmp eax, 0x7f
ja 0x1588170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1588075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x158819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1588075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4058e4
pop dword [ebp - 0x4c]
mov eax, 0x35b0ae3d
add eax, 0xca8faaa7
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x2d1cedfa
sub dword [ebp - 0x5c], 0xdecaa8af
mov dword [ebp - 0x58], 0xd396eae3
sub dword [ebp - 0x58], 0xa1639e9e
mov dword [ebp - 0x54], 0x52a9ed5
add dword [ebp - 0x54], 0x4721a559
mov dword [ebp - 0x50], 0x524694a1
sub dword [ebp - 0x50], 0x524694a1
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xd43224a4
add dword [ebp - 0x5c], 0xa04044b2
mov dword [ebp - 0x58], 0x26766c55
add dword [ebp - 0x58], 0x1af5f520
mov dword [ebp - 0x54], 0xe59ec2ad
sub dword [ebp - 0x54], 0x822f5641
mov dword [ebp - 0x50], 0xbec09000
add dword [ebp - 0x50], 0x413f7000
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x5988882d
sub eax, 0x5948072d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x39158
push 0
call eax
mov ecx, 0x5079
mov edx, eax
mov ebx, 0x450400
add ebx, dword [ebp - 0x4c]
mov edi, 0x6fd618c1
add dword [ebp - 0x20], 0x3a098383
mov esi, dword [ebx]
sub dword [ebp - 0x3c], 0xa16439ee
sub esi, edi
mov dword [ebp - 0xc], 0x41eea9e
mov dword [edx], esi
xor dword [ebp - 0x24], 0x939f5480
add edx, 4
add ebx, 4
loop 0x4059ef
add eax, 0xb19d6aa8
add eax, 0x4e63ca0f
mov ebx, eax
add eax, 5
mov ecx, 0x367a90da
add ecx, 0xc9c56f26
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, reloc.kernel32.dll_GetVersionExW
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219