joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10048050
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 0x10048074
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10048140
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 0x10048095
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10048097
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x1004811f
jg 0x100480aa
test esi, esi
je 0x1004811f
test ecx, ecx
jl 0x100480ec
jg 0x100480b4
test eax, eax
je 0x100480ec
cmp ebx, ecx
jg 0x100480c6
jl 0x100480be
cmp esi, eax
jae 0x100480c6
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.100eb980
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 0x100480f2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x1004811f
jg 0x100480fc
test esi, esi
je 0x1004811f
cmp dword [edi + 0x4c], 0
je 0x1004811f
mov ecx, edi
call fcn.10046d30
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.1011e0fb
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 0x10048210
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 0x10048234
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100482f0
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 0x10048255
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10048257
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x100482d4
jg 0x1004826a
test esi, esi
je 0x100482d4
test ecx, ecx
jl 0x100482ae
jg 0x10048274
test eax, eax
je 0x100482ae
cmp edi, ecx
jg 0x10048286
jl 0x1004827e
cmp esi, eax
jae 0x10048286
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.100eb980
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 0x100482b1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x100482d4
jg 0x100482bb
test esi, esi
je 0x100482d4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100482d4
push eax
push esi
push 1
push edx
call fcn.1011ee3b
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 0x10049f90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157c3b
mov eax, dword fs:[0]
push eax
mov eax, 0xa030
call fcn.100b4660
mov eax, dword [0x101c0618]
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 [0x101c659c]
mov esi, dword [ebp + 0xc]
and eax, edi
mov ebx, dword [ebp + 0x10]
cmp eax, edi
jne 0x1004a132
push 0x5000
lea eax, [ebp - 0x5010]
push 0
push eax
call fcn.100ec480
push 0x5028
lea eax, [ebp - 0xa038]
push 0
push eax
call fcn.100ec480
add esp, 0x18
lea eax, [ebp - 0x5010]
push ebx
push 0
push esi
push 0x13fe
push eax
call fcn.100084a0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.10107e71
or ebx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ebx
test eax, eax
js 0x1004a03e
cmp eax, 0x13fe
ja 0x1004a03e
jne 0x1004a047
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 0x1004a080
movzx eax, word [esi + ecx]
test ax, ax
je 0x1004a080
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1004a062
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 [0x101c0224]
test al, 1
je 0x1004a104
lea eax, [ebp - 0xa038]
push eax
lea ecx, [ebp - 0xa03c]
call fcn.1000b130
lea eax, [ebp - 0xa03c]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.10049910
add esp, 4
mov ecx, 0x101c65a4
push eax
call fcn.1005bca0
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 0x1004a0f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x101c65a4
call fcn.1005c010
mov eax, dword [0x101c0224]
test al, 2
je 0x1004a11a
lea eax, [ebp - 0x5010]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x101c0224]
test al, 4
je 0x1004a132
lea eax, [ebp - 0x5010]
push eax
push 0x1017a2d4
call fcn.1004a360
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.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x1004cec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x650069
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x101c65f0
mov dword [ebp - 0x1c], 0x700078
mov dword [ebp - 0x18], 0x6f006c
mov edx, 0xe
mov dword [ebp - 0x14], 0x650072
sub esi, eax
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x1004cf2e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1004cf2e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1004cf10
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c65f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x1004d340
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x101c0618]
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 0x1004d45a
lea eax, [ebp - 0x658]
mov dword [ebp - 0x658], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1004d453
nop dword [eax]
push dword [ebp - 0x660]
lea eax, [ebp - 0x634]
push eax
call fcn.1010927f
add esp, 8
test eax, eax
jne 0x1004d43e
test edi, edi
je 0x1004d46d
cmp word [edi], ax
je 0x1004d46d
push dword [ebp - 0x650]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1004d434
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1004d42d
nop dword [eax]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1010927f
add esp, 8
test eax, eax
je 0x1004d427
lea eax, [ebp - 0x42c]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1004d400
jmp 0x1004d42d
mov ebx, dword [ebp - 0x650]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x65c]
test ebx, ebx
jne 0x1004d453
lea eax, [ebp - 0x658]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1004d3a0
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.100b4568
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x650]
jmp 0x1004d43a
Function at 0x1004f460
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 0x1004f47c
cmp dword [esi], 0
jne 0x1004f499
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x1004f499
push 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1004f4a0
cmp eax, 0xffffffff
jne 0x1004f473
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 0x100559e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x101c6698
mov dword [ebp - 0x2c], 0x690057
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x64006e
mov dword [ebp - 0x24], 0x77006f
mov edx, 0x15
mov dword [ebp - 0x20], 0x200073
sub esi, eax
mov dword [ebp - 0x1c], 0x650053
mov dword [ebp - 0x18], 0x760072
mov dword [ebp - 0x14], 0x720065
mov dword [ebp - 0x10], 0x320020
mov dword [ebp - 0xc], 0x310030
mov dword [ebp - 8], 0x32
lea ecx, [edx + 0x7fffffe9]
test ecx, ecx
je 0x10055a64
movzx ecx, word [esi + eax]
test cx, cx
je 0x10055a64
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10055a46
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c6698
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x10055a90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], 0x690057
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x1c]
mov eax, 0x101c6614
mov dword [ebp - 0x18], 0x64006e
mov dword [ebp - 0x14], 0x77006f
mov edx, 0xc
mov dword [ebp - 0x10], 0x200073
sub esi, eax
mov dword [ebp - 0xc], 0x300031
nop dword [eax]
lea ecx, [edx + 0x7ffffff2]
test ecx, ecx
je 0x10055afe
movzx ecx, word [esi + eax]
test cx, cx
je 0x10055afe
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10055ae0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c6614
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x10055b20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x101c6654
mov dword [ebp - 0x2c], 0x690057
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x64006e
mov dword [ebp - 0x24], 0x77006f
mov edx, 0x15
mov dword [ebp - 0x20], 0x200073
sub esi, eax
mov dword [ebp - 0x1c], 0x650053
mov dword [ebp - 0x18], 0x760072
mov dword [ebp - 0x14], 0x720065
mov dword [ebp - 0x10], 0x320020
mov dword [ebp - 0xc], 0x300030
mov dword [ebp - 8], 0x38
lea ecx, [edx + 0x7fffffe9]
test ecx, ecx
je 0x10055ba4
movzx ecx, word [esi + eax]
test cx, cx
je 0x10055ba4
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10055b86
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c6654
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x10055bd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x690057
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x101c66c4
mov dword [ebp - 0x1c], 0x64006e
mov dword [ebp - 0x18], 0x77006f
mov edx, 0xe
mov dword [ebp - 0x14], 0x200073
sub esi, eax
mov dword [ebp - 0x10], 0x300032
mov dword [ebp - 0xc], 0x300030
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x10055c3e
movzx ecx, word [esi + eax]
test cx, cx
je 0x10055c3e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10055c20
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c66c4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x10055c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x690057
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x101c66f8
mov dword [ebp - 0x1c], 0x64006e
mov dword [ebp - 0x18], 0x77006f
mov edx, 0xe
mov dword [ebp - 0x14], 0x200073
sub esi, eax
mov dword [ebp - 0x10], 0x300032
mov dword [ebp - 0xc], 0x330030
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x10055cce
movzx ecx, word [esi + eax]
test cx, cx
je 0x10055cce
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10055cb0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c66f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x10055d80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], 0x690057
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x1c]
mov eax, 0x101c66e0
mov dword [ebp - 0x18], 0x64006e
mov dword [ebp - 0x14], 0x77006f
mov edx, 0xc
mov dword [ebp - 0x10], 0x200073
sub esi, eax
mov dword [ebp - 0xc], 0x500058
nop dword [eax]
lea ecx, [edx + 0x7ffffff2]
test ecx, ecx
je 0x10055dee
movzx ecx, word [esi + eax]
test cx, cx
je 0x10055dee
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10055dd0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c66e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x10057cc0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101c0618]
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 0x10057d29
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.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x10057dc0
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 [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x101c02f0]
test ecx, ecx
js 0x10057e08
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x101c02f0], 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.100ec480
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 0x10057e79
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10057ed0
push str.GetNativeSystemInfo
push 0x10175b84
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10057ed0
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x10057eb0
cmp ax, 6
jne 0x10057ed0
mov dword [0x101c02f0], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10059430
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 0x1005952a
push esi
push eax
call fcn.10059990
mov esi, eax
add esp, 4
test esi, esi
je 0x10059522
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 0x1005949b
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 0x100594cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ServiceUtils::DuplicateUserToken__LookupPrivilegeValue_failed__token_x__error_d
call fcn.1004a170
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 0x10059502
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.1004a170
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 0x10059620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x780065
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x101c6720
mov dword [ebp - 0x1c], 0x6c0070
mov dword [ebp - 0x18], 0x72006f
mov edx, 0xe
mov dword [ebp - 0x14], 0x720065
sub esi, eax
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x1005968e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1005968e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10059670
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c6720
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x100596b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x690077
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x101c673c
mov dword [ebp - 0x1c], 0x6c006e
mov dword [ebp - 0x18], 0x67006f
mov edx, 0xe
mov dword [ebp - 0x14], 0x6e006f
sub esi, eax
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x1005971e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1005971e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10059700
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x101c673c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x100597f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x101c0618]
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 0x100598bd
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.100ec480
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 0x100598b6
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 0x1005989c
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 0x1005989c
cmp dword [ebp - 0x234], ebx
je 0x100598af
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10059860
jmp 0x100598b5
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.100b4568
mov esp, ebp
pop ebp
ret

Function at 0x100598e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101c0618]
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.100ec480
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1005994c
push eax
call fcn.10059990
mov edi, eax
add esp, 4
test edi, edi
je 0x1005994c
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 0x10059960
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.1000b130
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100b4568
mov esp, ebp
pop ebp
ret