joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3278
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4e32be
push 6
call fcn.004f5528
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x53ea41]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00402e94
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.004f6690
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4e3311
push ebx
call fcn.004f5522
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4e334a
push 6
call fcn.004f5528
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4e3366
push eax
mov ebx, eax
call fcn.0040125a
inc eax
push eax
call fcn.004f551c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4e336b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4e337c
push ebx
call fcn.004f5522
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4f6df0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4f6e0e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4f6e03
pop esi
ret

Function at 0x4f6ef0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x4f6f73
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f6f73
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4f6f66
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x4f7a20
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4f7a39
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.004faaf0
add esp, 4
test eax, eax
jne 0x4f7a4e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4f7a68
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x4f7a68
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x4f7b50
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4f7aa0
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4f7ab7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x4f7abb
mov esi, dword [esp + 0x2c]
push esi
call fcn.0050bc5c
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f7af4
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.0050bc85
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x4f7b10
mov al, byte [ecx]
test al, al
je 0x4f7b10
cmp al, 0x1a
je 0x4f7b10
inc edi
inc ecx
cmp edi, edx
jb 0x4f7b00
lea ecx, [edi + 1]
push ecx
call fcn.004f5760
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.005002e0
push ebx
mov byte [edi + esi], 0
call fcn.0050bc85
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x4f7bcb
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x4f7b6a
or eax, 0xffffffff
jmp 0x4f7b6e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x4f7b9d
mov cl, byte [edx]
test cl, cl
je 0x4f7b9d
cmp cl, 0x1a
je 0x4f7b9d
inc edi
inc edx
cmp edi, eax
jb 0x4f7b8c
lea edx, [edi + 1]
push edx
call fcn.004f5760
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.005002e0
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4f7f30
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0050bc5c
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4f7f9a
push esi
lea edi, [eax + 0x400]
call fcn.0050bc85
push edi
call fcn.0050bc5c
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4f7f6a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4f7fb6
push ecx
push esi
call fcn.004fa3d0
add esp, 8
mov ebx, eax
push esi
call fcn.0050bc85
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4fd060
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5d9eec]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4fd073
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4fd0b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5d9f94]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4fd0e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4fd0ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4fd0db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4fd108
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4fd10c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4fd0fd
xor ecx, ecx
mov eax, 0x5d9efc
xor ebx, ebx
mov bl, byte [ecx + 0x5d9fa4]
cmp byte [esp + ebx + 0x14], 0
je 0x4fd137
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5d9fbc]
cmp byte [esp + ebx + 0x14], 0
je 0x4fd14e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4fd11e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4fd0a7
lea edx, [esp + 0x84]
push edx
call fcn.004fd190
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x50c63c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5138b4
call fcn.00501c94
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00511da2
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x50c67b
call fcn.00511da2
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x50c689
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x50c697
or eax, 0xffffffff
jmp 0x50c77f
mov ecx, esi
call fcn.0050c5b2
mov dword [ebp - 0x14], eax
call fcn.0050d626
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x50c6ce
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x50c6ce
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0050d5da
push dword [ebp - 0x14]
call fcn.0050d10b
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0050c34a
cmp eax, edi
je 0x50c741
test byte [esi + 0x24], 0x10
je 0x50c70f
push 4
mov ecx, esi
pop ebx
call fcn.0050cb0b
test ah, 1
je 0x50c707
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0050f135
cmp dword [esi + 0x1c], edi
je 0x50c741
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0050cb3f
jmp 0x50c741
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x50c755
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x50c76e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x50c76e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0050c5ec
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x50efe3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50f025
call fcn.00511da2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50f025
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50f01c
xor eax, eax
jmp 0x50f02d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050f033
pop edi
pop esi
pop ebx
ret 4
Function at 0x512338
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x512366
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x512384
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051229e
jmp 0x512384
mov eax, dword [esi + 0x14]
test eax, eax
je 0x512384
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051229e
test edi, edi
mov eax, edi
jne 0x51236e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10c9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010c91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c906a
add dl, dl
jne 0x10c9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c90dc
xor eax, eax
add dl, dl
jne 0x10c9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c917d
add dl, dl
jne 0x10c90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c9075
mov eax, 1
add dl, dl
jne 0x10c90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c90e1
sub eax, ebx
mov ebx, 1
jne 0x10c9128
mov ecx, 1
add dl, dl
jne 0x10c910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c9136
cmp eax, 0x7d00
jae 0x10c916d
cmp eax, 0x500
jb 0x10c9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
cmp eax, 0x7f
ja 0x10c9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10c9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x4075ff
Capabilities:
Encode data using xor

Disassembly:
mov ds, eax
jmp 0x48adf9c7
inc esi
adc byte [0x482d6e12], cl
xor bl, 0x23
out 0xa, eax
clc
cmpsd dword [esi], dword es:[edi]
invalid
or byte [ecx], bl
pop edi
jecxz 0x4075cb
and al, byte [ecx + 0x78]
push ebx
movsd dword es:[edi], dword [esi]
cmc
adc ch, ch
retf
xchg ebp, eax
loopne 0x407595
pop edi
cmc
dec esp
lodsb al, byte [esi]
scasb al, byte es:[edi]
or byte [ecx], al
pop dword [edi - 0x50dc9978]
cmp ecx, dword [edx + 0x523650ae]
sar dword [eax - 0x7d], 0x88
pop eax
inc eax
jge 0x4075e1
mov esi, 0x98c6b490
xchg esi, eax
and edi, dword [edx - 0x7238ee94]
and bh, byte [esi]
xchg ebp, eax
sbb al, 0x98
add al, 0xaf
pop ss
cmpsb byte [esi], byte es:[edi]
cmp cl, bh
mov al, 0xb1
mov dh, 0x5e
sub dh, ah
xchg ecx, eax
sahf
pop ds
mov eax, 0x296539d2
dec edx
sahf
invalid
Function at 0x86a60
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x86b8c
mov al, byte [esi]
mov byte [ebp - 4], al
mov al, byte [esi + 1]
mov byte [ebp - 3], al
mov al, byte [esi + 2]
push edi
mov edi, dword [ebp + 0x10]
mov byte [ebp - 2], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x86b1d
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push ebx
push eax
call fcn.0008eb0e
add esp, 0x10
cmp edx, ebx
jl 0x86b1d
jg 0x86ae7
cmp eax, 0x6400000
jbe 0x86afd
call fcn.0008eca5
xor edx, edx
mov ecx, 0x500000
div ecx
lea edi, [edx + 0xa00000]
jmp 0x86b1d
cmp edx, ebx
jl 0x86b1d
jg 0x86b0a
cmp eax, 0x3200000
jbe 0x86b1d
call fcn.0008eca5
mov edi, eax
and edi, 0x1fffff
add edi, 0x300000
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00086987
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x86b56
mov dword [0x92180], 0x61040102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0x9217c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x86b7f
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x86b86
mov dword [0x92180], 0x61040103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0x9217c], eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
pop edi
jmp 0x86ba3
mov dword [0x92180], 0x61040101
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9217c], eax
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x86dc2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x92f0c]
sub esp, 0x104
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x86e33
call fcn.00086cc9
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0008ef00
pop ecx
lea eax, [ebp - 0x104]
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x86df4
sub eax, edx
cmp eax, 3
jb 0x86e24
push ebx
push ebx
push ebx
push ebx
push 0x92f0c
push ebx
push ebx
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 0x101], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x86e2e
mov dword [0x92f0c], 0x61616161
mov eax, dword [0x92f0c]
pop ebx
leave
ret

Function at 0x86e36
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x358]
push eax
or esi, 0xffffffff
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x86ebe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x358]
push eax
push 0
mov dword [ebp - 4], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x86ebe
cmp dword [ebp - 4], 0xc
jb 0x86ebb
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 8]
jne 0x86ebb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x86eb7
cmp dword [ebp - 4], 0x1c
jb 0x86ebb
cmp dword [ebp - 0x38], eax
jne 0x86ebb
xor esi, esi
jmp 0x86ebe
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x86edd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x92048]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jge 0x86f5c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x86f44
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x86f3b
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
mov dword [0x92048], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x92048]
cmp eax, ebx
je 0x86f5c
push ebx
push 0x12
call fcn.00086e36
pop ecx
pop ecx
mov dword [0x92048], eax
pop ebx
leave
ret
Function at 0x880c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [0x92c3c], ebx
mov dword [0x92c38], ebx
call fcn.00086ec3
test eax, eax
jne 0x880f9
call fcn.00087ee6
jmp 0x88225
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 0x90264
call fcn.0008704c
add esp, 0x14
test eax, eax
jle 0x88225
cmp byte [ebp - 0x134], bl
je 0x88225
cmp byte [ebp - 0x30], bl
je 0x88225
lea eax, [ebp - 8]
push eax
push 0x101
push ebx
push 0xc8
push 0xe4
push 0x2e
push 0x906ac
mov edi, 0x922f8
push edi
call fcn.00082544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x88216
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x881f7
cmp dword [ebp - 0xc], 1
jne 0x881f7
cmp dword [ebp - 4], ebx
jbe 0x881f7
push dword [ebp - 4]
call fcn.0008ebcc
pop ecx
mov dword [0x92c3c], eax
cmp eax, ebx
je 0x8820d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x881f7
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x881cd
sub eax, edx
inc eax
push eax
call fcn.0008ebcc
pop ecx
mov dword [0x92c38], eax
cmp eax, ebx
je 0x8820d
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.0008ef00
pop ecx
jmp 0x8820c
mov eax, dword [0x92c3c]
cmp eax, ebx
je 0x8820d
push eax
call fcn.0008ec2e
mov dword [0x92c3c], ebx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push ebx
push edi
call fcn.0008ee2a
add esp, 0xc
cmp byte [str.C:WindowsSysWOW64cwktspgqqclzyudi.exe], bl
je 0x8826c
cmp dword [0x921a4], ebx
jne 0x8826c
push ebx
lea eax, [ebp - 0x10]
push eax
push str.C:WindowsSysWOW64cwktspgqqclzyudi.exe
call fcn.0008675c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x8826c
mov esi, dword [ebp - 0x10]
push ebx
push esi
push edi
call fcn.000824c2
push edi
mov dword [0x922d4], eax
mov dword [0x921a4], esi
call fcn.0008ec2e
add esp, 0x10
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret