joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10096b84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ebx, 4
mov dword [esp + 0xc], esi
mov dword [esi], 0x1009d1e8
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x18], 1
mov dword [esi + 0x20], edi
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x18], 2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x18], 3
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], edi
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [esp + 0x18], bl
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], ebx
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov byte [esp + 0x18], 9
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [esp + 0x10]
add eax, 0x10
mov dword [esi + 0xb0], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000f540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10096fad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x1009d1e4
mov dword [esi + 4], edi
mov dword [esp + 8], esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov byte [esp + 0x14], 1
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x14], 2
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [esp + 0x14], 3
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x14], 4
mov dword [esi + 0x38], 3
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x3c], eax
mov byte [esp + 0x14], 5
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x18], 6
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call fcn.1000f160
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x10011520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10011539
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1001154d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1001156e
cmp esi, eax
jae 0x10011547
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10011560
cmp esi, eax
jae 0x10011547
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10013cb0
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10097240
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jl 0x10013d42
mov dword [esp + 8], ebx
lea eax, [esp + 8]
push eax
push 0x100a8f0c
push 1
push ebx
push 0x100a8f8c
mov dword [esp + 0x40], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x10013d2c
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x38]
push ecx
push 0x100a8f7c
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
mov eax, dword [esp + 0x34]
je 0x10013d57
cmp eax, ebx
mov byte [esp + 0x2c], bl
je 0x10013d2c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x10013d42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x10013e12
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push 0x100a8bcc
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x10013de8
mov eax, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x20]
push edx
push str.FriendlyName
mov word [esp + 0x28], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x10013dde
cmp esi, edi
jne 0x10013dd3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebp
push 0x100a8efc
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x10013d83
pop ebp
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov byte [esp + 0x30], bl
pop esi
je 0x10013e25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x10013e3b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x10015fd0
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
lea esi, [edi + 0x70]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
je 0x10016026
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
mov ecx, edi
call fcn.10015df0
test esi, esi
je 0x10016026
mov eax, dword [esi]
test eax, eax
mov dword [esi], 0
je 0x10016026
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 0x1009ca80
push 4
push 0
push 0x100a8b8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esi]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x100160b4
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], 2
call dword [ecx + 0xac]
mov eax, dword [esi]
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [edx + 0xbc]
mov eax, dword [esi]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xc4]
mov esi, dword [esi]
mov edx, dword [esi]
push 0xffffffffffffffff
push esi
call dword [edx + 0xf0]
jmp 0x10016092
push 0
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.10015d00
mov ecx, edi
call fcn.10015d80
mov eax, dword [edi + 0x78]
push eax
mov ecx, edi
call fcn.10015e60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100172a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push edi
mov dword [ebp - 0x1c0], ecx
je 0x100172d2
jne 0x100172d2
call 0x10f1b89d
add byte [eax], al
add byte [ecx + 0x1009e1bc], ah
mov dword [ebp - 0x10], 0
mov eax, dword [0x1009e1bc]
mov dword [ebp - 0x18], eax
mov cl, byte [0x1009e1c0]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10017180
je 0x10017303
jne 0x10017303
call 0x558e7371
call 0x1c4efe5c
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10016a90
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x1001739b
mov dword [ebp - 0x144], 0
lea ecx, [ebp - 0x144]
push ecx
push 0xa
lea edx, [ebp - 0x18]
push edx
call fcn.10016870
mov ecx, dword [ebp + 0xc]
call fcn.10009240
sub eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp - 0x144]
push eax
lea ecx, [ebp - 0x180]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.100171f0
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10017180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.10002280
mov ecx, dword [str._SystemRoot__]
mov dword [ebp - 0x34], ecx
mov edx, dword [0x1009e1b0]
mov dword [ebp - 0x30], edx
mov eax, dword [0x1009e1b4]
mov dword [ebp - 0x2c], eax
mov cx, word [0x1009e1b8]
mov word [ebp - 0x28], cx
push 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10016a90
mov dword [ebp - 0x140], eax
mov byte [ebp - 0x13c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x13b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x1009e1a8
push 0x104
lea ecx, [ebp - 0x13c]
push ecx
call fcn.10016a70
cmp dword [ebp - 0x140], 0
jb 0x1001745b
cmp dword [ebp - 0x140], 0xffffffff
jae 0x1001745b
mov dword [ebp - 0x148], 0
lea edx, [ebp - 0x148]
push edx
push 0x20
lea eax, [ebp - 0x34]
push eax
call fcn.10016870
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x148]
push edx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.100171c0
mov eax, dword [str.system32_]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x1009e1a0]
mov dword [ebp - 0x20], ecx
mov dx, word [0x1009e1a4]
mov word [ebp - 0x1c], dx
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10016a90
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x100174dd
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x164]
call fcn.10002f90
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x164]
call fcn.100171a0
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10017180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.10002280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x10019450
Capabilities:
Get graphical window text

Disassembly:
push 4
push esi
call fcn.10019380
add esp, 8
test eax, eax
jne 0x1001946e
push 5
push esi
call fcn.10019380
add esp, 8
test eax, eax
je 0x10019482
lea ecx, [edi - 1]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov byte [ebx + edi - 1], 0
xor eax, eax
ret
or eax, 0xffffffff
ret

Function at 0x10019490
Capabilities:
Get graphical window text

Disassembly:
push 4
push edi
call fcn.10019380
add esp, 8
test eax, eax
jne 0x100194ae
push 5
push edi
call fcn.10019380
add esp, 8
test eax, eax
je 0x100194df
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x100194df
lea ecx, [ebx - 1]
push ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push str.remote_phoneNum:__s
push 2
mov byte [esi + ebx - 1], 0
call fcn.1006ac00
add esp, 0xc
xor eax, eax
ret
or eax, 0xffffffff
ret

Function at 0x1001a1b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100976b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.1001a120
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.10001a10
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1001a242
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10024a80
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov esi, ecx
push 0
push esi
call edi
test eax, eax
jne 0x10024ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10024be9
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push esi
call edi
test eax, eax
je 0x10024be9
mov eax, dword [esi]
lea ebx, [esi + 4]
push ebx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10024be9
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push ecx
push str.Tm9Bc3Nob2xl
stosb byte es:[edi], al
call fcn.1003a410
xor eax, eax
mov byte [esp + 0x80], 0
mov ecx, 0x18
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
xor eax, eax
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x78], cl
inc eax
test cl, cl
jne 0x10024b33
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024b47
sub eax, edx
push 0
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10024be9
mov ecx, dword [ebx]
mov edx, dword [esi]
lea ebp, [esi + 8]
push ebp
push 0
push ecx
push 0x6601
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10024be9
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push str.UHVid2luMDg
call fcn.1003a410
xor eax, eax
mov byte [esp + 0xe8], 0
mov ecx, 0x18
lea edi, [esp + 0xe9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
xor eax, eax
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0xe0], cl
inc eax
test cl, cl
jne 0x10024bc3
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0xe4]
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10024c00
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x10024c0a
ret 0x10
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
dec ecx
push ecx
push edi
push esi
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10024c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Encrypt_Error:_d
push 4
call fcn.1006ac00
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push eax
push esi
mov byte [esi + edx], 0
call fcn.1003a100
add esp, 8
pop edi
mov eax, 1
pop esi
ret 0x10
Function at 0x10024f20
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
jne 0x10024f3b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10024f5d
push 0
push 0x10000000
push 0
push 0
push 0
push str.F375AF67_33ED_4ba2_928E_B9DB633AA79C
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x10024f76
push 0x100
push 0
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [esi + 8], eax
mov ecx, dword [esi + 0xc]
push 0
push 0
lea eax, [esi + 0x10]
push eax
push 0x10024e10
push 0
push 0
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
call fcn.10024cf0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
Function at 0x100290a0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push edi
lea eax, [esp + 8]
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x100290fc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
test esi, esi
jne 0x100290f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.105:_d
push 4
call fcn.1006ac00
add esp, 0xc
pop edi
mov eax, esi
pop esi
add esp, 0x140
ret
mov eax, edi
pop edi
pop esi
add esp, 0x140
ret

Function at 0x10029110
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10029158
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002914c
xor eax, eax
pop esi
add esp, 0x140
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
add esp, 0x140
ret

Function at 0x10029360
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
je 0x10029373
jne 0x10029373
call 0x1f0492df
add byte [ebx - 0x74aff3bb], cl
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.dll_OpenServiceA
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100293ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.113:_d
push 4
call fcn.1006ac00
add esp, 0xc
xor eax, eax
jmp 0x10029431
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x100293e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x100293e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x100293e1
mov dword [ebp - 0xc], 0
jmp 0x100293e8
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002940a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.114:_d
push 4
call fcn.1006ac00
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x10029421
jne 0x10029421
call 0x100a1834
add byte [eax], al
je 0x1002942e
jne 0x1002942e
jmp 0x9bfad9bd
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10029c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10097cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
test eax, eax
push edi
je 0x10029d86
cmp dword [ebp + 0x10], 1
jl 0x10029d86
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push 0x104
push eax
call fcn.10028f80
add esp, 8
test eax, eax
je 0x10029d70
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x22c], esi
je 0x10029cd7
lea eax, [esp + 0xc]
push eax
call fcn.100380a0
add esp, 4
push 0x1009e1a8
jmp 0x10029d0f
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [esp + 0x14]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.10002fd0
push str.drivers_
lea ecx, [esp + 0x10]
call fcn.100033b0
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x10]
call fcn.100033b0
mov eax, dword [ebp + 0x10]
cmp eax, 0x7fffffff
ja 0x10029d42
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
push ecx
push eax
push edx
call fcn.10005670
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov esi, 1
mov dword [esp + 0x22c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10029d70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x224]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100316a0
Capabilities:
Create service
Modify service

Disassembly:
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1003177b
mov ebx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 3
push 1
push 0xf01ff
push str.NetGroup_Packet_Filter_Driver
push 0x1009f764
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x10031768
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x431
jne 0x10031760
push 0xf01ff
push 0x1009f764
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1003175e
push str.NetGroup_Packet_Filter_Driver
push 0
push 0
push 0
push 0
push 0
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x10031768
call ebp
push eax
push str.ChangeServiceConfig:__d
push 4
call fcn.1006ac00
add esp, 0xc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x10031757
push esi
call edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
call ebp
push eax
push str.OpenService_Npf:__d
jmp 0x1003173d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_Npf:__d
push 4
call fcn.1006ac00
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret