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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push edi
push 8
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00404cfe
mov eax, 0xc1c
call fcn.00404c1b
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x418414
add eax, 0x3fc
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0xb0]
mov eax, 0x97
call fcn.004157fb
lea esi, [ebp - 0x3c]
mov eax, 0x98
call fcn.004157fb
lea esi, [ebp - 0x48]
mov eax, 0x99
call fcn.004157fb
lea esi, [ebp - 0x30]
mov eax, 0x9a
call fcn.004157fb
lea esi, [ebp - 0x24]
mov eax, 0x9b
call fcn.004157fb
lea eax, [ebp - 4]
push eax
push 8
push edi
lea eax, [ebp - 0xb0]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4183eb
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4183e2
mov ebx, 0xff
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.00408d73
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4183b4
test eax, eax
je 0x4183b4
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.00408d73
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4183b4
test eax, eax
je 0x4183b4
mov edi, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.00408d73
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4183b4
test eax, eax
je 0x4183b4
mov ecx, edi
call fcn.0040579a
test eax, eax
jle 0x4183b4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.00408e29
mov edi, eax
cmp edi, 1
jb 0x41836d
cmp edi, 0xffff
jbe 0x418370
push 0x15
pop edi
push 0x55
lea esi, [ebp - 0x70]
pop eax
call fcn.004157fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push edi
push eax
push ecx
add eax, 0x1fe
push eax
mov eax, esi
push eax
mov edx, 0x311
lea edi, [ecx + 0x1fe]
call fcn.0040593e
add esp, 0x14
test eax, eax
jle 0x4183b4
push edi
lea ecx, [ebp - 0x18]
call fcn.0040503f
test al, al
je 0x4183b4
inc dword [ebp - 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4182c1
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.00404c4b
cmp dword [ebp - 0x14], edi
jbe 0x41840c
mov edi, dword [ebp - 0x18]
push 0xcb
mov eax, 0x9c
call fcn.00415845
jmp 0x418414
push dword [ebp - 0x18]
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418b61
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.00404cfe
lea esi, [ebp - 0x128]
mov eax, 0xa3
call fcn.004157fb
lea esi, [ebp - 0xb8]
mov eax, 0xa5
call fcn.004157fb
lea esi, [ebp - 0x54]
mov eax, 0xa4
call fcn.004157fb
lea esi, [ebp - 0x2c]
mov eax, 0xa6
call fcn.004157fb
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, esi
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, reloc.WS2_32.dll_accept
call fcn.00408d73
cmp eax, 0xffffffff
je 0x418c20
test eax, eax
je 0x418c20
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x538]
call fcn.004188c8
add esi, 4
dec dword [ebp - 4]
jne 0x418bdf
cmp dword [ebp - 8], 0
jbe 0x418c42
mov edi, dword [ebp - 0xc]
push 0xcb
mov eax, 0xa7
call fcn.00415845
jmp 0x418c4a
push dword [ebp - 0xc]
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418d40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor bl, bl
jmp 0x418d6b
cmp byte [ebp + 0x10], 0
jne 0x418d5a
cmp bl, 0xa
je 0x418d84
movzx eax, bl
add eax, 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc bl
push 0x20
push edi
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.00409dff
test al, al
je 0x418d4f
mov al, 1
jmp 0x418d86
xor al, al
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x418e48
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [ebp + 8]
test eax, eax
je 0x418eb5
push edi
push dword [ebp + 0xc]
call fcn.0040833a
mov edi, eax
test edi, edi
je 0x418eab
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x418ea5
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0x4016a8
push eax
call fcn.004059b9
add esp, 0xc
test eax, eax
jle 0x418ea4
push dword [ebp + 8]
push esi
call fcn.0040656d
push dword [ebp + 8]
call fcn.00404c4b
pop esi
push edi
call fcn.00404c4b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
ret 0x10
Function at 0x4198cc
Capabilities:
Delete registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbe8
push esi
push edi
push 1
lea edi, [esp + 0x574]
call fcn.0041496d
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, edi
push eax
call esi
push 2
lea edi, [esp + 0x36c]
call fcn.0041496d
mov eax, edi
push eax
call esi
or dword [0x4236c8], 2
push 0
call fcn.00418e12
call fcn.00419b18
lea ecx, [esp + 0x570]
call fcn.0040a2bd
mov ecx, edi
call fcn.0040a2bd
push 3
lea edi, [esp + 0x164]
call fcn.0041496d
mov eax, edi
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [esp + 0x160]
push eax
lea eax, [esp + 0x574]
push eax
call esi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x36c]
push eax
call esi
push 7
lea edi, [esp + 0xc]
pop eax
call fcn.004157c5
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x16c]
push eax
mov eax, edi
push eax
mov edi, 0x474
lea esi, [esp + 0x78c]
call fcn.00405982
add esp, 0x14
test eax, eax
jle 0x4199b8
mov eax, esi
push eax
call fcn.0040670b
cmp dword [0x423b90], 0xffffffff
jne 0x4199c9
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419b18
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0xd0]
push eax
push 0xff220829
call fcn.00414611
push 3
lea esi, [ebp - 0x68]
pop eax
call fcn.004157fb
xor bl, bl
mov edi, reloc.WS2_32.dll_accept
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x419ba2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419b95
lea eax, [ebp - 0xd0]
push eax
lea esi, [ebp - 4]
call fcn.00408fa5
jmp 0x419b97
xor al, al
test al, al
je 0x419ba9
inc bl
cmp bl, 5
jb 0x419b49
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x419ba4
Function at 0x41bb05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [eax + 8]
xor esi, esi
test byte [eax], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
je 0x41bb29
mov edx, dword [eax + 4]
mov eax, dword [ecx + 8]
call fcn.0041a580
jmp 0x41bb31
push dword [ecx + 8]
call fcn.00409ce1
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x41bb71
call fcn.00414552
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push 0x41b8cd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x41bb69
lea eax, [ebp - 4]
push eax
call fcn.004083b8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call fcn.00404c4b
mov eax, dword [ebp - 8]
pop esi
leave
ret

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

Disassembly:
cmp word [0x423bb8], 0
push esi
push edi
mov edi, 0x423bb8
mov esi, 0x423dc0
jne 0x41bbb5
push 2
call fcn.0041496d
mov ecx, edi
call fcn.0040579a
add eax, eax
push eax
push edi
push esi
call fcn.00404c87
xor ecx, ecx
push esi
mov word [eax + 0x423dc0], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test ebx, ebx
je 0x41bbd1
or eax, 0xffffffff
mov ecx, edi
mov edx, ebx
call fcn.00404fec
push 0x404ba0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
cmp byte [esp + 0xc], 0
je 0x41bbff
cmp byte [0x423934], 1
jbe 0x41bbff
push esi
call fcn.0040a256
push esi
call fcn.004082cc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bbff
push edi
call fcn.004082cc
pop edi
pop esi
ret 4
Function at 0x41bcb8
Capabilities:
Get session user name
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
push edi
mov bl, 1
mov byte [ebp - 1], 0
jne 0x41bce8
call fcn.0040a530
mov dword [esi], eax
test eax, eax
jne 0x41bce4
xor al, al
jmp 0x41beed
mov byte [ebp - 1], 1
test byte [ebp + 0xc], 1
mov edi, WideCharToMultiByte
je 0x41bd3a
lea eax, [ebp - 0x228]
push eax
call fcn.00414918
push 0x2711
push esi
lea ecx, [ebp - 0x224]
call fcn.0040a5f1
mov bl, al
test bl, bl
je 0x41bd5d
lea eax, [ebp - 0x3c]
push eax
call fcn.00414a78
cmp word [ebp - 0x3c], 0
je 0x41bd36
push 0x2712
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040a5f1
mov bl, al
test bl, bl
je 0x41bd5d
test byte [ebp + 0xc], 2
je 0x41bd5d
lea eax, [ebp - 8]
push eax
push edi
push 0x2713
push 4
pop ebx
mov eax, esi
mov dword [ebp - 8], 0x2000809
call fcn.0040a544
mov bl, al
test byte [ebp + 0xc], 4
je 0x41bdd6
test bl, bl
je 0x41bedb
call fcn.00404d4d
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x2719
push 4
pop ebx
mov eax, esi
call fcn.0040a544
mov bl, al
test bl, bl
je 0x41bedb
call fcn.00404d75
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x271b
push 4
pop ebx
mov eax, esi
call fcn.0040a544
mov bl, al
test bl, bl
je 0x41bedb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0x271a
push 4
pop ebx
mov eax, esi
call fcn.0040a544
mov bl, al
test bl, bl
je 0x41bedb
test byte [ebp + 0xc], 8
je 0x41be30
lea esi, [ebp - 0x10]
call fcn.00410b87
mov eax, esi
push eax
mov eax, dword [ebp + 8]
push edi
push 0x271c
push 6
pop ebx
call fcn.0040a544
mov bl, al
test bl, bl
je 0x41bed8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push edi
push 0x271d
push 2
pop ebx
call fcn.0040a544
mov esi, dword [ebp + 8]
mov bl, al
test bl, bl
je 0x41bedb
test byte [ebp + 0xc], 0x10
je 0x41bebc
push 0x103
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp + 8], eax
test eax, eax
je 0x41be76
xor ecx, ecx
push 0x271e
mov word [ebp + eax*2 - 0x248], cx
push esi
lea ecx, [ebp - 0x248]
call fcn.0040a5f1
mov bl, al
mov dword [ebp + 8], 0x104
test bl, bl
je 0x41bedb
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x248]
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x41bebc
mov eax, dword [ebp + 8]
test eax, eax
je 0x41bebc
xor ecx, ecx
push 0x271f
mov word [ebp + eax*2 - 0x248], cx
push esi
lea ecx, [ebp - 0x248]
call fcn.0040a5f1
mov bl, al
test bl, bl
je 0x41bedb
test byte [ebp + 0xc], 0x20
je 0x41beeb
push 2
push esi
call fcn.0041bc04
push 0x17
push esi
call fcn.0041bc04
jmp 0x41beeb
mov esi, dword [ebp + 8]
cmp byte [ebp - 1], 1
jne 0x41beeb
push dword [esi]
call fcn.00404c4b
and dword [esi], 0
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c79f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
lea eax, [ebp - 0x424]
push eax
push 0xf6
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41c859
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x404bc8
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41c859
lea eax, [ebp - 0x21c]
push eax
call fcn.00409faa
test al, al
je 0x41c859
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 8]
call fcn.00408c24
test al, al
je 0x41c859
lea eax, [ebp - 0x21c]
push eax
push 2
pop eax
lea esi, [ebp - 0x10]
call fcn.00409e64
test al, al
je 0x41c84d
lea eax, [ebp - 0x21c]
cmp dword [ebp + 8], ebx
je 0x41c832
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push eax
push 2
call fcn.0041c596
mov bl, al
lea eax, [ebp - 0x10]
call fcn.00409f0c
lea eax, [ebp - 0x21c]
push eax
call fcn.00409faa
pop esi
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x41c861
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x47a
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x41c8e1
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00414687
mov esi, eax
cmp esi, ebx
je 0x41c8d9
sub eax, dword [0x4236dc]
push ebx
push ebx
push ebx
add eax, 0x414e34
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x41c8cb
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 1], 1
jmp 0x41c8d9
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x41c8ea
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
cmp eax, 0xffffffff
je 0x41ca61
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x30], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x41ca49
mov ecx, dword [esp + 0x30]
cmp ecx, edi
jbe 0x41ca3a
cmp ecx, dword [0x423938]
je 0x41ca3a
xor eax, eax
cmp dword [esp + 0x10], edi
jbe 0x41c978
mov edx, dword [esp + 0x14]
cmp dword [edx + eax*4], ecx
je 0x41ca3a
inc eax
cmp eax, dword [esp + 0x10]
jb 0x41c964
push ecx
call fcn.00414595
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x41ca3a
push dword [esp + 0x30]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x41ca34
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00406262
push esi
mov edi, eax
call ebx
test edi, edi
je 0x41ca32
mov eax, dword [esp + 0x24]
cmp eax, dword [0x4236d8]
jne 0x41ca2c
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, dword [0x4236d0]
jne 0x41ca2c
mov ecx, dword [edi]
push eax
mov eax, dword [0x4236cc]
mov eax, dword [eax]
call fcn.00404cbc
test eax, eax
jne 0x41ca2c
mov ecx, dword [esp + 0x10]
lea ecx, [ecx*4 + 4]
lea esi, [esp + 0x14]
call fcn.00404bd6
test al, al
je 0x41ca2c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x20]
inc dword [esp + 0x14]
inc dword [esp + 0x20]
mov dword [ecx + edx*4], eax
push dword [esp + 0x34]
call fcn.0041c861
test al, al
je 0x41ca2c
mov byte [esp + 0xf], 1
push edi
call fcn.00404c4b
xor edi, edi
push dword [esp + 0x20]
call ebx
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41c944
push dword [esp + 0x18]
call ebx
cmp dword [esp + 0x1c], edi
jne 0x41c90e
push dword [esp + 0x14]
call fcn.00404c4b
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d01c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0xa1
push ebx
push edi
je 0x41d079
push 3
pop ecx
sub eax, ecx
je 0x41d070
sub eax, ecx
je 0x41d067
sub eax, 0x15a
je 0x41d05e
sub eax, ecx
je 0x41d055
sub eax, ecx
jne 0x41d0f2
mov dword [ebp - 4], 0x209
xor bl, bl
jmp 0x41d082
mov dword [ebp - 4], 0x206
jmp 0x41d051
mov dword [ebp - 4], 0x203
jmp 0x41d051
mov dword [ebp - 4], 0xa9
jmp 0x41d080
mov dword [ebp - 4], 0xa6
jmp 0x41d080
mov dword [ebp - 4], 0xa3
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [esi + 0x16c], eax
jne 0x41d0dd
mov ecx, dword [esi + 0x168]
cmp ecx, dword [ebp + 0xc]
jne 0x41d0dd
mov ecx, edi
sub ecx, dword [esi + 0x164]
cmp ecx, 0x3e8
ja 0x41d0dd
test bl, bl
jne 0x41d0c1
push 0xffffffffffffffe6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
test al, 8
je 0x41d0da
xor eax, eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x16c], eax
mov eax, dword [ebp - 4]
jmp 0x41d0f5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x164], edi
mov dword [esi + 0x16c], eax
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 8
Function at 0x402ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareUnidocsezPDFWSLauncher
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402c0c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402c12
mov eax, 0x530640
mov edx, esi
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402c00
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret

Function at 0x4039c0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x480
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push esi
push 2
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x403a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004b913a
lea ecx, [esp + 0x14]
push ecx
call fcn.00404130
add esp, 0x10
jmp 0x403a8c
push ebp
push 0
push 0
push 0
push 0
push 0
push 0x54b838
push 1
push 2
push 0x110
push 0xf01ff
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
test ebx, ebx
jne 0x403a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea edx, [esp + 0x14]
push str.Failed_to_create_service__s__error_code___d_n
push edx
call fcn.004b913a
lea eax, [esp + 0x1c]
push eax
call fcn.00404130
add esp, 0x14
jmp 0x403a88
push edi
lea ecx, [esp + 0x10]
push str.Service__s_installed_n
push ecx
call fcn.004b913a
lea edx, [esp + 0x18]
push edx
call fcn.00404130
add esp, 0x10
push ebx
call ebp
push esi
call ebp
pop ebp
push 0x3ff
lea eax, [esp + 0x89]
push 0
push eax
mov byte [esp + 0x90], 0
call fcn.004bbbe0
push 0x104
call fcn.004b86be
add esp, 0x10
mov esi, eax
push 0x104
push esi
push 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [eax + esi], 0
cmp byte [eax + esi], 0x5c
je 0x403ae6
test eax, eax
je 0x403ae6
mov byte [eax + esi], 0
sub eax, 1
cmp byte [eax + esi], 0x5c
jne 0x403ad5
push esi
lea ecx, [esp + 0x88]
push str._scertunidocs.der
push ecx
call fcn.004b913a
lea ecx, [esp + 0x90]
call fcn.00409150
push 0x400
lea edx, [esp + 0x94]
push 0
push edx
call fcn.004bbbe0
push esi
lea eax, [esp + 0xa0]
push str._scerthost.der
push eax
call fcn.004b913a
add esp, 0x24
lea ecx, [esp + 0x84]
call fcn.004092c0
mov ecx, dword [esp + 0x484]
pop esi
pop ebx
xor ecx, esp
call fcn.004b883d
add esp, 0x480
ret
Function at 0x403b60
Capabilities:
Delete file
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x403bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004b913a
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call fcn.00404130
add esp, 4
jmp 0x403c49
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x403bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xc]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.004b913a
lea eax, [esp + 0x14]
add esp, 0xc
push eax
call fcn.00404130
add esp, 4
jmp 0x403c42
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push ebx
jne 0x403c1c
lea ecx, [esp + 0xc]
push str.Failed_to_delete_service__s_n
push ecx
call fcn.004b913a
add esp, 0xc
lea edx, [esp + 8]
push edx
jmp 0x403c33
lea eax, [esp + 0xc]
push str.Service__s_removed_n
push eax
call fcn.004b913a
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call fcn.00404130
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x54bc48
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.004b883d
mov esp, ebp
pop ebp
ret
Function at 0x403c70
Capabilities:
Stop service

Disassembly:
sub esp, 0x9c
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x403cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004b913a
lea ecx, [esp + 0x34]
push ecx
call fcn.00404130
add esp, 0x10
jmp 0x403d68
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x403d04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.004b913a
lea eax, [esp + 0x34]
push eax
call fcn.00404130
add esp, 0x10
jmp 0x403d65
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403d3f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004b883d
add esp, 0x9c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.ControlService_failed__error_code___d_n
push edx
call fcn.004b913a
lea eax, [esp + 0x34]
push eax
call fcn.00404130
add esp, 0x10
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004b883d
add esp, 0x9c
ret