joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59a480
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x59a522
cmp dword [ebx + 0xac], 0
jne 0x59a51c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x59a3c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x59a51c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x59a4e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x59a51c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.00495224
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x59a4f1
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x59a864
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x65ac10]
cmp dword [eax + 0x190], 0
je 0x59a9cd
test bl, bl
jne 0x59a920
cmp dword [esi + 0xb4], 0
jne 0x59a915
mov eax, esi
call fcn.0059da68
push eax
push 0x59a764
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x59a8e6
mov eax, dword [0x65ac10]
cmp byte [eax + 0xeb], 0
je 0x59a8e6
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x59a8c7
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x59a8e6
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x59a8cf
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x59a915
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00495224
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x59a8f5
inc dword [esi + 0xb4]
jmp 0x59a9cd
cmp dword [esi + 0xb4], 0
jle 0x59a9cd
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x59a9cd
cmp dword [esi + 0x58], 0
je 0x59a982
mov eax, dword [0x65ac10]
cmp byte [eax + 0xeb], 0
je 0x59a982
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x59a963
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x59a982
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x59a96b
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x59a9b1
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00495224
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x59a991
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x58aca0]
call fcn.0040cc14
pop edi
pop esi
pop ebx
ret
Function at 0x59b788
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x59b7e5
cmp byte [ebx + 0xeb], 0
jne 0x59b7e5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409ff0
mov eax, dword [esi]
test eax, eax
je 0x59b7d2
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x59b7f2
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a248
jmp 0x59b7f2
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a248
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x59d2f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x59d361
mov eax, esi
call fcn.0050d57c
test al, al
je 0x59d361
mov eax, dword [ebx + 0x98]
call fcn.0050d114
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x59d361
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x160]
test al, al
je 0x59d352
push 0
mov eax, dword [ebx + 0x98]
call fcn.0050d114
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00503718
jmp 0x59d361
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.0059d0fc
pop esi
pop ebx
ret
Function at 0x5ada9c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
xor ecx, ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x5adc2a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5adc03
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x222], 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x105
lea eax, [ebp - 0x222]
push eax
lea eax, [ebp - 0x228]
mov dx, word [ebp - 2]
call fcn.0040a884
lea eax, [ebp - 0x228]
mov edx, 0x5adc44
call fcn.0040aa70
mov eax, dword [ebp - 0x228]
call fcn.0040a864
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x5adb64
lea eax, [ebp - 0x222]
call fcn.0040a350
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x222]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.00409ff0
jmp 0x5adb6c
mov eax, dword [ebp - 8]
call fcn.00409e58
cmp word [ebp - 2], 0x61
jae 0x5adb93
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0042205c
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 8]
call fcn.0040a248
jmp 0x5adbb1
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00422088
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a248
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 0x11
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x5adc58
call fcn.00423f40
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.0040a248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5adc0a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
pop eax
jmp eax

Function at 0x5f71c4
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov eax, ebx
call fcn.00409e58
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x5f71f5
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.00409ff0
add esp, 0x24
pop ebx
ret

Function at 0x60ba50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x60ba63
add esp, 0xfffffff0
call fcn.004086c0
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x60bade
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.004081a8
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x18], 0
lea edx, [ebp - 4]
mov eax, esi
call fcn.0060bcb0
mov edx, dword [ebp - 4]
lea eax, [esi + 0xc]
call fcn.0040a248
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x10]
mov edx, 0x60bb10
call fcn.0040aac8
mov ecx, esi
mov dl, 1
mov eax, dword [0x60af50]
call fcn.0060c31c
mov dword [esi + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60bae5
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax
Function at 0x60c474
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x60c47c
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x60c633
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x60c64c
call fcn.0040aac8
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0x1c]
xor edx, edx
call fcn.0060a344
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x60c660
call fcn.005b80c8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x60c4f7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x60c538
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0xc]
xor edx, edx
call fcn.0060a344
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x60c6c8
call fcn.005b80c8
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040aa70
mov eax, esi
mov edx, 0x60c6f4
call fcn.0040aa70
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x60c550
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x60c5be
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x60c708
call fcn.005b80c8
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040aa70
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x60c587
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x60c5b2
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x60c738
call fcn.005b80c8
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040aa70
mov eax, esi
mov edx, 0x60c6f4
call fcn.0040aa70
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x60c5ca
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x60c5f5
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x60c764
call fcn.005b80c8
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040aa70
mov eax, esi
mov edx, 0x60c6f4
call fcn.0040aa70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c63a
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00409eb8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00409eb8
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax
Function at 0x639c5c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda8
xor edx, edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409f4c
xor eax, eax
push ebp
push 0x639dea
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.00638b98
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x23c], 0x22c
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x10]
call fcn.00638bb8
mov dword [ebp - 0xc], eax
jmp 0x639daf
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040a918
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0042383c
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.00421dc8
mov eax, dword [ebp - 0x240]
push eax
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 4]
call fcn.00421dc8
mov edx, dword [ebp - 0x24c]
pop eax
call fcn.0040ac00
je 0x639d83
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040a918
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x250]
call fcn.00421dc8
mov eax, dword [ebp - 0x250]
push eax
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 4]
call fcn.00421dc8
mov edx, dword [ebp - 0x258]
pop eax
call fcn.0040ac00
jne 0x639d9e
push 0
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x10]
call fcn.00638bd8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x639cde
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x639df1
lea eax, [ebp - 0x258]
mov edx, 7
call fcn.00409eb8
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x639df8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00409e58
xor eax, eax
push ebp
push 0x639e7c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a864
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jns 0x639e38
call fcn.00407f48
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x639e72
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040a9f0
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x639e58
call fcn.00407f48
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040a864
push eax
mov eax, dword [ebp - 4]
call fcn.0040a864
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x639e8e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x63a08c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
mov dword [ebp - 4], eax
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x63a0c8
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x208]
mov ecx, pe_nt_image_headers32
call fcn.0040a918
jmp 0x63a0d0
mov eax, dword [ebp - 4]
call fcn.00409e58
mov esp, ebp
pop ebp
ret
Function at 0x10002d60
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 0xc], dl
mov dword [ebp - 8], 1
jmp 0x10002d8e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x10002dc9
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
shl edx, 1
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
and edx, 0x80
je 0x10002dc7
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
xor ecx, 0x1b
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0xc], cl
jmp 0x10002d85
mov dword [ebp - 8], 0
jmp 0x10002ddb
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x10002e02
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x10002e00
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x10002dd2
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x10006ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10006bc4
xor eax, eax
jmp 0x10006c44
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006bdb
xor eax, eax
jmp 0x10006c44
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10006c27
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10006c27
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x10006bfe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10006c33
xor eax, eax
jmp 0x10006c44
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10006c41
xor eax, eax
jmp 0x10006c44
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10009080
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100e30c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100090b3
lea ecx, [ebp + 8]
call fcn.1000bb50
nop
jmp 0x10009120
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.1000b9d0
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100090e9
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.1000bb50
nop
jmp 0x10009120
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.1000bb50
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008702a
mov esp, ebp
pop ebp
ret

Function at 0x10009130
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b091e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100e30c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
push 4
mov ecx, dword [ebp + 8]
call fcn.100075e0
mov ecx, dword [ebp + 8]
call fcn.1000b7f0
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x10009227
mov dword [ebp - 0x24], 0
jmp 0x100091b9
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x14]
jae 0x100091eb
imul edx, dword [ebp - 0x24], 0xc
mov eax, dword [ebp - 0x1c]
cmp dword [eax + edx + 8], 0
jne 0x100091e9
imul ecx, dword [ebp - 0x24], 0xc
add ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x100091eb
jmp 0x100091b0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 5
mov edx, dword [ebp - 0x34]
push edx
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x10009227
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000b710
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008702a
mov esp, ebp
pop ebp
ret
Function at 0x10009250
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0960
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100e30c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1000938b
push 4
lea ecx, [ebp - 0x220]
call fcn.100075e0
lea eax, [ebp - 0x220]
push eax
call fcn.10009130
add esp, 4
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.1008b830
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 4
lea ecx, [ebp - 0x21c]
call fcn.100075e0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.1000b750
nop
lea ecx, [ebp - 0x220]
call fcn.1000b840
movzx edx, al
test edx, edx
jne 0x1000936d
lea ecx, [ebp - 0x21c]
call fcn.1000b840
movzx eax, al
test eax, eax
jne 0x1000936d
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.1000b6b0
add esp, 8
movzx eax, al
test eax, eax
je 0x1000936d
mov byte [ebp - 0x225], 1
lea ecx, [ebp - 0x21c]
call fcn.1000b730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.1000b730
mov al, byte [ebp - 0x225]
jmp 0x1000938d
lea ecx, [ebp - 0x21c]
call fcn.1000b730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.1000b730
nop
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008702a
mov esp, ebp
pop ebp
ret
Function at 0x100098c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0a3d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100e30c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.100068f0
movzx eax, al
test eax, eax
je 0x1000993f
push 0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
call fcn.10005be0
push eax
mov ecx, esi
call fcn.1000bbd0
call fcn.10021780
add esp, 0x1c
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x14], esp
lea ecx, [ebp + 8]
call fcn.10005be0
push eax
mov ecx, esi
call fcn.1000bbd0
call fcn.10021780
add esp, 0x1c
jmp 0x10009978
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.10005be0
push eax
push 0x100cfbf8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.10005be0
push eax
push 0x100cfc14
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000b730
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000b9d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10009a70
xor al, al
jmp 0x10009a7e
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x10009a7c
mov al, 1
jmp 0x10009a7e
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10009c20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x100e30c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10009c57
mov byte [ebp - 0x24a], 1
lea ecx, [ebp + 8]
call fcn.1000bb50
mov al, byte [ebp - 0x24a]
jmp 0x10009d16
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.1008b830
add esp, 0xc
mov dword [ebp - 0x250], 0
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x248], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.1008b830
add esp, 0xc
mov dword [ebp - 0x23c], str.runas
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x22c], 1
lea ecx, [ebp + 8]
call fcn.1000b9d0
mov dword [ebp - 0x234], eax
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10009cf5
mov byte [ebp - 0x249], 1
jmp 0x10009cfc
mov byte [ebp - 0x249], 0
mov al, byte [ebp - 0x249]
mov byte [ebp - 0x24b], al
lea ecx, [ebp + 8]
call fcn.1000bb50
mov al, byte [ebp - 0x24b]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008702a
mov esp, ebp
pop ebp
ret