joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a490
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf23b
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.0048ac80
add esp, 0xc
mov dword [ebp - 0x228], 0x104
call fcn.0040a260
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x22c]
call fcn.004023d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
push 0xa
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a55d
push 0x4c83b4
mov ecx, dword [ebp + 8]
call fcn.00411290
mov ecx, dword [ebp - 0x230]
or ecx, 1
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00402470
mov eax, dword [ebp + 8]
jmp 0x40a5bd
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a58a
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411290
mov eax, dword [ebp - 0x230]
or eax, 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00402470
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret
Function at 0x40d1c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
push 0x2011f
push 0
push str.SYSTEMCurrentControlSetServicesFileLock
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d209
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.update
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push str.DoUpdate_Call_SetUpdateKey_Return_Value__d__
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004028d0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x414760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0xffffffff
je 0x41477b
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], 0
jne 0x41477f
xor eax, eax
jmp 0x4147b2
push 0x14
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.0048ac80
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4147c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
jne 0x4147d6
xor eax, eax
jmp 0x414807
push 0x14
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.0048ac80
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x425650
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x425660
xor eax, eax
jmp 0x4257fd
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4257be
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ce358]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4ce358]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4ce358]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ce358]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4ce358]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4ce358]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ce358]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4ce358]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x425669
cmp dword [ebp + 0x10], 0
je 0x4257f7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ce358]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x4257c4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x426710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x42675f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x426755
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x4267b9
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x42677f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048ec60
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4280a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x4280ba
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0xffffffff
je 0x4280c4
mov eax, 0x1000000
jmp 0x42814b
mov edx, dword [ebp - 0x10]
add edx, 0x138
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4c8d8c
mov eax, dword [ebp - 0x10]
add eax, 0x138
push eax
call fcn.0048f3bc
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x42810f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x42810f
mov eax, 0x2000000
jmp 0x42814b
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004263e0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x428135
mov eax, dword [ebp - 8]
jmp 0x42814b
mov eax, dword [ebp - 4]
push eax
call fcn.00426ba0
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [0x4f89bc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4288c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x4288e3
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4288e8
jmp 0x4289d0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
movzx edx, word [ecx]
test edx, edx
je 0x42893a
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x428920
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x428929
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x218]
add edx, 2
mov dword [ebp - 0x218], edx
jmp 0x4288f7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x42899b
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.0048f508
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
xor eax, eax
mov word [ebp + edx*2 - 0x420], ax
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004288c0
add esp, 8
mov eax, dword [ebp - 0x214]
add eax, 2
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0048f3ea
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0048f3bc
add esp, 8
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret
Function at 0x42ad80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0af4
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], ecx
call fcn.00447437
push eax
lea ecx, [ebp - 0x10]
call fcn.00411850
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0
call fcn.0048baab
add esp, 4
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], eax
push str._Y__m__d__H:_M:_S
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00431360
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x248], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x248]
push eax
lea ecx, [ebp - 0x10]
call fcn.004118e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.00402470
push str.EstConfig
lea ecx, [ebp - 0x220]
call fcn.00411290
mov byte [ebp - 4], 2
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0048ac80
add esp, 0xc
push 0xff
lea eax, [ebp - 0x21c]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call fcn.00447437
push eax
lea ecx, [ebp - 0x224]
call fcn.00411850
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x21c]
push edx
push str._s_s.ini
lea eax, [ebp - 0x224]
push eax
call fcn.004024b0
add esp, 0x10
push 0x4ceed8
lea ecx, [ebp - 0x228]
call fcn.00411290
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
push str.installTime
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, str.UPDATE
test eax, eax
jne 0x42af4a
mov dword [ebp - 0x268], 0
jmp 0x42af5d
push str.UPDATE
call fcn.0048bb5c
add esp, 4
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
push ecx
push str.UPDATE
lea ecx, [ebp - 0x228]
call fcn.00411b20
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
push eax
push 0x4cb218
push str.state
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call fcn.00402470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret
Function at 0x42b000
Capabilities:
Persist via run registry key
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0048ac80
add esp, 0xc
mov dword [ebp - 0x218], 0x208
lea edx, [ebp - 0x214]
push edx
push 1
push 0
push str.SYSTEMCurrentControlSet_servicesFilelock
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x42b15b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push str.InstPath
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x42b15b
push str.CdgUpGrade.exe
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x220]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42b15b
xor edx, edx
mov word [ebp - 0x430], dx
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.0048ac80
add esp, 0xc
mov dword [ebp - 0x224], 0x208
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0
push 0
push str.CDGUPGRADE
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42b15b
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
push str.CDGUPGRADE
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret
Function at 0x42b170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x434], ecx
mov byte [ebp - 0x409], 0
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.0048ac80
add esp, 0xc
cmp dword [ebp + 0x20], 0x10
jb 0x42b1be
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x438], ecx
jmp 0x42b1c7
lea edx, [ebp + 0xc]
mov dword [ebp - 0x438], edx
mov eax, dword [ebp - 0x438]
push eax
push str.service_create_process___s_______asuser_
push 0x400
lea ecx, [ebp - 0x408]
push ecx
call fcn.0048e811
add esp, 0x10
push 0x1388
push str..pipeEST_IPC_MEDIASEC2011
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x42b20b
jmp 0x42b29d
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str..pipeEST_IPC_MEDIASEC2011
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0xffffffff
jne 0x42b239
jmp 0x42b29d
mov dword [ebp - 0x414], 0
push 0
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.0048ba20
add esp, 4
push eax
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x42b281
jmp 0x42b29d
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x409], 1
xor ecx, ecx
jne 0x42b1e7
mov dl, byte [ebp - 0x409]
mov byte [ebp - 0x419], dl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004101f0
mov al, byte [ebp - 0x419]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42b2e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 8], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42b30c
xor eax, eax
jmp 0x42b3e2
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.0048ac80
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42b351
xor eax, eax
jmp 0x42b3e2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42b39a
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx]
jbe 0x42b39a
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x230]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx]
ja 0x42b39a
jmp 0x42b3ae
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42b351
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x42b3d2
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
jbe 0x42b3d2
mov dword [ebp - 0x23c], 1
jmp 0x42b3dc
mov dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret

Function at 0x42b450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42b497
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42b570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], ecx
push str._aRbc_u7b
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42b5c7
push 0
push 0
push 0x16
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x4cf12c
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42b5ed
push 0
push 0
push 0x16
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push str.Document_security_management_system_registry
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42b613
push 0
push 0
push 0x16
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push str.config.ini
mov eax, dword [ebp - 0x12c]
add eax, 0xc4
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x120]
push edx
push 0x80
lea eax, [ebp - 0x11c]
push eax
push str.esafenet_cdgregedit_2008_10_16_by_ludf
push 0x4cf06c
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42b6bc
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42b6d3
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp edx, 0x1e
jb 0x42b680
cmp dword [ebp - 0x14], 0
je 0x42b6e3
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x11c]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42b717
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov ecx, dword [ebp - 0x12c]
call fcn.00439ae0
mov dword [ebp - 0x124], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00402470
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret