joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004c00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
call fcn.10003d50
cmp eax, 0x97
jne 0x10004c56
lea eax, [esp]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str._origTTL
push str.Softwareprojonepodlp_smpcache_
push 0x80000002
mov dword [esp + 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10004c56
cmp dword [esp + 4], 4
jne 0x10004c56
mov eax, dword [esp + 8]
test eax, eax
je 0x10004c56
push eax
call fcn.10003ec0
add esp, 4
add esp, 0xc
ret

Function at 0x10004c60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1002e108
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1003a330]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x1003a330]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea edi, [esp + 0xc]
call fcn.10015412
mov edi, 0x10
mov dword [esp + 0x50], 0
cmp dword [eax + 0x18], edi
jb 0x10004cb0
mov eax, dword [eax + 4]
jmp 0x10004cb3
add eax, 4
push eax
push str.http:___s_page_device_register.html
lea esi, [esp + 0x30]
call fcn.10006702
add esp, 8
cmp dword [esp + 0x24], edi
jb 0x10004cd8
mov eax, dword [esp + 0x10]
push eax
call fcn.10017afe
add esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], edi
jae 0x10004ce6
lea eax, [esp + 0x2c]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [esp + 0x40], edi
jb 0x10004d0d
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10017afe
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1001778d
add esp, 0x48
ret 0x10
Function at 0x100060d2
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x1003a330]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.1000644c
push esi
test eax, eax
je 0x1000615f
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10019ce0
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x10006156
cmp esi, 0xffffffff
je 0x10006156
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x10006152
push edi
lea eax, [esp + 0xc]
push eax
call fcn.1000644c
test eax, eax
je 0x10006156
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10006138
lea eax, [esp + 4]
call fcn.10005a8a
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.1001778d
mov esp, ebp
pop ebp
ret 4

Function at 0x10006174
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x1003a330]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, fcn.100063fa
test eax, eax
je 0x100061fb
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
je 0x100061f2
cmp esi, 0xffffffff
je 0x100061f2
push 0x228
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x7c], 0x22c
call fcn.10019ce0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x100061ee
push edi
lea eax, [ebp - 0x7c]
push eax
call fcn.100063fa
test eax, eax
je 0x100061f2
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100061d6
lea eax, [ebp - 0x80]
call fcn.10005a8a
pop esi
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
call fcn.1001778d
add ebp, 0x1b4
leave
ret
Function at 0x100062eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x10006304
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.10006210
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.10006174
cmp dword [ebp - 0x14], esi
je 0x100062fb
push dword [ebp - 0x18]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x1000633a
cmp eax, 0xffffffff
jne 0x10006346
lea eax, [ebp - 0x10]
call fcn.10005a8a
mov eax, esi
jmp 0x100062fd
lea ecx, [ebp - 8]
push ecx
push 0xf01ff
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000633a
push esi
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100063f0
mov edi, dword [ebp + 8]
call fcn.10005d0a
push 0x40
mov dword [ebp + 8], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0x6c], 0x44
call fcn.10019ce0
add esp, 0xc
push 5
pop eax
mov word [ebp - 0x3c], ax
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x40], 1
push 0x420
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x100063df
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
call ebx
push dword [ebp + 8]
call fcn.10005d37
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 8]
call ebx
jmp 0x1000633a
Function at 0x10006889
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002de55
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.10029300
mov eax, dword [0x1003a330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2028], eax
mov dword [ebp - 0x202c], edi
call fcn.10006ba7
xor ebx, ebx
inc ebx
lea esi, [ebp - 0x2024]
mov dword [ebp - 0x202c], ebx
call fcn.10005aa0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x2020], edi
je 0x100069a1
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.10019ce0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x1000698b
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
lea ecx, [ebp - 0x2048]
call fcn.10004d60
lea eax, [ebp - 0x2048]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2028]
push eax
call fcn.10006bf2
lea esi, [ebp - 0x2048]
mov byte [ebp - 4], 1
call fcn.10001b50
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x2020]
mov dword [ebp - 0x201c], 0x1000
call ebx
test eax, eax
je 0x10006937
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x2020], edi
je 0x100069bf
push dword [ebp - 0x2020]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001778d
leave
ret

Function at 0x10015472
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x1003a330]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.10019ce0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Logsignored
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
mov ecx, esi
call fcn.10004d60
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.1001778d
add ebp, 0x190
leave
ret
Function at 0x10015aba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1003a330]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10019ce0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebp + 8], 1
jne 0x10015b11
push str.projonepodlp
jmp 0x10015b1c
cmp dword [ebp + 8], 2
jne 0x10015b43
push str.projonepotcm
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, esi
je 0x10015b3b
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
jmp 0x10015b48
mov eax, 0x100328d0
mov ecx, edi
call fcn.10004d60
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.1001778d
leave
ret

Function at 0x10016e94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
shl eax, 4
pop edx
mov esi, ecx
lea edi, [eax + ecx + 0x3c]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, edi
mov bl, byte [ecx]
xor byte [esi + eax], bl
inc eax
add ecx, edx
cmp eax, edx
jl 0x10016eae
inc edi
add esi, edx
dec dword [ebp - 4]
jne 0x10016eaa
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10016fc9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003a330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
lea esi, [ebp - 8]
lea ecx, [eax + 4]
pop edi
mov al, byte [esi - 0xc]
mov dl, byte [esi - 8]
call fcn.1001718f
mov bl, al
mov al, dl
call fcn.1001718f
xor bl, al
xor bl, byte [esi - 4]
mov al, dl
xor bl, byte [esi]
xor bl, dl
mov byte [ecx - 4], bl
call fcn.1001718f
mov bl, al
mov al, byte [esi - 4]
call fcn.1001718f
xor bl, al
xor bl, byte [esi - 0xc]
mov al, byte [esi - 4]
xor bl, byte [esi]
xor bl, al
mov byte [ecx], bl
call fcn.1001718f
mov bl, al
mov al, byte [esi]
call fcn.1001718f
xor bl, al
mov al, byte [esi]
xor bl, dl
xor bl, byte [esi - 0xc]
xor bl, al
mov byte [ecx + 4], bl
call fcn.1001718f
mov bl, al
mov al, byte [esi - 0xc]
call fcn.1001718f
xor bl, al
xor bl, dl
xor bl, byte [esi - 4]
xor bl, byte [esi - 0xc]
inc ecx
mov byte [ecx + 7], bl
inc esi
dec edi
jne 0x10016ff1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001778d
leave
ret 4
Function at 0x1001707e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003a330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
mov al, byte [edi - 4]
mov bl, byte [edi + 4]
call fcn.1001720b
push ebx
mov dl, al
call fcn.100171e4
xor dl, al
movzx eax, byte [edi + 8]
push eax
call fcn.1001719f
xor dl, al
movzx eax, byte [edi]
push eax
call fcn.100171bd
xor dl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi - 4], dl
call fcn.1001719f
push ebx
mov byte [ebp - 0x15], al
call fcn.100171bd
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi + 8]
push eax
mov byte [ebp - 0x15], cl
call fcn.100171e4
mov cl, byte [ebp - 0x15]
xor cl, al
mov al, byte [edi]
mov byte [ebp - 0x15], cl
call fcn.1001720b
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi], cl
call fcn.100171e4
mov bl, al
mov al, byte [edi + 4]
call fcn.1001720b
movzx edx, byte [edi + 8]
push edx
xor bl, al
call fcn.100171bd
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.1001719f
xor bl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi + 4], bl
call fcn.100171bd
mov bl, al
movzx eax, byte [edi + 4]
push eax
call fcn.1001719f
xor bl, al
mov al, dl
call fcn.1001720b
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.100171e4
xor bl, al
mov byte [esi + 8], bl
inc esi
inc edi
dec dword [ebp - 0x1c]
jne 0x100170aa
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001778d
leave
ret 4
Function at 0x10017546
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x1002ced4
call fcn.100183da
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0x30], ebx
xor esi, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10017567
sub eax, ecx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
call fcn.10002050
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], ebx
jbe 0x1001766b
xor ebx, ebx
inc ebx
jmp 0x10017597
mov edi, dword [ebp + 0xc]
movsx eax, byte [esi + edi]
mov al, byte [eax + 0x100334a8]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x100175ab
cmp al, 0xff
je 0x10017597
cmp al, 0xff
je 0x1001766b
movsx ecx, byte [esi + edi]
mov cl, byte [ecx + 0x100334a8]
inc esi
mov byte [ebp - 0x32], cl
cmp esi, dword [ebp - 0x30]
jae 0x100175cb
cmp cl, 0xff
je 0x100175b3
cmp cl, 0xff
je 0x1001766b
sar cl, 4
shl al, 2
and cl, 3
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.1000700b
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x1001766b
movsx eax, al
mov al, byte [eax + 0x100334a8]
mov byte [ebp - 0x31], al
cmp esi, dword [ebp - 0x30]
jae 0x1001760b
cmp al, 0xff
je 0x100175eb
cmp al, 0xff
je 0x1001766b
mov cl, al
mov al, byte [ebp - 0x32]
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.1000700b
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x1001766b
movsx eax, al
mov cl, byte [eax + 0x100334a8]
cmp esi, dword [ebp - 0x30]
jae 0x10017649
cmp cl, 0xff
je 0x1001762b
cmp cl, 0xff
je 0x1001766b
mov al, byte [ebp - 0x31]
shl al, 6
or al, cl
movzx eax, al
push eax
lea edi, [ebp - 0x2c]
call fcn.1000700b
cmp esi, dword [ebp - 0x30]
jb 0x10017594
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.10001af0
lea ecx, [ebp - 0x2c]
call fcn.10001b20
mov eax, dword [ebp - 0x38]
call fcn.1001845d
ret

Function at 0x1001778d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003a330]
jne 0x10017797
repz ret
jmp fcn.10019ad3
Function at 0x10022905
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10019dcc
and dword [ebp - 4], 0
cmp dword [0x1003ce8c], 0
mov ebx, eax
jne 0x100229b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10022a67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10022a67
push eax
call fcn.10019d5a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003ce8c], eax
call esi
push eax
call fcn.10019d5a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003ce90], eax
call esi
push eax
call fcn.10019d5a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1003ce94], eax
call esi
push eax
call fcn.10019d5a
pop ecx
mov dword [0x1003ce9c], eax
test eax, eax
je 0x100229b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10019d5a
pop ecx
mov dword [0x1003ce98], eax
mov eax, dword [0x1003ce98]
cmp eax, ebx
je 0x10022a0e
cmp dword [0x1003ce9c], ebx
je 0x10022a0e
push eax
call fcn.10019dd5
push dword [0x1003ce9c]
mov esi, eax
call fcn.10019dd5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10022a0e
test edi, edi
je 0x10022a0e
call esi
test eax, eax
je 0x10022a05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10022a05
test byte [ebp - 0xc], 1
jne 0x10022a0e
or dword [ebp + 0x10], 0x200000
jmp 0x10022a47
mov eax, dword [0x1003ce90]
cmp eax, ebx
je 0x10022a47
push eax
call fcn.10019dd5
pop ecx
test eax, eax
je 0x10022a47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10022a47
mov eax, dword [0x1003ce94]
cmp eax, ebx
je 0x10022a47
push eax
call fcn.10019dd5
pop ecx
test eax, eax
je 0x10022a47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003ce8c]
call fcn.10019dd5
pop ecx
test eax, eax
je 0x10022a67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10022a69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ae0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
mov ebx, 0x22c
push esi
mov dword [ebp - 0x230], ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401b38
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030ec
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], ebx
call edi
test eax, eax
je 0x401bb1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401b86
test dx, dx
je 0x401b82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401b86
add eax, 4
add ecx, 4
test dx, dx
jne 0x401b60
xor eax, eax
jmp 0x401b8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401ba5
lea edx, [ebp - 0x230]
push edx
push esi
mov dword [ebp - 0x230], ebx
call edi
test eax, eax
jne 0x401b53
jmp 0x401bb1
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030ec
mov esp, ebp
pop ebp
ret
Function at 0x4022e0
Capabilities:
Access the windows event log
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.UniClientService
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x402354
push str.Enter_SvcInit
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00403226
add esp, 0xc
push edi
lea edx, [ebp - 0xac]
push edx
push edi
push 2
push edi
push edi
push edi
push 4
lea ecx, [ebp - 0xa4]
push esi
mov dword [ebp - 0xac], str.UniClientService
mov dword [ebp - 0xa8], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push str.websocket.exe
push 0x4017e0
push edi
push edi
call esi
push edi
push edi
push str.XAwebsocket.exe
push 0x4017e0
push edi
push edi
call esi
push edi
push edi
push str.websocket.exe
push 0x401bd0
push edi
push edi
call esi
push edi
push edi
push str.XAwebsocket.exe
push 0x401bd0
push edi
push edi
call esi
push edi
push edi
mov ebx, 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x421280], eax
mov dword [0x421290], edi
mov dword [0x42129c], edi
mov dword [0x42128c], ebx
mov dword [0x421298], edi
push 0x421284
cmp eax, edi
jne 0x4023f2
mov eax, dword [0x42127c]
push eax
mov dword [0x421288], ebx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030ec
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x42127c]
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push ecx
mov dword [0x421288], 4
call esi
mov edx, dword [0x421280]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42127c]
push 0x421284
push eax
mov dword [0x421288], ebx
mov dword [0x421290], edi
mov dword [0x42129c], edi
mov dword [0x42128c], ebx
mov dword [0x421298], edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030ec
mov esp, ebp
pop ebp
ret

Function at 0x402460
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.UniClientService
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4024e3
cmp dword [ebp + 8], 0
jne 0x4024a6
push edi
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00403226
add esp, 0xc
mov eax, 4
jmp 0x4024ab
mov eax, 1
push 0
lea edx, [ebp - 0xac]
push edx
push 0
push 2
push 0
push 0
push 0
push eax
lea ecx, [ebp - 0xa4]
push esi
mov dword [ebp - 0xac], str.UniClientService
mov dword [ebp - 0xa8], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004030ec
mov esp, ebp
pop ebp
ret
Function at 0x4030ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f024]
jne 0x4030f6
repz ret
jmp fcn.00404952

Function at 0x412489
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407e29
and dword [ebp - 0x14], 0
cmp dword [0x421218], 0
mov dword [ebp - 0x18], eax
jne 0x41253c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4125e4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4125e4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421218], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42121c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421220], eax
call edi
push eax
call esi
mov dword [0x421228], eax
test eax, eax
je 0x41253c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x421224], eax
mov eax, dword [0x421224]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412595
cmp dword [0x421228], ecx
je 0x412595
push eax
call esi
push dword [0x421228]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412595
test ebx, ebx
je 0x412595
call edi
test eax, eax
je 0x41258c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41258c
test byte [ebp - 8], 1
jne 0x412595
or dword [ebp + 0x10], 0x200000
jmp 0x4125c8
mov eax, dword [0x42121c]
cmp eax, dword [ebp - 0x18]
je 0x4125c8
push eax
call esi
test eax, eax
je 0x4125c8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4125c8
mov eax, dword [0x421220]
cmp eax, dword [ebp - 0x18]
je 0x4125c8
push eax
call esi
test eax, eax
je 0x4125c8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421218]
call esi
test eax, eax
je 0x4125e4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4125e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030ec
leave
ret