joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441fe0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e483
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046f828
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00474fa1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004765f3
test eax, eax
je 0x4420fc
mov ecx, dword [esp + 0x3c]
call fcn.00474fce
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4420c0
push edi
mov ecx, esi
call fcn.0047258e
mov ecx, esi
call fcn.00442260
cmp dword [esp + 0x38], 1
jne 0x4420f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004726f8
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444b10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444b43
push esi
call fcn.00447c20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444b3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444bc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444bb2
mov eax, dword [esi + 8]
test eax, eax
je 0x444b67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444bae
cmp eax, 2
je 0x444bb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444b5a
cmp eax, 3
je 0x444b8d
cmp eax, 1
jne 0x444b5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444b5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444b5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444bf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444bd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444bf0
add esp, 4
pop esi
ret

Function at 0x451e60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x451ec6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x451ec6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x451ea7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x452250
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x452288
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x452f60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x452fa9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x453420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ec40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00452fd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00453050
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00453050
lea ecx, [esi + 0xc]
call fcn.0046e1b9
lea ecx, [esi + 0x10]
call fcn.0046e1b9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004545e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004545e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004545e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046e22e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046e22e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47061e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470656
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046e6d5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046e6ad
jmp 0x470662
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x471d0f
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 0x471d51
call fcn.00477dc0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471d51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471d48
xor eax, eax
jmp 0x471d59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471d5f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4782f0
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 0x47831e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47833c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478256
jmp 0x47833c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47833c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478256
test edi, edi
mov eax, edi
jne 0x478326
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10186d6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x108e558]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
xor ebx, ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x2001d
push ebx
push ebx
push ebx
push 0x10016e8
push 0x80000002
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018853
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018853
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x10016d4
push 2
push ebx
push 0x10016b4
push dword [ebp - 0x64]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018853
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x10016a4
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018853
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x1001688
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018853
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x1018853
jmp 0x10187c9
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [edi + 8]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1018846
mov esi, dword [edi + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.010185c1
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x100167c
push dword [ebp - 0x6c]
call esi
mov edi, dword [ebp - 0x68]
push dword [edi + 0xc]
call fcn.0101e1a5
pop ecx
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x1001668
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
cmp edi, ebx
mov dword [ebp - 0x68], edi
jne 0x10187c6
cmp dword [ebp - 0x64], ebx
je 0x1018861
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
je 0x101886f
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0101d2f1
leave
ret 8
Function at 0x1018abf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetControlPrint
push 0x80000002
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1018bbf
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineHostReuse
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x1018b26
cmp dword [ebp - 4], ebx
jne 0x1018b26
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x40], bl
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineHostTimeout
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1018b54
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1018b54
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x34], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineDebugLog
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1018b82
cmp dword [ebp - 4], ebx
je 0x1018b82
seta al
mov byte [0x10902d8], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.PipelineBufferSize
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
pop edi
pop esi
jne 0x1018bb1
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1018bb1
mov dword [0x108e308], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
pop ebx
jle 0x1018bcc
and eax, 0xffff
or eax, 0x80070000
leave
ret

Function at 0x1018fbe
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [fcn.01001088]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1018fcd
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1019a45
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x108e558]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01018f2c
cmp eax, esi
jne 0x1019ae6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1019a9d
lea eax, [ebp - 0x204]
push eax
call fcn.01019a45
cmp eax, esi
jne 0x1019ae5
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x1019a8d
call fcn.01018eb9
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01018eb9
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.0101d2f1
leave
ret 4
Function at 0x101c7c2
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
mov ebx, 0x2001f
push ebx
push 0
push 0x10014dc
push 0x80000000
call edi
mov esi, eax
test esi, esi
jne 0x101c829
lea eax, [ebp + 8]
push eax
push ebx
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x101c822
push 0x1001fc8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
mov esi, eax
call edi
push dword [ebp - 4]
call edi
test esi, esi
jle 0x101c837
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x102042a
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x102045b
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1020462
cmp ebx, dword [ebp + 8]
jae 0x1020462
xor eax, eax
jmp 0x1020652
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1020473
xor eax, eax
inc eax
jmp 0x1020651
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1020489
cmp ecx, edx
jae 0x10205ce
cmp dword [eax + 4], 0
je 0x1020492
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x102047a
cmp dword [ebp + 8], 0
je 0x10204b4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10205ce
cmp eax, esi
jae 0x10205ce
mov eax, dword [0x10905d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10204d9
cmp dword [esi*4 + 0x10905d8], edi
je 0x10205d2
inc esi
cmp esi, eax
jl 0x10204c7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x1001194]
test eax, eax
je 0x102064e
cmp dword [ebp - 8], 0x1000000
jne 0x102064e
test byte [ebp - 0xc], 0xcc
je 0x1020557
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x102064e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x102064e
cmp word [eax + 0x18], 0x10b
jne 0x102064e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x102064e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1020557
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1020557
test byte [ecx + 0x27], 0x80
jne 0x10205ce
push 1
push 0x1090618
call dword [0x1001288]
test eax, eax
jne 0x102046b
mov ecx, dword [0x10905d0]
test ecx, ecx
mov edx, ecx
jle 0x102058b
lea eax, [ecx*4 + 0x10905d4]
cmp dword [eax], edi
je 0x102058b
dec edx
sub eax, 4
test edx, edx
jg 0x102057f
test edx, edx
jne 0x10205bc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1020598
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10205b0
lea eax, [edx*4 + 0x10905d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x102059e
cmp ecx, 0x10
jge 0x10205bc
inc ecx
mov dword [0x10905d0], ecx
push 0
push 0x1090618
call dword [0x1001288]
jmp 0x102046b
xor eax, eax
jmp 0x1020651
test esi, esi
jle 0x102046b
mov ebx, dword [0x1001288]
push 1
push 0x1090618
call ebx
test eax, eax
jne 0x102046b
cmp dword [esi*4 + 0x10905d8], edi
je 0x1020628
mov eax, dword [0x10905d0]
lea esi, [eax - 1]
test esi, esi
jl 0x1020616
cmp dword [esi*4 + 0x10905d8], edi
je 0x1020612
dec esi
jns 0x1020606
test esi, esi
jge 0x1020626
cmp eax, 0x10
jge 0x1020621
inc eax
mov dword [0x10905d0], eax
lea esi, [eax - 1]
jmp 0x1020628
je 0x1020640
xor ecx, ecx
test esi, esi
jl 0x1020640
lea eax, [ecx*4 + 0x10905d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x102062e
push 0
push 0x1090618
call ebx
jmp 0x102046b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102a1c7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1076818
call fcn.0101eabc
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
add eax, 0xc
push 0x1004424
mov word [ebp - 0x1c], 0xd
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.01029c89
mov eax, dword [esi + 0x44]
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
add eax, 0xc
mov ecx, dword [eax]
push 0x100440c
push eax
call dword [ecx + 0x18]
mov edi, dword [fcn.010012a4]
lea eax, [ebp - 0x1c]
push eax
call edi
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
add eax, 0xc
push 0x10043f0
mov word [ebp - 0x1c], 0x4000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea eax, [ebp - 0x1c]
push eax
call edi
mov eax, dword [esi + 0x30]
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
add eax, 0xc
push 0x10043cc
mov word [ebp - 0x1c], 0x4000
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea eax, [ebp - 0x1c]
push eax
call edi
mov eax, dword [ebp + 0xc]
mov esi, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x14], eax
lea eax, [esi + 0xc]
push 0x10043b4
mov word [ebp - 0x1c], 0x13
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea eax, [ebp - 0x2c]
push eax
call dword [fcn.010012a0]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x1049360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10792cd
call fcn.0101eabc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0105d531
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
mov dword [esi], 0x100e0b0
mov dword [esi + 0xc], 0x100e094
mov dword [esi + 0x10], 0x100e084
mov dword [esi + 0x14], 0x100e074
mov dword [esi + 0x18], 0x100e064
call fcn.01046b91
push dword [ebp + 0xc]
and dword [esi + 0x2c], 0
lea ecx, [esi + 0x30]
call fcn.0103053b
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x34], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x104936b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10792cd
call fcn.0101eabc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0105d531
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
mov dword [esi], 0x100e0b0
mov dword [esi + 0xc], 0x100e094
mov dword [esi + 0x10], 0x100e084
mov dword [esi + 0x14], 0x100e074
mov dword [esi + 0x18], 0x100e064
call fcn.01046b91
push dword [ebp + 0xc]
and dword [esi + 0x2c], 0
lea ecx, [esi + 0x30]
call fcn.0103053b
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x34], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x105d3be
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x1013a20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x105d461
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov edi, 0x10139fc
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
jne 0x105d455
mov esi, str._SystemRoot_System32PrintFilterPipelineSvc.exe
push esi
call fcn.0101e1a5
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push ebx
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call edi
mov esi, eax
cmp esi, ebx
jne 0x105d455
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push 0x10139dc
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
jle 0x105d46f
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x105d49d
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
push dword [ebp + 0xc]
mov eax, dword [0x108e558]
push 0x1013b10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.01019e51
add esp, 0x10
test eax, eax
jl 0x105d506
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov eax, dword [0x1090bc8]
xor ecx, ecx
cmp eax, ecx
je 0x105d506
push ecx
lea edx, [ebp - 0xd0]
push edx
push ecx
push 1
push ecx
push dword [ebp + 8]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x105d506
call fcn.01018d79
mov ecx, dword [ebp - 4]
call fcn.0101d2f1
leave
ret 8

Function at 0x105f1f4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107bd90
call fcn.0101eabc
push ecx
push esi
push edi
mov esi, ecx
call fcn.0105e8c3
push dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [esi], 0x1013d4c
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
call fcn.0106c0f2
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4