joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e73
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax], 0x20000000
mov dword [ebp - 4], edi
jne 0x406fba
push ebx
push esi
push 4
pop esi
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x40020000
jne 0x406f19
add eax, esi
mov ecx, dword [eax]
xor edx, edx
cmp ecx, 0x40000001
je 0x406ec3
cmp ecx, 0x40010001
je 0x406ec3
cmp ecx, 0x40020001
je 0x406ec3
cmp ecx, 0x40030001
jne 0x406ece
shr ecx, 0x10
and ecx, 0xf
inc ecx
mov edx, ecx
add eax, esi
cmp dword [eax], 0x40050002
jne 0x406ee0
inc edx
mov dword [ebp - 4], 0x1000
add eax, esi
mov ecx, edx
sub ecx, edi
je 0x406f13
dec ecx
je 0x406f0d
dec ecx
je 0x406f07
dec ecx
je 0x406f01
dec ecx
je 0x406efb
dec ecx
jne 0x406f26
or dword [ebp - 4], 0xe
jmp 0x406f26
or dword [ebp - 4], 0xc
jmp 0x406f26
or dword [ebp - 4], 0xa
jmp 0x406f26
or dword [ebp - 4], 8
jmp 0x406f26
or dword [ebp - 4], 6
jmp 0x406f26
or dword [ebp - 4], 2
jmp 0x406f26
cmp ecx, 0x40030000
jne 0x406f26
mov dword [ebp - 4], esi
add eax, esi
cmp dword [eax], 0x40020003
push 0x10
pop ecx
jne 0x406f36
or dword [ebp - 4], ecx
add eax, esi
cmp dword [eax], 0x40000004
jne 0x406f44
or dword [ebp - 4], 0x20
add eax, esi
cmp dword [eax], 0x40040005
jne 0x406f52
or dword [ebp - 4], 0x40
add eax, esi
cmp dword [eax], 0x40040006
jne 0x406f60
or byte [ebp - 4], 0x80
add eax, esi
push 7
pop esi
mov edx, dword [eax]
mov ebx, esi
or ebx, 0x40000000
cmp ebx, edx
jne 0x406f75
push 3
jmp 0x406fa0
mov ebx, esi
or ebx, 0x40010000
cmp ebx, edx
je 0x406fa6
mov ebx, esi
or ebx, 0x40020000
cmp ebx, edx
jne 0x406f92
xor edx, edx
inc edx
jmp 0x406fa1
mov ebx, esi
or ebx, 0x40030000
cmp ebx, edx
jne 0x406fb2
push 2
pop edx
shl edx, cl
or dword [ebp - 4], edx
add eax, 4
inc edi
inc ecx
inc ecx
inc esi
cmp ecx, 0x20
jb 0x406f63
shl edi, 8
or dword [ebp - 4], edi
pop esi
pop ebx
cmp dword [eax], 0xffffffff
pop edi
je 0x406fc7
mov eax, 0x8876086c
jmp 0x406fd1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret 8

Function at 0x4103f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x634160
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410450
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x410450
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x410450
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x410479
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x634160
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4104e7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4104de
cmp dword [ebp - 0xc], 4
jne 0x4104de
cmp dword [ebp - 0x10], edi
je 0x4104de
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6b2394], edi
xor eax, eax
jmp 0x41050f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6b2394], edi
jge 0x41050a
mov dword [0x6b2394], edi
call fcn.00410454
test eax, eax
je 0x41050a
emms
mov dword [0x6b2394], 1
mov eax, dword [0x6b2394]
pop edi
leave
ret

Function at 0x4105ef
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x410626
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x410648
cmp dword [ebp - 0x20], 4
ja 0x410652
jne 0x410642
cmp dword [ebp - 0x1c], 0xa
jb 0x410642
cmp word [ebp - 0x18], 0x55d
jae 0x410652
mov byte [ebp + 0x73], 1
jmp 0x410652
cmp dword [ebp - 0x14], 2
jne 0x410668
test bl, bl
je 0x410683
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x410673
dec eax
je 0x41066c
sub eax, 3
jne 0x410668
cmp byte [ebp + 0x73], 0
je 0x410694
xor eax, eax
jmp 0x41069c
call fcn.00410512
jmp 0x41069c
cmp byte [ebp + 0x73], 0
jne 0x410668
call fcn.0041054a
and eax, 4
jmp 0x41069c
cmp dword [ebp + 0x7c], 0xa
je 0x410694
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x41069c
call fcn.0041054a
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x42db73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42db81
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x42dc55
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x636778]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x636778]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x636778]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x636778]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x636778]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x636778]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x636778]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x636778]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x42db9e
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x42dc75
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x636778]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x42dc5b
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x43ca50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
push 0x1000
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call fcn.005d72c2
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
ja 0x43cae5
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x24]
test ecx, ecx
je 0x43caac
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 0x2a
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax]
call ecx
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 0x78
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
call ecx
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
mov byte [eax], 0xff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov byte [edx + 1], 0xd9
mov dword [ebp - 4], 2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 8]
mov byte [edx + 0x24], 0
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x43dfd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x43e008
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x180]
mov ecx, dword [eax]
call ecx
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
movzx eax, byte [edx + 8]
test eax, eax
je 0x43e0d5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x78]
cmp eax, dword [edx + 0x60]
jae 0x43e09d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x43e063
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
call ecx
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x78
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x184]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x43e09b
xor al, al
jmp 0x43e0ef
jmp 0x43e01d
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
mov eax, dword [edx]
call eax
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], 0
jmp 0x43e008
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x41]
neg eax
sbb eax, eax
neg eax
add eax, 0xcd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x45cb60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6b64f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov edi, ecx
push eax
push 3
call fcn.005407c0
test al, al
jne 0x45cb97
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00540710
movzx ecx, word [ebp - 0x1f]
cmp ecx, eax
jg 0x45cb84
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push 7
call fcn.005409a0
test al, al
je 0x45cbe7
mov eax, dword [ebp - 0x2b]
mov ecx, dword [ebp - 0x29]
add eax, 0xfffffff9
movzx ebx, ax
push ebx
mov dword [ebp - 0x24], ecx
call fcn.005d2645
add esp, 4
mov esi, eax
mov ecx, edi
push esi
push ebx
call fcn.005409a0
test al, al
jne 0x45cbfa
push esi
call fcn.0045d6e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret
cmp dword [0x6bbd20], 0x10
mov eax, 0x6bbd0c
cmovae eax, dword [0x6bbd0c]
push eax
call fcn.00533110
mov ecx, dword [ebp - 0x24]
add esp, 4
call fcn.0045bb70
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045bdb0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0x65f57c
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.005d70e8
mov edi, eax
add esp, 8
test edi, edi
jne 0x45cc53
push esi
call fcn.0045d6e0
add esp, 4
xor bl, bl
jmp 0x45cc6e
push edi
push 1
push ebx
push esi
call fcn.005d7824
push edi
call fcn.005d73da
push esi
call fcn.0045d6e0
add esp, 0x18
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.0045add0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d67d1
mov esp, ebp
pop ebp
ret
Function at 0x45d8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
push 1
call dword [sym.imp.DevIL.dll_ilGenImages]
push dword [ebp - 4]
call dword [sym.imp.DevIL.dll_ilBindImage]
push 0x600
call dword [sym.imp.DevIL.dll_ilEnable]
push 0x602
call dword [sym.imp.DevIL.dll_ilOriginFunc]
mov edi, dword [ebp + 8]
push edi
push 0
call dword [sym.imp.DevIL.dll_ilLoad]
test al, al
jne 0x45d926
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [eax], 2
xor al, al
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [sym.imp.DevIL.dll_ilGetInteger]
push 0xde4
call esi
cmp eax, 0x40
je 0x45d94d
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov dword [eax], 3
xor al, al
mov esp, ebp
pop ebp
ret 8
push 0xde5
call esi
cmp eax, 0x80
je 0x45d96f
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov dword [eax], 4
xor al, al
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.DevIL.dll_ilDeleteImages]
call dword [sym.imp.DevIL.dll_ilShutDown]
push 0x65f4e4
push edi
call fcn.005d70e8
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d99e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 2
push 2
push 0
push esi
call fcn.005d7935
push esi
call fcn.005d7d48
push 0
push 0
push esi
mov dword [ebx + 0x394], eax
call fcn.005d7935
push dword [ebx + 0x394]
call fcn.005d2645
push esi
push 1
push dword [ebx + 0x394]
mov dword [ebx + 0x39c], eax
push eax
call fcn.005d72c2
push esi
call fcn.005d73da
push edi
call fcn.005339f0
add esp, 0x38
mov dword [ebx + 0x398], eax
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x463b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x612068
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6b64f0]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x6b64f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.004615c0
test eax, eax
je 0x463bda
add eax, 0x2b4
jmp 0x463bdc
xor eax, eax
push eax
lea ecx, [esp + 0xc]
call fcn.0058fbc0
lea eax, [esp + 8]
mov dword [esp + 0x30], 0
push eax
lea ecx, [esi + 0x1e4]
call fcn.0058f850
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.0058fc30
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret 4

Function at 0x466610
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp ecx, edx
jbe 0x466620
mov eax, ecx
mov ecx, edx
mov edx, eax
xor eax, eax
mov dword [ebp - 4], edx
push esi
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
lea esi, [eax + 8]
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul eax, eax, 0x1000193
xor eax, ecx
dec esi
jne 0x466630
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46a170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x46a178
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46a187
xor al, al
ret
shr al, 4
and al, 1
ret

Function at 0x46a300
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61239b
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x6b64f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x44], esi
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x10]
test al, 1
je 0x46a3a8
push 0x65fa28
push str.HackShield.Config.Error.txt
call fcn.005d70e8
mov edi, eax
push edi
push str._HackShield__Error_while_decrypting_this_text:
call fcn.005d84c9
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x46a386
mov esi, dword [esi]
push edi
push esi
call fcn.005d84c9
push edi
push 0x65f9f8
call fcn.005d84c9
push edi
call fcn.005d73da
add esp, 0x14
push 0xffffffffffffffff
call fcn.005d8972
shr eax, 1
mov edi, 0
mov dword [ebp - 0x4c], eax
je 0x46a4a4
mov ebx, dword [ebp - 0x44]
jmp 0x46a3c0
sub esp, 8
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x100]
call fcn.0046c890
push 2
lea eax, [edi + edi]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0046c6e0
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0xf0]
call fcn.0046fd60
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0x10
jb 0x46a431
push dword [ebp - 0x40]
call fcn.004e41e0
add esp, 4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x100]
call fcn.0046c720
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
test eax, eax
je 0x46a461
sub eax, ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push 1
push eax
call fcn.004720e0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.0046c940
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], vtable.std::ios_base.0
push eax
call fcn.005d26c4
inc edi
add esp, 4
cmp edi, dword [ebp - 0x4c]
jb 0x46a3c0
mov ebx, dword [ebp - 0x48]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jae 0x46a4d6
mov eax, dword [ebp - 0x18]
inc eax
je 0x46a4db
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.005d6840
mov edx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x46a4db
mov ecx, dword [ebp - 0x28]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x18]
mov eax, ebx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret
Function at 0x46a690
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x70b3e4]
lea eax, [ebp - 4]
push esi
mov esi, dword [0x70b3e0]
push eax
push 0x40
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push ebx
push esi
call fcn.005d6840
lea ecx, [esi + 5]
mov eax, ebx
sub eax, ecx
mov byte [ecx], 0xe9
mov dword [ecx + 1], eax
add esp, 0xc
mov eax, 0x46a680
mov byte [ebx], 0xe9
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46a700
Capabilities:
Terminate process

Disassembly:
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.005d8972
int3

Function at 0x46a720
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
push 0
push 0
push 0
push fcn.0046a700
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push str.TemericaDefender___Wykryto_plik_DLL
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.005d8972
int3

Function at 0x46a8b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6b64f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x46a95e
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ebx, [ebx]
mov eax, str.cmd.exe
lea ecx, [ebp - 0x10c]
jmp 0x46a910
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x46a930
test dl, dl
je 0x46a92c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x46a930
add ecx, 2
add eax, 2
test dl, dl
jne 0x46a910
xor eax, eax
jmp 0x46a935
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46a950
push dword [ebp - 0x128]
push eax
push 0x1fffff
call ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x46a900
cmp esi, 0xffffffff
je 0x46a96a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d67d1
mov esp, ebp
pop ebp
ret

Function at 0x46a9b0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x46a990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x46bc10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 8
push 0
call edi
push 0
mov esi, eax
call edi
mov edx, esi
mov ecx, eax
call fcn.0046a840
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push edi
call esi
movdqu xmm0, xmmword [0x65fa94]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
movdqu xmmword [edi], xmm0
push 0x10
push edi
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46c0e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6b64f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0x18
mov ecx, esp
push 0x12
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.2f36272d2e6d252e2f
mov byte [ecx], 0
call fcn.0045aca0
lea ecx, [ebp - 0x1c]
call fcn.0046a610
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x46c126
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
cmp dword [ebp - 8], 0x10
mov dword [0x70b3d8], eax
jb 0x46c14a
push dword [ebp - 0x1c]
call fcn.004e41e0
mov eax, dword [0x70b3d8]
add esp, 4
test eax, eax
je 0x46c2bd
sub esp, 0x18
mov ecx, esp
push 0x18
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.2a27312f272f72706d252e2f
mov byte [ecx], 0
call fcn.0045aca0
lea ecx, [ebp - 0x1c]
call fcn.0046a610
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x46c187
mov eax, dword [eax]
push eax
call esi
cmp dword [ebp - 8], 0x10
mov dword [0x70b3dc], eax
jb 0x46c1a5
push dword [ebp - 0x1c]
call fcn.004e41e0
mov eax, dword [0x70b3dc]
add esp, 4
test eax, eax
je 0x46c2c4
sub esp, 0x18
mov ecx, esp
push str.0d2d22250e2a233022333b02
call fcn.0045bdb0
lea ecx, [ebp - 0x1c]
call fcn.0046a610
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x46c1cf
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push dword [0x70b3dc]
call esi
cmp dword [ebp - 8], 0x10
mov dword [0x70b3ec], eax
jb 0x46c1f9
push dword [ebp - 0x1c]
call fcn.004e41e0
mov eax, dword [0x70b3ec]
add esp, 4
test eax, eax
je 0x46c2cb
sub esp, 0x18
mov ecx, esp
push str.0d2d22250e2a233022333b14
call fcn.0045bdb0
lea ecx, [ebp - 0x1c]
call fcn.0046a610
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x46c223
mov eax, dword [eax]
push eax
push dword [0x70b3dc]
call esi
cmp dword [ebp - 8], 0x10
mov dword [0x70b3e8], eax
jb 0x46c247
push dword [ebp - 0x1c]
call fcn.004e41e0
mov eax, dword [0x70b3e8]
add esp, 4
test eax, eax
je 0x46c2d2
sub esp, 0x18
mov ecx, esp
push str.0d26310d2d2225062f2d
call fcn.0045bdb0
lea ecx, [ebp - 0x1c]
call fcn.0046a610
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x46c271
mov eax, dword [eax]
push eax
push dword [0x70b3d8]
call esi
lea ecx, [ebp - 0x1c]
mov dword [0x70b3e4], eax
call fcn.0045add0
cmp dword [0x70b3e4], 0
je 0x46c2d9
push 0x40
push 0x1000
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 8
mov dword [0x70b3e0], eax
call fcn.0046a690
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005d67d1
mov esp, ebp
pop ebp
ret
push 0
call fcn.005d8972
push 0
call fcn.005d8972
push 0
call fcn.005d8972
push 0
call fcn.005d8972
push 0
call fcn.005d8972
int3