joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011b0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push edi
push edx
push 0
push 0x1fffff
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4011e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_Fail_GetLastError:__d
call fcn.00401010
add esp, 8
xor eax, eax
pop edi
pop ebx
ret
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011e6
push esi
sub ecx, edx
sar ecx, 1
push 4
push 0x1000
lea eax, [ecx*2 + 2]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x40122e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAllocEx_Fail_GetLastError:__d
call fcn.00401010
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401233
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40126f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteProcessMemory_Fail_GetLastError:__d
call fcn.00401010
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
ret
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4012a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_Fail_GetLastError:__d
call fcn.00401010
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
ret
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x4012d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4042ac
call fcn.00401010
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push edi
call esi
pop esi
pop edi
mov eax, 1
pop ebx
ret
Function at 0x401370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401389
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013c6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4013c2
nop word [eax + eax]
cmp esi, edx
jae 0x4013c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4013b0
cmp esi, edx
jb 0x4013cd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f38
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x22c
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0045c360
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401da8
xor al, al
jmp 0x401ea6
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401e9d
nop dword [eax + eax]
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x28]
call fcn.00402180
mov ecx, dword [ebp - 0x258]
lea esi, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
cmovae esi, dword [ebp - 0x28]
call fcn.004046c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401e4a
mov eax, dword [ebp - 0x24c]
mov ecx, ebx
mov esi, dword [ebx]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
push dword [esi + 4]
push esi
call fcn.00403bc0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jb 0x401ec2
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x401e87
mov eax, dword [ebp - 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x401e7e
test al, 0x1f
jne 0x401ecc
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x401ecc
sub eax, ecx
cmp eax, 4
jb 0x401ecc
cmp eax, 0x23
ja 0x401ecc
mov eax, ecx
push eax
call fcn.0042fd23
add esp, 4
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401dd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0040da1a
call fcn.00463c41
int3
Function at 0x401ef0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
mov ebx, dword [ebp + 8]
push 0x22c
push 0
push eax
mov dword [ebp - 0x244], esi
call fcn.0045c360
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401f58
xor al, al
jmp 0x402023
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40201a
nop dword [eax + eax]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00402e20
mov dword [ebp - 4], 0
test ebx, ebx
je 0x402055
push ebx
push dword [ebp - 0x240]
call fcn.00463ceb
add esp, 8
test eax, eax
je 0x40203f
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x402004
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x402000
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x402000
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402004
mov ecx, edx
call esi
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401f80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
mov byte [eax], 1
call fcn.00402dd0
jmp 0x40201a
push 0x80004005
call fcn.00401280
int3

Function at 0x402550
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x402576
cmp ax, 6
je 0x402576
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476058
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x40264f
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x4025ec
xor ecx, ecx
jmp 0x4025fa
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4025f1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00404ee0
push 0x492918
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004037b0
push edi
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.004037b0
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.00403110
lea ecx, [ebp - 0x58]
call fcn.00404950
lea ecx, [ebp - 0x70]
call fcn.00404950
lea ecx, [ebp - 0x40]
call fcn.00404950
jmp 0x402673
cmp byte [edi], 0
jne 0x402658
xor ecx, ecx
jmp 0x402669
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402660
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404ee0
push dword [ebp + 0x14]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4026db
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4026d2
test cl, 0x1f
je 0x4026ae
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4026ba
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x4026c6
call fcn.00463c41
cmp ecx, 0x23
jbe 0x4026d0
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476088
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp byte [esi], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x402755
xor ecx, ecx
jmp 0x402769
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402760
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404ee0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x402799
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00403020
cmp byte [edi], 0
jne 0x4027a2
xor ecx, ecx
jmp 0x4027b0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4027a7
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004047f0
push 0x38
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0045c360
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x440
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp byte [ebp + 0x18], 0
je 0x402822
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40286c
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x402863
test cl, 0x1f
je 0x40283f
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40284b
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x402857
call fcn.00463c41
cmp ecx, 0x23
jbe 0x402861
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret
Function at 0x402890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4760b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402959
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x402923
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x402930
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403fd0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp + 0x18]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x40297e
xor ecx, ecx
jmp 0x40298c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402983
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00404ee0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4029df
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4029d6
test cl, 0x1f
je 0x4029b2
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4029be
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x4029ca
call fcn.00463c41
cmp ecx, 0x23
jbe 0x4029d4
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret

Function at 0x402a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402a25
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x402a50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402a7b
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esp, ebp
pop ebp
ret
Function at 0x4061d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476368
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x138], eax
call fcn.00402060
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
call fcn.00404a60
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x13c], 0x10
mov edx, 0x100
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
mov dword [ebp - 0x130], eax
xor eax, eax
nop word [eax + eax]
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x406280
xor dl, dl
mov word [ebp - 0x2c], 0
xor ebx, ebx
lea esi, [ebp - 0x12c]
mov edi, 0x100
mov eax, dword [ebp - 0x130]
lea esi, [esi + 1]
mov cl, byte [esi - 1]
movzx edx, dl
mov al, byte [edx + eax]
add al, bl
add al, cl
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x12c]
mov byte [esi - 1], al
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x134]
mov byte [ebp + ebx - 0x12c], cl
sub edi, 1
jne 0x4062a0
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40633e
movzx edx, byte [ebp - 0x2c]
movzx ebx, byte [ebp - 0x2b]
nop dword [eax]
inc dl
inc esi
movzx edx, dl
mov cl, byte [ebp + edx - 0x12c]
add bl, cl
movzx ebx, bl
movzx eax, byte [ebp + ebx - 0x12c]
mov byte [ebp + edx - 0x12c], al
mov byte [ebp + ebx - 0x12c], cl
movzx eax, cl
add al, byte [ebp + edx - 0x12c]
mov ecx, dword [ebp - 0x138]
movzx eax, al
movzx eax, byte [ebp + eax - 0x12c]
xor byte [edi + ecx], al
movsx edi, si
cmp edi, dword [ebp + 0xc]
jl 0x4062f0
mov eax, dword [ebp - 0x13c]
cmp eax, 0x10
jb 0x40638e
mov ecx, dword [ebp - 0x150]
inc eax
cmp eax, 0x1000
jb 0x406385
test cl, 0x1f
je 0x406361
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40636d
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x406379
call fcn.00463c41
cmp ecx, 0x23
jbe 0x406383
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4063d8
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4063cf
test cl, 0x1f
je 0x4063ab
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4063b7
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x4063c3
call fcn.00463c41
cmp ecx, 0x23
jbe 0x4063cd
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret 8
Function at 0x406670
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4066a5
mov dword [ebp - 0x48], 1
jmp 0x4066ac
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407190
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4764c3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x84]
push eax
call fcn.00407390
mov ecx, eax
call fcn.0040acb0
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
call fcn.004046c0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404fe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.00404950
push 1
push str.runas
push str._unregall
push 0x47a730
lea ecx, [ebp - 0x2c]
call fcn.004046c0
push eax
call fcn.00402700
add esp, 0x14
push str.SoftwarePhotoViewerReport
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push str.SoftwarePhotoViewerUpdate
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push str.Version
push str.SoftwarePhotoViewerInstall
push SysReAllocString
call fcn.00402a50
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret

Function at 0x407800
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0045c360
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x47a7d8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret
Function at 0x407b30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4765ab
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0045c360
add esp, 0xc
push 0
push 0xb
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x47a7ec
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b290
add esp, 4
push eax
lea ecx, [ebp - 0x234]
call fcn.00404fe0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004046c0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00407880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00404950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret

Function at 0x407c20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallPhotoViewer
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00402a00
add esp, 8
movzx eax, al
test eax, eax
je 0x407c55
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallPhotoViewer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret