joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005628b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, 0x200
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100b4200
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.1004342a
cmp eax, esi
pop ecx
pop ecx
jl 0x100562c7
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x100562ca
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.10045fcc
mov edi, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
add edi, 0x200
push dword [ebp + 0xc]
and edi, 0xfffffe00
push dword [ebp + 8]
lea ebx, [edi + esi]
call fcn.10040d01
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x100563a5
cmp edx, dword [ebp + 0x10]
jne 0x100563a5
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100563a5
push esi
push ebx
push edi
call fcn.100144ff
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x1005634d
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.100144ff
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [ebx + 0x1fe], si
call fcn.10040d01
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x100563a5
cmp edx, dword [ebp + 0x10]
jne 0x100563a5
push dword [ebp - 8]
push ebx
push edi
call fcn.10046443
add esp, 0xc
test eax, eax
jne 0x100563a5
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x10056eb3
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10056ef6
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x10056eef
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.1005026c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x100579e1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
movzx esi, word [ebp + 0x1c]
lea eax, [esi - 1]
cdq
push edi
not eax
not edx
push 0xa0000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.10045fcc
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, 0x20000
xor ebx, ebx
and edi, 0xfffe0000
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
jne 0x10057a5c
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x10057b4f
jle 0x10057b46
cmp dword [ebp + 0x18], ebx
jne 0x10057a82
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x10057a82
jg 0x10057a58
cmp dword [ebp + 0x10], eax
jbe 0x10057a82
xor cl, cl
jmp 0x10057a84
mov eax, dword [ebp + 0x18]
cdq
add eax, ecx
adc edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.100b64f0
mov dword [ebp - 8], eax
jmp 0x10057a34
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x10057a9b
jg 0x10057a94
cmp dword [ebp + 0x10], 0x10000000
jbe 0x10057a9b
mov esi, 0x10000000
jmp 0x10057a9e
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x10057b12
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x10057abd
jg 0x10057aba
cmp esi, dword [ebp + 0x10]
jbe 0x10057abd
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.10040d01
add esp, 0x10
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp + 0x1c]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.100144ff
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.10040d01
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x10057b1c
cmp dword [ebp + 0x1c], ebx
je 0x10057b1c
and esi, dword [ebp - 0x28]
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x10057a43
jl 0x10057b4f
cmp dword [ebp + 0x10], ebx
ja 0x10057a43
lea ecx, [ebp - 0xc]
call fcn.1003f96c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10058f7c
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x10058f94
test byte [ecx + 9], 0xf
jne 0x10058f94
pop ebp
jmp fcn.10058e84
pop ebp
jmp fcn.10057b62

Function at 0x10058f9a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1005905d
cmp esi, edi
je 0x10058fc0
mov dword [ebp - 4], esi
jmp 0x10058fc6
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x10059056
push ebx
mov ebx, esi
jmp 0x10058fdc
cmp ax, 0x3d
je 0x10058fe6
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x10058fd6
cmp dword [ebp + 0xc], edi
je 0x10059003
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
push 0xffffffffffffffff
sar eax, 1
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.1001520e
jmp 0x10059046
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.10050208
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.10010cdd
test eax, eax
jne 0x10059038
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.1001520e
lea ecx, [ebp - 8]
call fcn.1003f96c
xor edi, edi
jmp 0x10059046
inc esi
inc esi
cmp word [esi], di
jne 0x10059044
inc esi
inc esi
cmp word [esi], di
jne 0x10058fd2
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret
Function at 0x10059641
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.1004fbbd
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x100596bb
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x100596ab
cmp ebx, 2
je 0x100596bb
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x100e3108
call fcn.10054cb1
pop ebx
leave
ret
Function at 0x1005a244
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
xor edi, edi
cmp ebx, esi
mov dword [ebp - 4], esi
jne 0x1005a2f1
cmp dword [ebp + 0xc], esi
jne 0x1005a26e
mov eax, 0x80070057
jmp 0x1005a3fc
cmp dword [0x100e350c], esi
jle 0x1005a3fa
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1005a2af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x1005a3fc
jmp 0x1005a42d
push esi
lea eax, [ebp + 8]
push eax
push dword [0x100e350c]
push dword [0x100e3d48]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100e3d48]
cmp eax, esi
mov dword [0x100e350c], esi
je 0x1005a3fa
call fcn.1003f955
mov dword [0x100e3d48], esi
jmp 0x1005a3fa
cmp dword [ebp + 0x10], esi
je 0x1005a418
push esi
push dword [ebp + 0x10]
call fcn.10015eb9
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x1005a42d
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub edi, dword [ebx]
sub eax, dword [ebx + 4]
cmp edi, esi
mov dword [ebp - 0x10], eax
jle 0x1005a401
cmp eax, esi
jle 0x1005a401
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [0x100e2f04]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x100e2f08]
cmp edi, dword [ebp - 8]
jne 0x1005a35f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x1005a401
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.10045833
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x1005a42d
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], esi
call dword [0x100e2f14]
push 2
push dword [ebp + 8]
call dword [0x100e2f1c]
push dword [ebp - 0x10]
push edi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x100e2ecc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 8], esi
je 0x1005a3cf
push dword [ebp + 8]
call dword [0x100e2f18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10059eff
add esp, 0x10
cmp ebx, esi
mov edi, eax
je 0x1005a3ec
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], esi
je 0x1005a3fa
push dword [ebp - 4]
call dword [0x100e2ec8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0x14]
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.10059eff
add esp, 0x10
mov edi, eax
jmp 0x1005a3ec
push str.DISPLAY
push esi
push ebx
call fcn.10045833
mov ebx, eax
add esp, 0xc
cmp ebx, esi
jne 0x1005a3cf
xor eax, eax
inc eax
jmp 0x1005a3fc
Function at 0x1005a432
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [0x100e2f28], edi
mov ebx, ecx
mov dword [ebp - 0xc], ebx
jne 0x1005a45e
push edi
push edi
call fcn.10015eb9
test eax, eax
pop ecx
pop ecx
jne 0x1005a45e
or eax, 0xffffffff
jmp 0x1005a5ea
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
je 0x1005a46f
mov ecx, dword [eax]
jmp 0x1005a471
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
jne 0x1005a487
push 0x64
pop eax
cmp eax, 0x10000
push esi
jge 0x1005a4d0
mov esi, dword [0x100e2fc0]
movzx eax, ax
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x1005a4b4
or eax, 0xffffffff
jmp 0x1005a5e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [ebp + 0xc], eax
jb 0x1005a4ac
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x1005a4d9
cmp ecx, edi
je 0x1005a4f4
mov eax, dword [eax]
mov dword [ebp + 0xc], ecx
cmp eax, edi
je 0x1005a4ac
lea ecx, [ebx + 0x2c]
push ecx
push dword [ebp + 0xc]
lea esi, [ebx + 0x28]
push eax
call fcn.10045061
add esp, 0xc
mov dword [esi], eax
jmp 0x1005a4ff
lea esi, [ebx + 0x28]
push esi
push eax
call dword [0x100e2ed0]
mov eax, dword [esi]
cmp eax, edi
jne 0x1005a50d
push 0xfffffffffffffffe
pop eax
jmp 0x1005a5e9
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], edi
call dword [0x100e2ee4]
mov eax, dword [ebp - 8]
shl eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.10045fcc
push dword [ebp - 8]
push dword [ebp + 8]
push dword [esi]
call dword [0x100e2ed4]
lea eax, [ebx + 0xc]
push eax
push dword [ebp + 8]
push dword [esi]
call dword [0x100e2ee8]
cmp dword [ebx + 0xc], 1
ja 0x1005a555
or edi, 0xffffffff
jmp 0x1005a5df
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x5100
push edi
push dword [esi]
call dword [0x100e2eec]
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.10045fcc
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push dword [esi]
call dword [0x100e2ef0]
mov edi, dword [ebp - 4]
push dword [ebx + 0xc]
add edi, 0xfffffff0
mov ecx, ebx
shr edi, 2
call fcn.1004ffbc
xor esi, esi
xor ebx, ebx
test edi, edi
jbe 0x1005a5bd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + eax*4]
push ebx
shl esi, 1
call fcn.1004ffbc
inc ebx
cmp ebx, edi
mov dword [eax], esi
jb 0x1005a59f
mov edi, dword [ebp - 0xc]
add edi, 0xc
jmp 0x1005a5d1
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.1004ffbc
mov dword [eax], esi
inc ebx
cmp ebx, dword [edi]
jb 0x1005a5c5
mov edi, dword [edi]
lea ecx, [ebp + 0xc]
call fcn.1003f96c
lea ecx, [ebp + 8]
call fcn.1003f96c
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x10065259
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x90
push ebx
push esi
push edi
push 5
pop ecx
mov esi, str.__Volume
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1a
xor eax, eax
pop ecx
lea edi, [ebp - 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x7c]
cmp eax, 4
mov byte [ebp + 0x6b], al
jbe 0x10065293
mov byte [ebp + 0x6b], 0xff
jmp 0x100652aa
lea eax, [ebp - 0x24]
push 1
push dword [ebp + 0x74]
mov dword [ebp + 0x7c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.1004363d
add esp, 0xc
mov edi, dword [ebp + 0x78]
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push edi
push dword [ebp + 0x7c]
mov word [eax], bx
call fcn.100145e0
add esp, 0x10
cmp byte [ebp + 0x6b], bl
jle 0x100653f0
mov eax, dword [edi]
cmp word [eax], bx
jne 0x100653f0
push 0x105
lea ecx, [ebp + 0x64]
call fcn.10046141
mov esi, dword [ebp + 0x64]
push 0x103
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x60], eax
je 0x100653e4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x10065312
mov word [eax], bx
lea ecx, [ebp + 0x7c]
mov word [esi + 2], 0x3f
mov dword [ebp + 0x78], ebx
call fcn.10045faf
push ebx
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x7c]
push eax
push esi
push str.SYSTEMMountedDevices
push 0x80000002
call fcn.1004a913
add esp, 0x18
cmp dword [ebp + 0x78], 0x18
jne 0x10065373
push 8
push dword [ebp + 0x7c]
push str.DMIO:ID:
call fcn.1003fa82
add esp, 0xc
test eax, eax
jne 0x10065373
mov eax, dword [ebp + 0x7c]
push 0x10
add eax, 8
push eax
push dword [ebp + 0x74]
call fcn.10046443
add esp, 0xc
test eax, eax
jne 0x10065397
lea ecx, [ebp + 0x7c]
call fcn.1003f96c
push 0x103
push esi
push dword [ebp + 0x60]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x100652fe
jmp 0x100653c7
push ebx
push ebx
push edi
push esi
call fcn.100145e0
add esi, 0x14
add esp, 0x10
cmp byte [ebp + 0x6b], 2
mov dword [ebp + 0x5c], esi
jne 0x100653bf
push ebx
push dword [ebp + 0x74]
lea eax, [ebp + 0x5c]
push eax
call fcn.100563b5
add esp, 0xc
lea ecx, [ebp + 0x7c]
call fcn.1003f96c
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp byte [ebp + 0x6b], 2
jne 0x100653da
xor eax, eax
jmp 0x100653e2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebp + 0x64]
call fcn.1003f96c
mov eax, ebx
jmp 0x1006540a
cmp byte [ebp + 0x6b], 2
jne 0x10065402
mov eax, dword [edi]
cmp word [eax], bx
je 0x10065402
push 2
pop eax
jmp 0x1006540a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x1006d64e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x1006d777
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.10046141
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x1006d76f
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x1006d75f
cmp word [edi], si
je 0x1006d75f
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.100501eb
push 0x100c7828
lea ecx, [ebp - 4]
call fcn.1004618f
push edi
lea ecx, [ebp - 4]
call fcn.1004618f
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x100e2c20]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x1006d757
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.1006d64e
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x1006d757
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.1003f96c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x1006d6a5
pop edi
lea ecx, [ebp - 0x18]
call fcn.1003f96c
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1007e1f6
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x100e3d7c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.1005a6a5
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x1007e23b
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x1007e23b
push 0
push edi
inc ebx
call ebp
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x1007e24f
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x1007e267
push 1
push edi
call fcn.100b05c4
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10088b1f
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
push edi
push dword [ebp + 0xc]
and ecx, 1
and eax, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
call esi
mov dword [ebp + 0x24], eax
mov eax, 0xb4
cmp dword [ebp + 0x24], eax
jle 0x10088b54
mov dword [ebp + 0x24], eax
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
mov edi, eax
inc edi
call esi
push dword [0x100e3d4c]
inc eax
lea eax, [eax + edi + 0x1a4]
push eax
lea ecx, [ebp - 4]
call fcn.100501d1
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
push dword [ebp + 8]
mov dword [esi + 0x294], eax
lea eax, [esi + 0x348]
lea ecx, [eax + edi*2]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi + 0x320], ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
push eax
mov byte [esi + 0xc0], 0x40
mov dword [esi + 0x284], eax
mov byte [esi + 0x32c], bl
mov dword [esi + 0xe8], ecx
call edi
push dword [ebp + 0x18]
push dword [esi + 0x320]
call edi
cmp dword [ebp - 8], ebx
lea edi, [esi + 0x27c]
mov dword [edi], ebx
je 0x10088bdb
mov dword [edi], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x24]
add eax, eax
push eax
push dword [ebp + 0xc]
lea eax, [esi + 0xec]
push eax
call fcn.100144ff
mov eax, dword [ebp + 0x24]
add esp, 0xc
push 0x100e2c24
push 0x10004
push esi
push 0x100883b8
push 0x20000
push ebx
mov word [esi + eax*2 + 0xec], bx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp + 0x24], eax
je 0x10088ca6
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x338], eax
mov esi, 0x100e3d7c
push esi
mov dword [ebp + 0x1c], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x100e34c0], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
je 0x10088ca1
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 0x14]
mov ecx, 0x100e3108
call fcn.10011621
push dword [ebp + 0x24]
call esi
movzx esi, byte [edi]
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009fcf4
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.10046168
mov eax, dword [edi]
and word [eax], 0
mov edi, dword [edi]
inc esi
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
ret

Function at 0x100a0fbd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
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 byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100a101a
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x100a1011
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret