joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1115245a
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebx - 0x1d]
push edi
mov edi, ecx
cmp eax, 0xc4
ja case.0x1115242e.30
movzx eax, byte [eax + 0x1115261c]
jmp dword [eax*4 + 0x11152600]
xor ecx, ecx
cmp dword [0x1127f210], ecx
pop edi
sete cl
pop ebx
mov dword [0x1127f210], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x1127f20c], 1
jmp case.0x1115242e.30
mov dword [0x1127f20c], 0
jmp case.0x1115242e.30
mov dword [0x1127f208], 1
jmp case.0x1115242e.30
mov dword [0x1127f208], 0
xor ecx, ecx
cmp dword [0x1127f210], ecx
mov dword [0x1127f210], 0
setne cl
mov dword [ebp + 8], ecx
test bl, bl
jns 0x1115249e
or ecx, 2
mov dword [ebp + 8], ecx
and ebx, 0x7f
lea eax, [ebx - 0x5b]
push esi
cmp eax, 0x17
ja case.0x111524b1.94
movzx edx, byte [eax + 0x111526f0]
jmp dword [edx*4 + 0x111526e4]
mov esi, ebx
jmp 0x111524f5
cmp dword [ebp + 0x10], 0
je case.0x111524b1.94
xor eax, eax
cmp ebx, 0x71
sete al
or ebx, 0x80
and ecx, 0xfffffffd
mov dword [ebp + 8], ecx
lea esi, [eax*4 + 0x15]
jmp 0x111524f5
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
cmp ebx, 0x46
jne 0x11152514
cmp esi, 0x91
jne 0x1115258b
cmp dword [0x1127f20c], 0
je 0x1115258b
lea esi, [ebx - 0x43]
jmp 0x1115258b
cmp ebx, 0x37
jne 0x1115252e
cmp esi, 0x6a
jne 0x1115258b
test byte [ebp + 8], 1
je 0x1115258b
lea esi, [ebx - 0xb]
xor ebx, ebx
mov dword [ebp + 8], ebx
jmp 0x1115258b
cmp ebx, 0x54
jne 0x11152544
cmp esi, 0x2c
jne 0x1115258b
lea ebx, [esi - 0x2b]
mov dword [ebp + 8], 0
jmp 0x1115258b
cmp ebx, 0x45
jne 0x1115258b
cmp dword [0x1127f20c], 0
jne 0x1115255b
cmp dword [0x1127f204], 0
je 0x11152570
mov edx, dword [edi]
mov eax, dword [edx + 0x64]
push 0x9d
mov ecx, edi
call eax
mov esi, 0x13
jmp 0x11152575
cmp esi, 0x13
jne 0x11152587
mov ecx, dword [ebp + 8]
shr ecx, 1
not ecx
and ecx, 1
mov dword [0x1127f204], ecx
jmp 0x1115258b
or dword [ebp + 8], 1
push 2
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x111525db
test byte [ebp + 8], 1
jne 0x111525db
push esi
push str._____f__.
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x111525db
sub eax, str._____f__.
mov esi, eax
cmp esi, 9
ja 0x111525d6
add esi, 0x60
jmp 0x111525db
mov esi, 0x6e
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
push 0
push ecx
push ebx
push esi
mov ecx, edi
call edx
push ebx
mov ecx, edi
call fcn.11150ca0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11152466
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebx - 0x1d]
push edi
mov edi, ecx
cmp eax, 0xc4
ja case.0x1115242e.30
movzx eax, byte [eax + 0x1115261c]
jmp dword [eax*4 + 0x11152600]
xor ecx, ecx
cmp dword [0x1127f210], ecx
pop edi
sete cl
pop ebx
mov dword [0x1127f210], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x1127f20c], 1
jmp case.0x1115242e.30
mov dword [0x1127f20c], 0
jmp case.0x1115242e.30
mov dword [0x1127f208], 1
jmp case.0x1115242e.30
mov dword [0x1127f208], 0
xor ecx, ecx
cmp dword [0x1127f210], ecx
mov dword [0x1127f210], 0
setne cl
mov dword [ebp + 8], ecx
test bl, bl
jns 0x1115249e
or ecx, 2
mov dword [ebp + 8], ecx
and ebx, 0x7f
lea eax, [ebx - 0x5b]
push esi
cmp eax, 0x17
ja case.0x111524b1.94
movzx edx, byte [eax + 0x111526f0]
jmp dword [edx*4 + 0x111526e4]
mov esi, ebx
jmp 0x111524f5
cmp dword [ebp + 0x10], 0
je case.0x111524b1.94
xor eax, eax
cmp ebx, 0x71
sete al
or ebx, 0x80
and ecx, 0xfffffffd
mov dword [ebp + 8], ecx
lea esi, [eax*4 + 0x15]
jmp 0x111524f5
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
cmp ebx, 0x46
jne 0x11152514
cmp esi, 0x91
jne 0x1115258b
cmp dword [0x1127f20c], 0
je 0x1115258b
lea esi, [ebx - 0x43]
jmp 0x1115258b
cmp ebx, 0x37
jne 0x1115252e
cmp esi, 0x6a
jne 0x1115258b
test byte [ebp + 8], 1
je 0x1115258b
lea esi, [ebx - 0xb]
xor ebx, ebx
mov dword [ebp + 8], ebx
jmp 0x1115258b
cmp ebx, 0x54
jne 0x11152544
cmp esi, 0x2c
jne 0x1115258b
lea ebx, [esi - 0x2b]
mov dword [ebp + 8], 0
jmp 0x1115258b
cmp ebx, 0x45
jne 0x1115258b
cmp dword [0x1127f20c], 0
jne 0x1115255b
cmp dword [0x1127f204], 0
je 0x11152570
mov edx, dword [edi]
mov eax, dword [edx + 0x64]
push 0x9d
mov ecx, edi
call eax
mov esi, 0x13
jmp 0x11152575
cmp esi, 0x13
jne 0x11152587
mov ecx, dword [ebp + 8]
shr ecx, 1
not ecx
and ecx, 1
mov dword [0x1127f204], ecx
jmp 0x1115258b
or dword [ebp + 8], 1
push 2
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x111525db
test byte [ebp + 8], 1
jne 0x111525db
push esi
push str._____f__.
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x111525db
sub eax, str._____f__.
mov esi, eax
cmp esi, 9
ja 0x111525d6
add esi, 0x60
jmp 0x111525db
mov esi, 0x6e
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
push 0
push ecx
push ebx
push esi
mov ecx, edi
call edx
push ebx
mov ecx, edi
call fcn.11150ca0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11152472
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebx - 0x1d]
push edi
mov edi, ecx
cmp eax, 0xc4
ja case.0x1115242e.30
movzx eax, byte [eax + 0x1115261c]
jmp dword [eax*4 + 0x11152600]
xor ecx, ecx
cmp dword [0x1127f210], ecx
pop edi
sete cl
pop ebx
mov dword [0x1127f210], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x1127f20c], 1
jmp case.0x1115242e.30
mov dword [0x1127f20c], 0
jmp case.0x1115242e.30
mov dword [0x1127f208], 1
jmp case.0x1115242e.30
mov dword [0x1127f208], 0
xor ecx, ecx
cmp dword [0x1127f210], ecx
mov dword [0x1127f210], 0
setne cl
mov dword [ebp + 8], ecx
test bl, bl
jns 0x1115249e
or ecx, 2
mov dword [ebp + 8], ecx
and ebx, 0x7f
lea eax, [ebx - 0x5b]
push esi
cmp eax, 0x17
ja case.0x111524b1.94
movzx edx, byte [eax + 0x111526f0]
jmp dword [edx*4 + 0x111526e4]
mov esi, ebx
jmp 0x111524f5
cmp dword [ebp + 0x10], 0
je case.0x111524b1.94
xor eax, eax
cmp ebx, 0x71
sete al
or ebx, 0x80
and ecx, 0xfffffffd
mov dword [ebp + 8], ecx
lea esi, [eax*4 + 0x15]
jmp 0x111524f5
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
cmp ebx, 0x46
jne 0x11152514
cmp esi, 0x91
jne 0x1115258b
cmp dword [0x1127f20c], 0
je 0x1115258b
lea esi, [ebx - 0x43]
jmp 0x1115258b
cmp ebx, 0x37
jne 0x1115252e
cmp esi, 0x6a
jne 0x1115258b
test byte [ebp + 8], 1
je 0x1115258b
lea esi, [ebx - 0xb]
xor ebx, ebx
mov dword [ebp + 8], ebx
jmp 0x1115258b
cmp ebx, 0x54
jne 0x11152544
cmp esi, 0x2c
jne 0x1115258b
lea ebx, [esi - 0x2b]
mov dword [ebp + 8], 0
jmp 0x1115258b
cmp ebx, 0x45
jne 0x1115258b
cmp dword [0x1127f20c], 0
jne 0x1115255b
cmp dword [0x1127f204], 0
je 0x11152570
mov edx, dword [edi]
mov eax, dword [edx + 0x64]
push 0x9d
mov ecx, edi
call eax
mov esi, 0x13
jmp 0x11152575
cmp esi, 0x13
jne 0x11152587
mov ecx, dword [ebp + 8]
shr ecx, 1
not ecx
and ecx, 1
mov dword [0x1127f204], ecx
jmp 0x1115258b
or dword [ebp + 8], 1
push 2
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x111525db
test byte [ebp + 8], 1
jne 0x111525db
push esi
push str._____f__.
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x111525db
sub eax, str._____f__.
mov esi, eax
cmp esi, 9
ja 0x111525d6
add esi, 0x60
jmp 0x111525db
mov esi, 0x6e
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
push 0
push ecx
push ebx
push esi
mov ecx, edi
call edx
push ebx
mov ecx, edi
call fcn.11150ca0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11152e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e7b13
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov word [esi + 0x30], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push 0x15c
mov dword [ebp - 4], ebx
mov dword [esi], vtable.NSMPlatform95.0
call fcn.111709c0
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x11152eca
push ebx
push ebx
lea ecx, [edi + 0x1c]
call fcn.11170ad0
jmp 0x11152ecc
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [edi], esi
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x2c], 1
xor eax, eax
movzx ecx, word [eax + str.LPT1]
mov word [eax + 0x1127f0a0], cx
add eax, 2
cmp cx, bx
jne 0x11152ee1
call fcn.11148250
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

Function at 0x11153180
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0x24]
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xa4]
xor eax, eax
push edx
mov word [ebp - 0xa4], ax
mov dword [ebp - 0xa8], 0x50
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp word [ebp - 0xa4], 0
je 0x11153227
lea ecx, [esi + 0x5c]
lea eax, [ebp - 0xa4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x111531f7
test dx, dx
je 0x111531f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x111531f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x111531d1
xor eax, eax
jmp 0x111531fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x11153227
lea eax, [ebp - 0xa4]
push eax
push 0
push 0x3ff
call fcn.11067670
lea ecx, [ebp - 0xa4]
push ecx
push 0x11152360
call fcn.11063a30
add esp, 0x14
lea eax, [ebp - 0xa4]
lea edx, [esi + 0x5c]
mov ecx, eax
sub edx, ecx
pop esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x11153235
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.111d9022
mov esp, ebp
pop ebp
ret 8
Function at 0x11153980
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e7b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x1d8]
push edx
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1e0], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov cx, word [ebp - 0x1cc]
add cx, di
mov word [ebp - 0x1cc], cx
cmp cx, 0x3c
jb 0x11153a26
mov esi, 0x3c
mov ax, cx
xor dx, dx
div si
mov si, word [ebp - 0x1ce]
movzx eax, ax
add si, ax
mov word [ebp - 0x1ce], si
mov edx, 0xffc4
add cx, dx
dec eax
jne 0x11153a12
mov word [ebp - 0x1cc], cx
jmp 0x11153a2d
mov si, word [ebp - 0x1ce]
cmp si, 0x3c
jb 0x11153a69
mov ecx, 0x3c
mov ax, si
xor dx, dx
div cx
mov cx, word [ebp - 0x1d0]
movzx eax, ax
add cx, ax
mov word [ebp - 0x1d0], cx
mov edx, 0xffc4
add si, dx
dec eax
jne 0x11153a55
mov word [ebp - 0x1ce], si
jmp 0x11153a70
mov cx, word [ebp - 0x1d0]
cmp cx, 0x18
jb 0x11153a99
mov ax, cx
mov esi, 0x18
xor dx, dx
div si
movzx eax, ax
mov edx, 0xffe8
add cx, dx
dec eax
jne 0x11153a87
mov word [ebp - 0x1d0], cx
push 0x64
lea eax, [ebp - 0xd8]
push eax
push 0x1003
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x11153ad7
jmp 0x11153ac0
movzx ecx, word [eax + str.HH:MM:SS]
mov word [ebp + eax - 0xd8], cx
add eax, 2
test cx, cx
jne 0x11153ac0
push 0x78
lea ecx, [ebp - 0x1c8]
push ecx
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x1d8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov dword [ebp - 0x1e8], 0
mov edx, dword [ebp - 0x1e4]
lea ecx, [ebp - 0x1c8]
push ecx
push edi
push edx
mov dword [ebp - 4], 1
call fcn.111be4c0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x1e8], esi
call fcn.111bbe50
test eax, eax
je 0x11153b3b
push str.RTL_n
jmp 0x11153b40
push str.not_RTL_n
call fcn.111bd7b0
mov ecx, dword [ebp - 0x1dc]
add esp, 4
push esi
call fcn.1113ccd0
cmp edi, 1
mov edi, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], 1
jle 0x11153b8a
push 0x112232cc
mov ecx, edi
call fcn.1113dca0
push 0x485
call fcn.111bccb0
add esp, 4
push eax
mov ecx, edi
call fcn.1113dca0
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
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.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x11153eb0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [esi]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], edx
mov edx, dword [eax + 0xc0]
push edi
mov ecx, esi
call edx
test eax, eax
je 0x11153fed
mov eax, dword [esi]
mov edx, dword [eax + 0x120]
mov ecx, esi
call edx
mov edi, eax
test edi, edi
je 0x11153f6a
cmp dword [ebp + 0x20], 0
je 0x11153f85
push edi
mov dword [ebp - 0x94], 0x40
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea edx, [ebp - 0x84]
push str.SYSTEM
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x11153f63
push edi
call fcn.11107440
add esp, 4
test eax, eax
je 0x11153f85
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 0
je 0x11153fed
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x20
mov esi, dword [ebp + 0x1c]
push esi
push ebx
push str.ExecAsUser__s___wait_d..._n
call fcn.111bd7b0
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x88]
push edx
push eax
push esi
push ecx
push ebx
push edi
call fcn.110f0000
add esp, 0x2c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str....ret__d_n
call fcn.111bd7b0
add esp, 8
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x20
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x88]
push eax
push ecx
push edx
push ebx
mov ecx, esi
call fcn.11151aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x20
Function at 0x11156df0
Capabilities:
Check for time delay via gettickcount
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e7ddb
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x11279148]
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 esi, ecx
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x594], 0
mov ebx, dword [ebp + 8]
jne 0x11156fdf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xa24], eax
push str.prnport.vbs
lea eax, [ebp - 0xa20]
push eax
mov ecx, esi
call fcn.1114c1b0
cmp dword [0x1127aa48], 0xd0003
mov dword [ebp - 4], 0
jle 0x11156f3b
mov edx, dword [ebp - 0xa20]
mov eax, dword [edx]
lea ecx, [ebp - 0xa20]
call eax
test al, al
jne 0x11156e94
push 0x263
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
cmp dword [ebp - 0xa18], 0
je 0x11156f3b
mov edx, dword [ebp - 0xa20]
mov eax, dword [edx]
lea ecx, [ebp - 0xa20]
call eax
test al, al
jne 0x11156ecc
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0xa14]
push ebx
push ecx
lea edx, [ebp - 0xa10]
push str._cscript.exe___s__d__r__s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea eax, [ebp - 0xa68]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0x1c
lea edx, [ebp - 0xa68]
push edx
push 1
push eax
xor ecx, ecx
push 0x4008000
push ecx
push ecx
push ecx
mov word [ebp - 0xa38], cx
lea ecx, [ebp - 0xa10]
push ecx
mov ecx, esi
mov dword [ebp - 0xa68], 0x44
mov dword [ebp - 0xa3c], 1
call fcn.11151aa0
jmp 0x11156fad
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SYSTEMCurrentControlSetControlPrintMonitorsStandard_TCP_IP_PortPorts_]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x11156f40
mov eax, ebx
mov edx, ebx
jmp 0x11156f60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11156f60
lea edi, [ebp - 0x210]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11156f76
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x210]
mov ecx, eax
push edx
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x11156fad
call fcn.11149f50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xa24]
cmp eax, 0x64
jb 0x11156fcd
push eax
push ebx
push str.DeletePrinterPort__s__took__d_ms_n
call fcn.111bd7b0
add esp, 0xc
lea ecx, [ebp - 0xa20]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
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.111d9022
mov esp, ebp
pop ebp
ret 8
Function at 0x111572f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e7e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x11279148]
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]
push edi
push str.DeletePrinter___s__..._n
mov esi, ecx
call fcn.111bd7b0
mov eax, dword [esi + 0x24]
add esp, 8
cmp dword [eax + 0x594], 0
jne 0x11157517
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11157346
sub eax, edx
sar eax, 1
je 0x11157517
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x814], eax
push str.prnmngr.vbs
lea eax, [ebp - 0x834]
push eax
mov ecx, esi
call fcn.1114c1b0
cmp dword [0x1127aa48], 0xd0003
mov dword [ebp - 4], 0
jle 0x11157467
mov edx, dword [ebp - 0x834]
mov eax, dword [edx]
lea ecx, [ebp - 0x834]
call eax
test al, al
jne 0x111573be
push 0x263
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
cmp dword [ebp - 0x82c], 0
je 0x11157467
push edi
lea ecx, [ebp - 0x834]
call fcn.1104dac0
push eax
lea ecx, [ebp - 0x810]
push str._cscript.exe___s__d___p___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [ebp - 0x878]
push 0
push edx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
xor eax, eax
cmp dword [0x1127aa48], 0x160003
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x878]
push eax
push 1
push ecx
push 0x4008000
push 0
push 0
mov dword [ebp - 0x878], 0x44
mov dword [ebp - 0x84c], 1
mov ecx, esi
push 0
jl 0x11157456
mov edx, dword [esi]
mov edx, dword [edx + 0xec]
lea eax, [ebp - 0x810]
push eax
call edx
jmp 0x111574e9
lea edx, [ebp - 0x810]
push edx
call fcn.11151aa0
jmp 0x111574e9
xor eax, eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x818]
push ecx
push edi
mov dword [ebp - 0x81c], 0xf000c
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je 0x111574cf
mov edx, dword [ebp - 0x818]
push edx
call sub.WINSPOOL.DRV_DeletePrinter
test eax, eax
jne 0x111574c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeletePrinter___failed___d__n
call fcn.111bd7b0
add esp, 8
mov eax, dword [ebp - 0x818]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x111574e9
cmp byte [ebp + 0xc], 0
jne 0x111574e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenPrinter___failed___d__n
call fcn.111bd7b0
add esp, 8
call ebx
sub eax, dword [ebp - 0x814]
cmp eax, 0x64
jb 0x11157505
push eax
push edi
push str.DeletePrinter__s__took__d_ms_n
call fcn.111bd7b0
add esp, 0xc
lea ecx, [ebp - 0x834]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
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.111d9022
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11159360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e802e
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x11279148]
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 [ecx + 0x24]
xor esi, esi
mov dword [ebp - 0x25c], eax
cmp dword [0x1127ad00], esi
jne 0x11159526
cmp byte [0x1127ad8d], 0
jne 0x11159526
call fcn.111babb0
test al, al
jne 0x11159526
push 0x104
lea ecx, [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x258]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x111593e0
mov edx, dword [str._ntdll.dll]
mov ecx, dword [0x1122fa20]
mov dword [eax], edx
mov edx, dword [0x1122fa24]
mov dword [eax + 4], ecx
mov ecx, dword [0x1122fa28]
mov dword [eax + 8], edx
mov edx, dword [0x1122fa2c]
mov dword [eax + 0xc], ecx
mov cx, word [0x1122fa30]
mov dword [eax + 0x10], edx
push 0x24
mov word [eax + 0x14], cx
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x11159443
mov ecx, eax
call fcn.110355c0
mov esi, eax
push 1
lea edx, [ebp - 0x258]
push edx
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.110355d0
push str..text
mov ecx, esi
call fcn.11035560
test eax, eax
je 0x11159512
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
lea eax, [ebp - 0x26c]
push eax
call fcn.11144330
add esp, 4
push str.NSL_MSCKK
push ebx
push 0
push 0x40
lea ecx, [ebp - 0x26c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 0x25c]
mov dword [edx + 0xcb4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0xcb4]
push 0
push 0
push 0
push 0x22
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x25c]
mov dword [edx + 0xcb8], eax
test eax, eax
je 0x11159512
push ebx
push edi
push eax
call sub.MSVCR100.dll_memcpy
lea eax, [ebp - 0x50]
push eax
call fcn.11035580
add esp, 0x10
push 0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call fcn.11035960
test eax, eax
je 0x11159512
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0xcb8]
add edx, eax
mov dword [ecx + 0xcb0], edx
test esi, esi
je 0x11159526
mov ecx, esi
call fcn.11035470
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
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.111d9022
mov esp, ebp
pop ebp
ret