joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425680
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00424d7c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
jne 0x425726
call fcn.00424d31
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00424d7c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00424d31
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00424d6c
mov ch, 0x47
lodsb al, byte [esi]
ret
Function at 0x10001170
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 0xc], eax
jle 0x10001277
mov edi, dword [ebp + 8]
nop dword [eax + eax]
mov cl, byte [esi + edi]
movzx ebx, cl
cmp cl, 0x3d
jne 0x100011b0
inc eax
cmp eax, 2
jle 0x100011b5
mov eax, 0xffffffee
pop edi
test eax, eax
pop esi
sete al
pop ebx
pop ebp
ret
cmp cl, 0x7f
ja 0x100011a1
mov cl, byte [ebx + 0x1002b300]
cmp cl, 0x7f
je 0x100011a1
cmp cl, 0x40
jae 0x100011c9
test eax, eax
jne 0x100011a1
inc esi
inc edx
cmp esi, dword [ebp + 0xc]
jl 0x10001190
test edx, edx
je 0x10001277
mov ecx, dword [ebp + 0x14]
lea eax, [edx + edx*2]
lea eax, [eax*2 + 7]
sar eax, 3
cmp dword [ecx], eax
jge 0x100011fd
mov dword [ecx], eax
mov eax, 0xfffffff0
pop edi
test eax, eax
pop esi
sete al
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0xc], ecx
mov edi, 3
test esi, esi
jle 0x1000126f
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx]
mov dl, byte [ecx + 0x1002b300]
xor ecx, ecx
cmp dl, 0x40
sete cl
shl ebx, 6
sub edi, ecx
movzx ecx, dl
mov edx, dword [ebp + 0xc]
and ecx, 0x3f
inc edx
or ebx, ecx
mov dword [ebp + 0xc], edx
cmp edx, 4
jne 0x10001263
xor ecx, ecx
mov dword [ebp + 0xc], ecx
test edi, edi
jle 0x1000124e
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
inc eax
cmp edi, 1
jle 0x1000125b
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
inc eax
cmp edi, 2
jle 0x10001263
mov byte [eax], bl
inc eax
mov ecx, dword [ebp + 8]
dec esi
inc ecx
mov dword [ebp + 8], ecx
test esi, esi
jg 0x10001213
mov ecx, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
test eax, eax
pop esi
sete al
pop ebx
pop ebp
ret

Function at 0x100013a0
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 0x100013e1
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.100023c0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10003130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002926b
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x9c], 8
lea eax, [edi + 0x88]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x848], ecx
mov dword [ebp - 0x844], edx
jb 0x10003182
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, esi
jne 0x100032e9
xor eax, eax
mov dword [ebp - 0x818], 0
push eax
push 0x1002b420
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.10005a50
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100141e0
push esi
lea eax, [ebp - 0x810]
push 0x1002b440
push eax
call fcn.100029a0
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 5], 0
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push dword [ebp - 0x848]
je 0x1000325e
push eax
mov ecx, edi
call fcn.10003070
mov esi, eax
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x100032b2
mov ecx, eax
call fcn.100026c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x818], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x100032b2
push str.ButterflyImage
push eax
call fcn.1000b5d0
add esp, 0x14
lea ecx, [ebp - 0x828]
call fcn.100026c0
movups xmm0, xmmword [ebp - 0x840]
xor eax, eax
mov word [ebp - 0x840], ax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [ebp - 0x830]
movq qword [ebp - 0x818], xmm0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
lea ecx, [ebp - 0x840]
call fcn.100026c0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.10017086
add esp, 4
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.100026c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.100141e0
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10004587
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x1002b51c
push eax
call fcn.100029a0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100045c1
lea eax, [ebp - 0x20c]
push eax
call fcn.10009c80
add esp, 4
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.100141e0
push str.userconfig.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call fcn.100029a0
lea ecx, [ebp - 0x61c]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004600
sub ecx, edx
lea eax, [ebp - 0x61c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x88]
call fcn.10005a50
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.100141e0
push str.Config.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str._s_s
push eax
call fcn.100029a0
lea ecx, [ebp - 0x824]
add esp, 0x1c
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004660
sub ecx, edx
lea eax, [ebp - 0x824]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xa0]
call fcn.10005a50
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.100141e0
lea eax, [ebp - 0xa44]
push str.QiXinPath
push eax
call fcn.10009f00
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x100046b1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x1002b574
push eax
call fcn.100029a0
mov edx, dword [ebp - 0xa30]
add esp, 0xc
cmp edx, 8
jb 0x10004706
mov ecx, dword [ebp - 0xa44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100046fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004793
push edx
push ecx
call fcn.10011b41
add esp, 8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004726
lea eax, [ebp - 0x414]
push eax
call fcn.10009c80
add esp, 4
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.100141e0
push str.Config.ini
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push str._s_s
push eax
call fcn.100029a0
lea ecx, [ebp - 0xa2c]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004762
sub ecx, edx
lea eax, [ebp - 0xa2c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xb8]
call fcn.10005a50
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10011b54
mov esp, ebp
pop ebp
ret
call fcn.10016079
int3
Function at 0x100049d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100293a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov edx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10004a20
sub edx, ecx
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push esi
call fcn.10005a50
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x10004a79
cmp dword [edi + 0x84], 8
lea edx, [edi + 0x70]
jb 0x10004a54
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004a60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10005a50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x10004a95
xor esi, esi
jmp 0x10004ac6
push str.ButflyImg.exe
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100029d0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call esi
neg eax
lea ecx, [ebp - 0x40]
sbb esi, esi
neg esi
call fcn.100026c0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10004afc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004af2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004b1b
push edx
push ecx
call fcn.10011b41
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret 4
call fcn.10016079
int3
Function at 0x10009920
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10011ba0
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
call fcn.10019673
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.10019f25
add esp, 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.10009800
add esp, 0x28
xor edi, edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
push 0x1002b94c
push ebx
cmovne edi, ecx
call fcn.100199ad
mov esi, eax
add esp, 8
test esi, esi
je 0x10009a50
test edi, edi
jne 0x100099e6
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.10016548
add esp, 0x10
lea eax, [ebp - 0x1004]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100099f0
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.10016548
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.10016548
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.10016548
push esi
call fcn.10016290
add esp, 0x34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011b54
mov esp, ebp
pop ebp
ret

Function at 0x10009c80
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10009c90
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10011b88
add esp, 4
mov ebx, eax
sub eax, esi
nop
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x10009cc0
xor esi, esi
mov dword [ebp + 8], 1
test edi, edi
js 0x10009d19
nop dword [eax]
cmp word [ebx + esi*2], 0x5c
jne 0x10009d0d
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10009d04
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10009d2a
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x10009ce0
mov dword [ebp + 8], 1
push ebx
call fcn.10011b4f
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
mov dword [ebp + 8], 0
call fcn.10011b4f
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10009d50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push 0
call fcn.1000a260
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009d90
sub ecx, edx
sar ecx, 1
je 0x10009e45
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10009db0
mov eax, dword [0x1002b448]
push esi
mov dword [edi], eax
mov esi, ebx
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x10009dc6
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10009de0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
pop esi
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10009e04
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x10009e33
lea eax, [ebp - 0x20c]
push eax
call fcn.10009c80
add esp, 4
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.10008990
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10011b54
mov esp, ebp
pop ebp
ret
Function at 0x1000a260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x21c], eax
cmp byte [0x1003d080], bl
jne 0x1000a311
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100141e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000a304
lea eax, [ebp - 0x20c]
push eax
call fcn.10019849
lea eax, [ebp - 0x20c]
push str.config_systemprofile
push eax
call fcn.1001448d
add esp, 0xc
test eax, eax
jne 0x1000a2fb
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.1001448d
add esp, 8
test eax, eax
je 0x1000a304
mov byte [0x1003d080], 1
jmp 0x1000a311
cmp byte [0x1003d080], 0
je 0x1000a43d
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x218], 0
call esi
push str.Wtsapi32.dll
mov dword [ebp - 0x214], eax
call esi
cmp dword [ebp - 0x214], 0
mov edi, eax
je 0x1000a3da
test edi, edi
je 0x1000a3da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQueryUserToken
push edi
call esi
push str.WTSGetActiveConsoleSessionId
push dword [ebp - 0x214]
mov dword [ebp - 0x220], eax
call esi
test eax, eax
je 0x1000a3b8
cmp dword [ebp - 0x220], 0
jne 0x1000a3b8
call eax
lea ecx, [ebp - 0x210]
push ecx
push eax
xor eax, eax
call eax
test eax, eax
je 0x1000a3b8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ecx, dword [ebp - 0x218]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x218], ecx
push dword [ebp - 0x214]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
push edi
call esi
cmp byte [ebp - 0x218], 0
je 0x1000a3da
mov eax, dword [ebp - 0x210]
jmp 0x1000a3ed
push str.EXPLORER.EXE
call fcn.1000ad70
add esp, 4
mov dword [ebp - 0x210], eax
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1000a446
push esi
push 1
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1000a446
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp + 0x10]
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
movzx ecx, bl
mov eax, 1
cmovne ecx, eax
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011b54
mov esp, ebp
pop ebp
ret
Function at 0x1000a6d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.10011ba0
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1000a90e
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], 0
push 0
push eax
mov dword [ebp - 0x2008], 0
call fcn.100141e0
push edi
push esi
lea eax, [ebp - 0x2004]
push str.__s___s
push eax
call fcn.100029a0
push str.EXPLORER.EXE
call fcn.1000aba0
add esp, 0x20
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000a8cb
lea eax, [ebp - 0x2010]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000a8cb
lea eax, [ebp - 0x2008]
push eax
push 1
push 1
push 0
push 0xf01ff
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1000a8cb
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000a7e8
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a7e1
call eax
push 4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push 0xc
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1000a8cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [ebp - 0x2054], 0
xorps xmm0, xmm0
mov word [ebp - 0x2016], ax
push 0
push dword [ebp - 0x2008]
mov eax, 5
movlpd qword [ebp - 0x204c], xmm0
mov word [ebp - 0x2028], ax
lea eax, [ebp - 0x200c]
push eax
movlpd qword [ebp - 0x2044], xmm0
movlpd qword [ebp - 0x203c], xmm0
movlpd qword [ebp - 0x2034], xmm0
movlpd qword [ebp - 0x2026], xmm0
movlpd qword [ebp - 0x201e], xmm0
movups xmmword [ebp - 0x2068], xmm0
mov dword [ebp - 0x2058], 0x44
mov dword [ebp - 0x2050], str.WinSta0Default
mov dword [ebp - 0x202c], 1
mov dword [ebp - 0x200c], 0
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1000a8cb
lea eax, [ebp - 0x2068]
push eax
lea eax, [ebp - 0x2058]
push eax
push 0
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push 0x430
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000a8cb
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x1000a8cb
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x2008]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000a8e3
cmp eax, 0xffffffff
je 0x1000a8e3
push eax
call esi
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x1000a8f5
cmp eax, 0xffffffff
je 0x1000a8f5
push eax
call esi
test edi, edi
jne 0x1000a8fc
push edi
call esi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
push esi
call fcn.1000a480
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.10011b54
mov esp, ebp
pop ebp
ret
Function at 0x1000aba0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100299e0
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1003c0ac]
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 eax, dword [ebp + 8]
test eax, eax
je 0x1000ad43
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], 7
call fcn.10008990
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.1000c780
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.100141e0
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x1000ad37
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000ad2b
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x14], 7
push eax
call fcn.10008990
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.1000c780
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add esp, 4
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
cmp ebx, 8
cmovae esi, edi
cmp edx, dword [ebp - 0x30]
jne 0x1000acdd
test edx, edx
je 0x1000acc1
sub esi, eax
nop
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x1000acdd
add eax, 2
sub edx, 1
jne 0x1000acb0
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.100026c0
jmp 0x1000ad39
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x1000ad11
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000ad07
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ad5f
push ecx
push edi
call fcn.10011b41
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000ac53
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.100026c0
mov eax, esi
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.10011b54
mov esp, ebp
pop ebp
ret
call fcn.10016079
int3