joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4163a0
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 0x4163bb
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], 0
jne 0x4163bf
xor eax, eax
jmp 0x4163f2
push 0x14
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.004931a0
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 0x416400
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 0x416416
xor eax, eax
jmp 0x416447
push 0x14
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.004931a0
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 0x4164d0
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 0x423e10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8d58
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x10]
call fcn.00412230
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov word [ebp - 0x12], cx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x10], 0
mov dword [ebp - 0x24], 1
jmp 0x423e82
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 2
jg 0x423edc
push str..log
mov edx, dword [ebp - 0x24]
push edx
movzx eax, word [ebp - 0x1a]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x40]
push ecx
push str._s_s__d__02d_s
lea edx, [ebp - 0x10]
push edx
call fcn.00413630
add esp, 0x1c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x423ecb
jmp 0x423edc
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x10]
add eax, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x10], eax
jmp 0x423e79
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x426c70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x426cb7
cmp dword [ebp - 0x110], 2
jne 0x426cb7
cmp dword [ebp - 0x11c], 6
jb 0x426cb7
mov eax, 1
jmp 0x426cb9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret
Function at 0x42b010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x42b020
xor eax, eax
jmp 0x42b1bd
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x42b17e
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 + 0x4d80f0]
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 + 0x4d80f0]
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 + 0x4d80f0]
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 + 0x4d80f0]
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 + 0x4d80f0]
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 + 0x4d80f0]
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 + 0x4d80f0]
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 + 0x4d80f0]
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 0x42b029
cmp dword [ebp + 0x10], 0
je 0x42b1b7
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 + 0x4d80f0]
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 0x42b184
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x42c0d0
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 0x42c11f
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 0x42c115
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x42c179
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 0x42c13f
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.00499450
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 0x42da60
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 0x42da7a
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0xffffffff
je 0x42da84
mov eax, 0x1000000
jmp 0x42db0b
mov edx, dword [ebp - 0x10]
add edx, 0x138
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4d1934
mov eax, dword [ebp - 0x10]
add eax, 0x138
push eax
call fcn.00493a16
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x42dacf
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 0x42dacf
mov eax, 0x2000000
jmp 0x42db0b
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.0042bda0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42daf5
mov eax, dword [ebp - 8]
jmp 0x42db0b
mov eax, dword [ebp - 4]
push eax
call fcn.0042c560
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [0x5069e4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42e280
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x42e2a3
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x42e2a8
jmp 0x42e390
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 0x42e2fa
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x42e2e0
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x42e2e9
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x218]
add edx, 2
mov dword [ebp - 0x218], edx
jmp 0x42e2b7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x42e35b
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.00499ad8
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.0042e280
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.00493a44
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00493a16
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.0049318c
mov esp, ebp
pop ebp
ret
Function at 0x42f940
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9208
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x10]
call fcn.00412230
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004931a0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
push 0x4d2d7c
lea ecx, [ebp - 0x10]
push ecx
call fcn.00413630
add esp, 0xc
mov edx, str.ESTLOG_
test edx, edx
jne 0x42f9e3
mov dword [ebp - 0x230], 0
jmp 0x42f9f6
push str.ESTLOG_
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
push eax
push str.ESTLOG_
lea ecx, [ebp - 0x10]
call fcn.00411880
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fa70
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x238], eax
push 0
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42fa70
push 0x4d1180
mov ecx, dword [ebp + 8]
call fcn.00412290
mov edx, dword [ebp - 0x220]
or edx, 1
mov dword [ebp - 0x220], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp + 8]
jmp 0x42fac0
mov eax, dword [ebp - 0x10]
sub eax, 0x10
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
add edx, 0x10
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x220]
or ecx, 1
mov dword [ebp - 0x220], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret
Function at 0x42fe80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
cmp ecx, 9
je 0x42fea5
movzx edx, word [ebp - 0x24]
cmp edx, 6
jne 0x42feae
mov eax, 1
jmp 0x42feb0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4300d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c92bb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x258], ecx
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x206
push 0
lea ecx, [ebp - 0x22a]
push ecx
call fcn.004931a0
add esp, 0xc
mov dword [ebp - 0x18], 0x208
lea edx, [ebp - 0x14]
push edx
push 0x2021f
push 0
push str.SYSTEMCurrentControlSetControlFileSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x430152
xor eax, eax
jmp 0x43026f
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push str.LongPathsEnabled
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x430198
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x43026f
lea ecx, [ebp - 0x230]
call fcn.00412230
mov dword [ebp - 4], 0
movzx edx, word [ebp - 0x22c]
push edx
push 0x4d8ce0
lea eax, [ebp - 0x230]
push eax
call fcn.00413630
add esp, 0xc
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00499c83
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp + 8]
je 0x43024e
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x238], ecx
push 4
lea edx, [ebp - 0x238]
push edx
push 4
push 0
push str.LongPathsEnabled
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43024e
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004129d0
mov eax, dword [ebp - 0x23c]
jmp 0x43026f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004129d0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret 4
Function at 0x431c10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c94b4
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x50545c]
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.0044fb81
push eax
lea ecx, [ebp - 0x10]
call fcn.00412940
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0
call fcn.004935db
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.004337e0
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.00412a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004129d0
push str.EstConfig
lea ecx, [ebp - 0x220]
call fcn.00412290
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.004931a0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x21c]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x224]
call fcn.00412940
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.00413630
add esp, 0x10
push 0x4d9b34
lea ecx, [ebp - 0x228]
call fcn.00412290
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 0x431dda
mov dword [ebp - 0x268], 0
jmp 0x431ded
push str.UPDATE
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
push ecx
push str.UPDATE
lea ecx, [ebp - 0x228]
call fcn.00412d00
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
push eax
push 0x4d4bb4
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.004129d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret
Function at 0x432630
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 [0x50545c]
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.004931a0
add esp, 0xc
mov dword [ebp - 0x218], 0x208
push str._void_CUpdatePatchApp::StartUpGrade_write_reg_start
call fcn.0042fb40
add esp, 4
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 0x432798
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 0x432798
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 0x432798
xor edx, edx
mov word [ebp - 0x430], dx
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.004931a0
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 0x432798
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]
push str._void_CUpdatePatchApp::StartUpGrade_write_reg_end
call fcn.0042fb40
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret
Function at 0x4327c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c95e3
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x454], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x415], 0
mov byte [ebp - 0x414], 0
push 0x3ff
push 0
lea eax, [ebp - 0x413]
push eax
call fcn.004931a0
add esp, 0xc
push str.startAsPipe_enter_
call fcn.00442d80
add esp, 4
cmp dword [ebp + 0x20], 0x10
jb 0x43283a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x458], ecx
jmp 0x432843
lea edx, [ebp + 0xc]
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x458]
push eax
push str.service_create_process___s_______asuser_
lea ecx, [ebp - 0x414]
push ecx
call fcn.00496989
add esp, 0xc
push 0x1388
push str..pipeEST_IPC_MEDIASEC2011
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x43288f
push str.startAsPipe_WaitNamedPipeW_fail_
call fcn.00442d80
add esp, 4
jmp 0x43293b
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 - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x4328ca
push str.startAsPipe_CreateFileW_fail_
call fcn.00442d80
add esp, 4
jmp 0x43293b
mov dword [ebp - 0x424], 0
push 0
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.00493550
add esp, 4
push eax
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x43291f
push str.startAsPipe_WriteFile_fail_
call fcn.00442d80
add esp, 4
jmp 0x43293b
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x415], 1
xor ecx, ecx
jne 0x43285e
lea ecx, [ebp - 0x41c]
call fcn.00412230
mov byte [ebp - 4], 1
movzx edx, byte [ebp - 0x415]
push edx
push str.startAsPipe_bRetValue:_d
lea eax, [ebp - 0x41c]
push eax
call fcn.00413630
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.00442d80
add esp, 4
mov dl, byte [ebp - 0x415]
mov byte [ebp - 0x429], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x41c]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00410110
mov al, byte [ebp - 0x429]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret 0x1c