joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov edx, 0x52bd6c
test eax, eax
cmovne edx, eax
cmp dword [ebp + 8], 0
je 0x43e11d
cmp dword [ebp + 0xc], 0
je 0x43e11d
cmp dword [ebp + 0x10], 0
je 0x43e11d
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x14], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43e0f0
sub ecx, dword [ebp + 0x14]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43e340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x43e3e1
cmp byte [esi + 0x3d], 0
je 0x43e3e1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x43e397
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43e3a9
sub eax, 1
je 0x43e3ad
sub eax, 2
je 0x43e3e1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43e3ca
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004d4e65
add esp, 0x10
cmp edi, eax
jne 0x43e397
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x43f070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x43f0a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43f0dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x43f0dc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x43f1c1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x43f104
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43f137
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004cd95a
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x43f1c1
cmp eax, 1
jle 0x43f194
cmp eax, 3
jne 0x43f1c1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00433be0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43f1b1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004d4e65
add esp, 0x10
cmp edi, eax
jne 0x43f1c1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x43f0c7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 4
Function at 0x43f980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x43f9a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043fa70
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x43f9c5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x43f9c7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x43fa4f
jg 0x43f9da
test esi, esi
je 0x43fa4f
test ecx, ecx
jl 0x43fa1c
jg 0x43f9e4
test eax, eax
je 0x43fa1c
cmp ebx, ecx
jg 0x43f9f6
jl 0x43f9ee
cmp esi, eax
jae 0x43f9f6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b0ce0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x43fa22
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x43fa4f
jg 0x43fa2c
test esi, esi
je 0x43fa4f
cmp dword [edi + 0x4c], 0
je 0x43fa4f
mov ecx, edi
call fcn.0043e5b0
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.004d4125
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43fb40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43fb64
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043fc20
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x43fb85
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x43fb87
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x43fc04
jg 0x43fb9a
test esi, esi
je 0x43fc04
test ecx, ecx
jl 0x43fbde
jg 0x43fba4
test eax, eax
je 0x43fbde
cmp edi, ecx
jg 0x43fbb6
jl 0x43fbae
cmp esi, eax
jae 0x43fbb6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004b0ce0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x43fbe1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x43fc04
jg 0x43fbeb
test esi, esi
je 0x43fc04
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x43fc04
push eax
push esi
push 1
push edx
call fcn.004d4e65
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4418c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51929b
mov eax, dword fs:[0]
push eax
mov eax, 0xa030
call fcn.004ac5b0
mov eax, dword [0x56f790]
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 edi, dword [ebp + 8]
mov eax, dword [0x573950]
mov esi, dword [ebp + 0xc]
and eax, edi
mov ebx, dword [ebp + 0x10]
cmp eax, edi
jne 0x441a62
push 0x5000
lea eax, [ebp - 0x5010]
push 0
push eax
call fcn.004b17e0
push 0x5028
lea eax, [ebp - 0xa038]
push 0
push eax
call fcn.004b17e0
add esp, 0x18
lea eax, [ebp - 0x5010]
push ebx
push 0
push esi
push 0x13fe
push eax
call fcn.00405630
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004cd0a1
or ebx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ebx
test eax, eax
js 0x44196e
cmp eax, 0x13fe
ja 0x44196e
jne 0x441977
xor eax, eax
mov word [ebp - 0x2814], ax
xor eax, eax
lea ecx, [ebp - 0xa038]
mov word [ebp - 0x12], ax
lea esi, [ebp - 0x5010]
mov eax, ecx
mov edx, 0x1409
sub esi, eax
lea eax, [edx + 0x7fffebf5]
test eax, eax
je 0x4419b0
movzx eax, word [esi + ecx]
test ax, ax
je 0x4419b0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x441992
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x5012], ax
mov eax, dword [0x56f3f4]
test al, 1
je 0x441a34
lea eax, [ebp - 0xa038]
push eax
lea ecx, [ebp - 0xa03c]
call fcn.004093d0
lea eax, [ebp - 0xa03c]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.00441240
add esp, 4
mov ecx, 0x573958
push eax
call fcn.00458060
mov edx, dword [ebp - 0xa03c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x441a25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x573958
call fcn.004583d0
mov eax, dword [0x56f3f4]
test al, 2
je 0x441a4a
lea eax, [ebp - 0x5010]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x56f3f4]
test al, 4
je 0x441a62
lea eax, [ebp - 0x5010]
push eax
push 0x533e24
call fcn.00441c90
add esp, 8
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.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x441cc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov byte [edi + 0x68], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 0xc]
test al, 6
jne 0x441d91
test al, 1
jne 0x441d5f
nop dword [eax + eax]
push 0
push 0x400
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
call fcn.00442c90
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 8]
jl 0x441d53
jg 0x441d44
test eax, eax
je 0x441d53
push eax
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call fcn.00443680
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 1
je 0x441d20
lea ecx, [esi + 0x10]
call fcn.0043eb60
test eax, eax
jne 0x441d91
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
jne 0x441da5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 4
test cl, 4
je 0x441db1
mov esi, str.ios_base::badbit_set
jmp 0x441dc1
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x40c]
push 1
push eax
call fcn.0043ef40
add esp, 8
lea ecx, [ebp - 0x420]
push eax
push esi
call fcn.004349d0
push 0x55b79c
lea eax, [ebp - 0x420]
push eax
call fcn.004b07eb
int3

Function at 0x441e00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x441e41
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00443680
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x441e60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00443680
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x444aa0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x660], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x65c], esi
cmp esi, 0xffffffff
je 0x444bba
lea eax, [ebp - 0x658]
mov dword [ebp - 0x658], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x444bb3
nop dword [eax]
push dword [ebp - 0x660]
lea eax, [ebp - 0x634]
push eax
call fcn.004ce4af
add esp, 8
test eax, eax
jne 0x444b9e
test edi, edi
je 0x444bcd
cmp word [edi], ax
je 0x444bcd
push dword [ebp - 0x650]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x444b94
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x444b8d
nop dword [eax]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004ce4af
add esp, 8
test eax, eax
je 0x444b87
lea eax, [ebp - 0x42c]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x444b60
jmp 0x444b8d
mov ebx, dword [ebp - 0x650]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x65c]
test ebx, ebx
jne 0x444bb3
lea eax, [ebp - 0x658]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x444b00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x650]
jmp 0x444b9a
Function at 0x446ab0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp + 0x10]
mov ebx, eax
test esi, esi
je 0x446acc
cmp dword [esi], 0
jne 0x446ae9
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x446ae9
push 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x446af0
cmp eax, 0xffffffff
jne 0x446ac3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x451eb0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x451f19
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret

Function at 0x451fb0
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x56f4c8]
test ecx, ecx
js 0x451ff8
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x56f4c8], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.004b17e0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x452069
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4520c0
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4520c0
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x4520a0
cmp ax, 6
jne 0x4520c0
mov dword [0x56f4c8], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4558e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x4559da
push esi
push eax
call fcn.00455d20
mov esi, eax
add esp, 4
test esi, esi
je 0x4559d2
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push 0x13
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x45594b
mov eax, dword [ebp - 4]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push str.SeDebugPrivilege
push 0
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x45597d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ServiceUtils::DuplicateUserToken__LookupPrivilegeValue_failed__token_x__error_d
call fcn.00441aa0
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
push 1
push 0
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4559b2
mov eax, dword [ebp - 8]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ServiceUtils::DuplicateUserToken__DuplicateTokenEx_failed__token_x__error_d
call fcn.00441aa0
add esp, 0xc
xor eax, eax
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x455b80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x238], eax
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x455c4d
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.004b17e0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x455c46
push ebx
mov ebx, dword [ebp + 0xc]
nop word [eax + eax]
push dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x455c2c
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], edi
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x455c2c
cmp dword [ebp - 0x234], ebx
je 0x455c3f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x455bf0
jmp 0x455c45
mov edi, dword [ebp - 0x228]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x455c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.004b17e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x455cdc
push eax
call fcn.00455d20
mov edi, eax
add esp, 4
test edi, edi
je 0x455cdc
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x455cf0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004093d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x457020
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ad38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x56f790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
push 0
call dword [eax + 8]
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [ebp - 0x1c], edi
xor ebx, ebx
call dword [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x457073
lea esi, [ebx + 1]
jmp 0x457097
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ac4f3
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x4570bb
xor esi, esi
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 2
call dword [edx + 8]
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 8
mov eax, dword [ebp - 0x14]
shl eax, 2
push eax
push 0
push ecx
call fcn.004b17e0
lea eax, [esi + 8]
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [ebp - 0x10], esi
cmp esi, eax
je 0x457173
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov edx, dword [eax]
test edx, edx
je 0x4570f5
mov ecx, dword [ebp - 0x18]
mov dword [ecx + ebx*4], edx
inc ebx
mov ecx, dword [eax + 0x18]
cmp ecx, 0x10
jb 0x45712c
mov eax, dword [eax + 4]
inc ecx
cmp ecx, 0x1000
jb 0x45711f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4571fd
mov eax, edx
push ecx
push eax
call fcn.004ac0a8
mov eax, dword [ebp - 0x1c]
add esp, 8
push 0x24
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xf
push eax
mov byte [eax + 4], 0
call fcn.004ac0a8
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.00456a20
mov ecx, dword [ebp - 0x14]
push esi
call fcn.004572b0
push 0x18
push eax
call fcn.004ac0a8
mov eax, dword [ebp - 0x14]
add esp, 8
mov esi, dword [ebp - 0x10]
cmp esi, dword [eax]
jne 0x4570e2
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 3
call dword [eax + 8]
push dword [ebp + 8]
mov edi, dword [ebp - 0x18]
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp + 8], eax
cmp eax, 0x102
jne 0x4571c0
cmp dword [ebp + 0xc], 0
je 0x4571c0
xor esi, esi
test ebx, ebx
jle 0x4571c0
nop word [eax + eax]
push 0
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc esi
cmp esi, ebx
jl 0x4571b0
xor esi, esi
test ebx, ebx
jle 0x4571d4
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x4571c6
push edi
call fcn.004ac60c
xor eax, eax
add esp, 4
cmp dword [ebp + 8], 0x102
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004bb9e8
int3