joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433410
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x433460
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4334a1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4334a1.2
jmp dword [eax*4 + 0x43352c]
mov word [esp + 0x48], di
jmp 0x4334da
mov word [esp + 0x48], 2
jmp 0x4334da
mov word [esp + 0x48], 3
jmp 0x4334da
mov word [esp + 0x48], 4
jmp 0x4334da
mov word [esp + 0x48], 7
jmp 0x4334da
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x433524
cmp dword [esp + 0x70], edi
je 0x433510
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x434340
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4343a9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00432f20
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x4343b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x434442
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x434434
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43442c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4343f5
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4346b0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4346bd
xor eax, eax
pop esi
ret
push esi
call fcn.00438960
add esp, 4
test eax, eax
jne 0x4346cc
pop esi
ret
cmp eax, 1
jne 0x4346da
cmp byte [esi], 0x5c
jne 0x4346da
xor eax, eax
pop esi
ret
push esi
call fcn.00434460
add esp, 4
test eax, eax
je 0x4346ee
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret
Function at 0x435140
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x435156
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x435160
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4351b0
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.00435140
add esp, 4
cmp eax, 0xffffffff
je 0x4351ab
push eax
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
push esi
call fcn.00438960
push eax
push esi
call fcn.004393f0
add esp, 0xc
mov esi, eax
call sub.WSOCK32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x438a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x438a61
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x438abb
inc edi
cmp edi, esi
jl 0x438a55
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x438af0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x438aaa
cmp byte [eax], bl
je 0x438ac5
cmp byte [eax + 1], bl
je 0x438ace
cmp byte [eax + 2], bl
je 0x438ad8
cmp byte [eax + 3], bl
je 0x438ae4
add eax, 4
cmp eax, edi
jb 0x438a81
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x4390f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x439146
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x43912d
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43a710
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 0x43a776
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 0x43a776
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x43a757
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x43ab00
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43ab38
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 0x43b7c0
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.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x43b809
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 0x43bc80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e0e0
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.0043b830
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0043b8b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0043b8b0
lea ecx, [esi + 0xc]
call fcn.00455fee
lea ecx, [esi + 0x10]
call fcn.00455fee
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0043ce40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0043ce40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0043ce40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00456063
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00456063
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4569f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x45e624
call fcn.00448d94
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.0045c491
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x456a30
call fcn.0045c491
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 0x456a3e
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x456a4c
or eax, 0xffffffff
jmp 0x456b34
mov ecx, esi
call fcn.00456967
mov dword [ebp - 0x14], eax
call fcn.0045795e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x456a83
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x456a83
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.00457912
push dword [ebp - 0x14]
call fcn.00457443
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004566ff
cmp eax, edi
je 0x456af6
test byte [esi + 0x24], 0x10
je 0x456ac4
push 4
mov ecx, esi
pop ebx
call fcn.00456e43
test ah, 1
je 0x456abc
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00459469
cmp dword [esi + 0x1c], edi
je 0x456af6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00456e77
jmp 0x456af6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x456b0a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x456b23
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x456b23
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.004569a1
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 0x459317
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 0x459359
call fcn.0045c491
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x459359
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x459350
xor eax, eax
jmp 0x459361
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00459367
pop edi
pop esi
pop ebx
ret 4
Function at 0x45c98a
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 0x45c9b8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x45c9d6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045c8f0
jmp 0x45c9d6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45c9d6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045c8f0
test edi, edi
mov eax, edi
jne 0x45c9c0
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10039c5
Capabilities:
Listen for remote procedure calls
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.01004979
mov edi, eax
cmp edi, ebx
je 0x1006e4c
push esi
mov esi, dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpA]
push edi
push 0x1003b04
push 0xa
push 0x1003af8
call esi
test eax, eax
jne 0x1003ae3
push edi
push 0x1003af0
push 0xa
push 0x1003ae8
call esi
test eax, eax
jne 0x1003ae3
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SystemCurrentControlSetControlPrint
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003aa2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SerializeRpc
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100d3f8
lea eax, [ebp - 0xc]
push eax
push ebx
push str.CallExitProcessOnShutdown
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.MaxRpcSize
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x1003a99
mov dword [ebp - 0x10], 0x100000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x10]
push 0xa
push ebx
push ebx
push ebx
push dword [0x100d518]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
test eax, eax
jne 0x1003ae3
cmp dword [ebp - 0x14], ebx
jne 0x1006e53
push 0x8000
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
push 1
push 0x1770
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
pop esi
pop edi
pop ebx
leave
ret
xor eax, eax
jmp 0x1003ade
xor eax, eax
jmp 0x1003adf
call dword [sym.imp.RPCRT4.dll_I_RpcSsDontSerializeContext]
jmp 0x1003ac4

Function at 0x100414e
Capabilities:
Create thread

Disassembly:
push 0x18
push 0x10041a0
call fcn.01002e26
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push 0x1003dca
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x1004193
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
call fcn.01002e15
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004186
Function at 0x100463b
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1004758
call fcn.01002e26
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1004749
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004749
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x1006d42
cmp dword [ecx + 0x74], 0xe
jbe 0x1004749
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100d218], 0xffffffff
or dword [0x100d214], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100d538]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100d534]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100d21c], eax
call fcn.0100441f
cmp dword [0x100d524], edi
je 0x1006d67
call fcn.01004957
push 0x100d428
push 0x100d424
call sub.msvcrt.dll__initterm
mov eax, dword [0x100d530]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100d52c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100d420
push 0x100d418
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010043e1
mov dword [ebp - 0x1c], edi
jmp 0x1004693
cmp eax, 0x20b
jne 0x1004749
cmp dword [ecx + 0x84], 0xe
jbe 0x1004749
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100468d
push fcn.0100441f
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
jmp 0x10046e6
Function at 0x10047d4
Capabilities:
Create thread
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x100d3e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.01004427
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004924
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100481b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x100595c
push 0x1004914
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
cmp eax, esi
mov dword [0x100d20c], eax
je 0x1006cce
push 1
call fcn.0100433c
cmp eax, 1
mov dword [0x100d208], eax
jne 0x10048d5
push ebx
push edi
mov ebx, str.Spooler_exiting
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, 0x1f0003
push edi
call esi
test eax, eax
jne 0x1006ce1
push 0x10048ec
push eax
xor edi, edi
inc edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
cmp eax, esi
mov dword [0x100d200], eax
je 0x1006d10
call fcn.010039c5
cmp eax, esi
jne 0x10048e2
push edi
call fcn.0100433c
lea eax, [ebp - 8]
push eax
push esi
push dword [0x100d20c]
push 0x100425c
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10048da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.01004935
cmp eax, esi
jne 0x10048e2
push 2
call fcn.0100433c
pop edi
pop ebx
pop esi
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10048c8
push esi
push eax
push edi
call fcn.010075f9
jmp 0x10048d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
push esi
call fcn.010075f9
jmp 0x10048d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.0100433c
cmp eax, 1
mov dword [0x100d208], eax
jne 0x10048d3
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0
jmp 0x1004862
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10080fb
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100d520]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
cmp eax, ebx
je 0x1008149
cmp eax, 0x6bd
je 0x10081f3
cmp eax, ebx
jg 0x100813d
mov esi, eax
jmp 0x10081f5
and eax, 0xffff
or eax, 0x80070000
jmp 0x1008136
cmp dword [ebp - 0x18], 4
je 0x1008157
xor esi, esi
inc esi
jmp 0x10081f5
lea eax, [ebp - 0x14]
push eax
push 1
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x10081e4
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10081d2
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x10081c0
xor eax, eax
cmp dword [ebp - 0x1c], ebx
setne al
jmp 0x10081c5
call fcn.0100b917
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x10081d9
call fcn.0100b917
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10081f5
call fcn.0100b917
mov esi, eax
cmp esi, 0x800703f0
jne 0x10081f5
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01004b8f
leave
ret

Function at 0x10083e1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100842d
cmp word [eax], 0
je 0x100842d
push esi
push eax
call sub.SPOOLSS.DLL_AllocSplStr
mov esi, eax
test esi, esi
je 0x100842c
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x10083bf
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1008426
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100842c
push esi
call sub.SPOOLSS.DLL_DllFreeSplStr
pop esi
pop ebp
ret 4
Function at 0x100afd8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100d520]
and dword [ebp - 0x240], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa
pop ecx
mov esi, 0x100b0a0
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
call esi
test ebx, ebx
pop ecx
mov edi, eax
je 0x100b086
push ebx
call esi
cmp eax, edi
pop ecx
jb 0x100b086
push 0x104
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100b086
push edi
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100b062
lea eax, [ebx + edi*2]
push eax
push 0x105
lea eax, [ebp - 0x23c]
push eax
call fcn.0100af9f
jmp 0x100b074
push ebx
push 0x105
lea eax, [ebp - 0x23c]
push eax
call fcn.01009e3a
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x23c]
push eax
call sym.spoolsv.exe_YDriverUnloadComplete
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x240], eax
pop edi
pop esi
setge al
pop ebx
call fcn.01004b8f
leave
ret 4

Function at 0x100b123
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x100b150
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x100b147
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop ebp
ret 4