joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401960
Capabilities:
Attach user process memory

Disassembly:
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x401a6e
test ebx, ebx
je 0x401a6e
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp edi, eax
jne 0x4019e3
mov eax, dword ds:[esp + 0x34]
test eax, eax
je 0x401a6e
cmp esi, 0x80000000
jae 0x401a6e
push dword ds:[esp + 0x38]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_MmSecureVirtualMemory]
test eax, eax
mov dword [ebx], eax
setne al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409218
add esp, 0x20
ret 0xc
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x401a43
lea esp, [esp]
cmp esi, 0x80000000
jae 0x401a43
push dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_MmSecureVirtualMemory]
mov ebp, eax
lea eax, [esp + 0x14]
test ebp, ebp
push eax
setne byte [esp + 0x17]
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, byte [esp + 0x13]
mov dword [ebx], ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409218
add esp, 0x20
ret 0xc
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, byte [esp + 0x13]
mov dword [ebx], ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409218
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409218
add esp, 0x20
ret 0xc

Function at 0x401aa0
Capabilities:
Attach user process memory

Disassembly:
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x401aff
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov edi, edi
test esi, esi
je 0x401aff
cmp edi, eax
jne 0x401ae1
push esi
call dword [sym.imp.ntoskrnl.exe_MmUnsecureVirtualMemory]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409218
add esp, 0x24
ret
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push esi
call dword [sym.imp.ntoskrnl.exe_MmUnsecureVirtualMemory]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00409218
add esp, 0x24
ret
Function at 0x401ba0
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x401c33
mov edi, edi
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp edi, eax
je 0x401c33
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
lea ecx, [ecx]
test al, al
je 0x401c0f
push esi
call dword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov esi, eax
mov edi, edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409218
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
xor esi, esi
push eax
xor edi, edi
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409218
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x401c57
push esi
call dword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00409218
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
xor edx, edx
call fcn.00409218
mov esp, ebp
pop ebp
ret

Function at 0x402510
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push edx
push ecx
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x18
push eax
push 0x10000000
push dword [esp + 0x34]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x200
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
add esp, 0x18
ret 4
Function at 0x40e3ec
Capabilities:
Check os version
Create device object
Register minifilter driver
Start minifilter driver

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0040e3fc
pop ebp
jmp fcn.0040e000

Function at 0x40b320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b338
mov eax, 1
add ebx, ebx
jne 0x40b35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b350
jne 0x40b36c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b350
xor ecx, ecx
sub eax, 3
jb 0x40b380
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b3f2
mov ebp, eax
add ebx, ebx
jne 0x40b38b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b3bc
inc ecx
add ebx, ebx
jne 0x40b3a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b39d
jne 0x40b3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b39d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b3dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b3cd
jmp 0x40b33e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b3dc
add edi, ecx
jmp 0x40b33e
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b3fa
cmp byte [edi], 0
jne 0x40b3fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40b3ff
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b46e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf8ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf974]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b42c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf97c]
or eax, eax
je 0x40b468
mov dword [ebx], eax
add ebx, 4
jmp 0x40b449
call dword [esi + 0xf978]
mov ebp, dword [esi + 0xf980]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b4a2
sub esp, 0xffffff80
jmp 0x402cac
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x42e8c0
Capabilities:
Encode data using xor

Disassembly:
ficom word [ebx - 0x69]
sbb ebx, 0xffffff8a
dec ebx
lds edi, [edi - 0x24c4a8b8]
call 0x8545981f
invalid

Function at 0x48a500
Capabilities:
Encode data using xor

Disassembly:
cmc
shr byte [ecx], 0xcb
add al, 0x8b
jo 0x48a4ce
mov ah, 0x2b
and byte [ebx + 0x61], bh
or eax, 0x9da8c737
adc byte [ebp + edi*8 - 0x70862acc], dh
shr ebx, 0x9d
dec esp
cmp edi, dword [ecx]
jo 0x48a47c
dec esi
dec ebp
scasd eax, dword es:[edi]
and byte [edx + 0x23], dh
push edi
nop
iretd
xor ebp, dword [esi + ebx*8 - 0x27]
inc edi
or al, byte [ebx - 0x2c]
inc eax
pop eax
mov ah, 0x49
or dword [ecx - 0x5c], eax
mov ecx, 0x1a01c915
adc eax, 0x371a01c9
adc eax, 0x371a01c9
mov eax, 0x3aaf3d11
dec ebx
cmp byte [0xa08087c8], 0x98
out 0x8b, al
mul dword [edi - 0x1e2928e2]
inc edx
jne 0x48a4f0
imul ecx, dword [eax], 0x738c18d3
or byte [edi - 0x63ffa241], cl
loop 0x48a4bd
mov edx, 0x813dbda8
adc al, 0xc4
invalid

Function at 0x4baa54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c4498
cmp edx, dword [eax]
je 0x4baa76
add eax, 8
inc ecx
cmp eax, 0x4c4528
jl 0x4baa67
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c4498]
jne 0x4baba4
mov eax, dword [0x4c6d40]
cmp eax, 1
je 0x4bab7e
test eax, eax
jne 0x4baaa7
cmp dword [0x4c22dc], 1
je 0x4bab7e
cmp edx, 0xfc
je 0x4baba4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4baade
lea eax, [ebp - 0x1a4]
push 0x4beb40
push eax
call fcn.004bbbc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbcb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bab21
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbcb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4beb3c
push edi
call fcn.004bc670
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4beb20
push eax
call fcn.004bbbc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbbd0
lea eax, [ebp - 0xa0]
push 0x4beb1c
push eax
call fcn.004bbbd0
push dword [esi + 0x4c449c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbbd0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4beaf4
push eax
call fcn.004bc5e2
add esp, 0x2c
pop edi
jmp 0x4baba4
lea eax, [ebp + 8]
lea esi, [esi + 0x4c449c]
push 0
push eax
push dword [esi]
call fcn.004bbcb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00431219
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
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 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
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 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x1000124d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str.msimg32
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov dword [0x1000be70], eax
cmp eax, esi
jne 0x100012c4
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push 0x1000a168
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x10
push str.AheadLib
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.vSetDdrawflag
call fcn.10001188
push str.AlphaBlend
mov dword [0x1000be5c], eax
call fcn.10001188
push str.DllInitialize
mov dword [0x1000be60], eax
call fcn.10001188
push str.GradientFill
mov dword [0x1000be64], eax
call fcn.10001188
push str.TransparentBlt
mov dword [0x1000be68], eax
call fcn.10001188
cmp dword [0x1000be70], esi
mov dword [0x1000be6c], eax
jne 0x10001337
cmp dword [0x1000be60], esi
je 0x10001337
cmp dword [0x1000be5c], esi
je 0x10001337
cmp dword [0x1000be68], esi
je 0x10001337
cmp eax, esi
je 0x10001337
xor eax, eax
jmp 0x1000133a
push 1
pop eax
pop esi
leave
ret

Function at 0x100013bc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.10003340
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push 0xfff
push eax
call fcn.1000336f
and byte [ebp - 1], 0
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x100020b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008150
push 0x10003678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x1000214b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x1000214b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x1000214b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1000214b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100021d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x1000bedc]
test esi, esi
je 0x100021fa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x100021e3
pop edi
pop esi
pop ecx
ret
Function at 0x10002200
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000bee8], eax
je 0x10002216
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x1000bef8]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x1000226d
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x1000225c
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x1000225c
push eax
call fcn.100022f0
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10003210
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1000222c
mov dword [0x1000bef8], ebp
call fcn.100022c0
mov esi, dword [0x1000bef4]
cmp esi, ebp
je 0x1000229f
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.10003210
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10002288
pop edi
mov dword [0x1000bef4], ebp
mov dword [0x1000bee8], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x100025d0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1000beec]
push esi
test eax, eax
push edi
jne 0x10002646
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x10002644
push 8
call fcn.10003571
mov esi, eax
add esp, 4
test esi, esi
jne 0x10002600
mov edi, 8
jmp 0x1000261d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10002634
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10003210
add esp, 4
mov dword [0x1000beec], edi
mov eax, edi
pop edi
mov dword [0x1000bef0], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x1000bef4]
mov dword [esi], eax
mov dword [0x1000bef4], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x10002b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008160
push 0x10003678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10002c1a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x10002c13
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x10002c13
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x10002c1a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004e75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000b3c8
cmp edx, dword [eax]
je 0x10004e97
add eax, 8
inc ecx
cmp eax, 0x1000b458
jl 0x10004e88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000b3c8]
jne 0x10004fc5
mov eax, dword [0x1000bf08]
cmp eax, 1
je 0x10004f9f
test eax, eax
jne 0x10004ec8
cmp dword [0x1000bf0c], 1
je 0x10004f9f
cmp edx, 0xfc
je 0x10004fc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10004eff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100052a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100051a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10004f42
lea eax, [ebp - 0x1a4]
push eax
call fcn.100051a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100095c8
push edi
call fcn.10005060
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100052a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100052b0
lea eax, [ebp - 0xa0]
push 0x100095a8
push eax
call fcn.100052b0
push dword [esi + 0x1000b3cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.100052b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10006fa6
add esp, 0x2c
pop edi
jmp 0x10004fc5
lea eax, [ebp + 8]
lea esi, [esi + 0x1000b3cc]
push 0
push eax
push dword [esi]
call fcn.100051a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10008880
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 0xc]
push edi
call fcn.100c83f0
test eax, eax
jne 0x100089e6
cmp byte [0x101170fc], al
jne 0x100088a4
xor edi, edi
jmp 0x100088bf
push 5
call dword [0x10117140]
mov edi, eax
add esp, 4
test edi, edi
je 0x100088bf
push edi
call dword [0x10117148]
add esp, 4
mov edx, dword [ebp + 8]
test edx, edx
jle 0x100089ce
test esi, esi
je 0x100089ce
cmp dword [0x10119650], 0
jne 0x1000895a
push 0
call fcn.100c83f0
movups xmm0, xmmword [str.expand_32_byte_k]
add esp, 4
movups xmmword [0x10119650], xmm0
test eax, eax
jne 0x10008906
push 0x2c
push eax
push 0x10119660
call sub.VCRUNTIME140.dll_memset
jmp 0x10008936
cmp dword [0x1011720c], 0
je 0x10008929
push 0x2c
push 0
push 0x10119660
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1011720c]
mov dword [0x10119660], eax
jmp 0x10008936
push 0x10119660
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10119680]
add esp, 0xc
mov edx, dword [ebp + 8]
xor cl, cl
mov dword [0x1011968c], eax
mov dword [0x10119680], 0
mov byte [0x101196d0], cl
jmp 0x10008960
mov cl, byte [0x101196d0]
movzx eax, cl
cmp edx, eax
jle 0x100089ae
test cl, cl
je 0x10008989
movzx eax, cl
push eax
push 0x10119690
push esi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x101196d0]
add esp, 0xc
sub dword [ebp + 8], eax
add esi, eax
inc dword [0x10119680]
mov edx, 0x10119650
mov ecx, 0x10119690
call fcn.100c83f0
mov edx, dword [ebp + 8]
mov cl, 0x40
mov byte [0x101196d0], cl
cmp edx, 0x40
jg 0x10008967
movzx eax, cl
sub eax, edx
push edx
add eax, 0x10119690
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
sub byte [0x101196d0], al
jmp 0x100089d8
mov dword [0x10119650], 0
test edi, edi
je 0x100089e6
push edi
call dword [0x10117150]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret