joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402330
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541090
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00417dac
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00417e78
test eax, eax
je 0x4024b0
lea ecx, [ebp - 0x34]
call fcn.004179fe
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x34]
call eax
test eax, eax
je 0x40249e
lea ecx, [ebp - 0x34]
call fcn.00417918
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00404900
push 4
push 0x570574
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404340
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x34]
call fcn.00417e78
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40246b
lea ecx, [ebp - 0x34]
call fcn.004179fe
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00417d6e
test eax, eax
jne 0x402463
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.004180bb
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x34]
call eax
test eax, eax
je 0x402436
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.00402330
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call esi
jmp 0x402440
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4023e0
mov ecx, dword [ebp + 8]
push ecx
call esi
lea ecx, [ebp - 0x34]
call fcn.00417918
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4024b0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x34]
call fcn.00417918
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00417dde
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407800
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5964b8]
sub esp, 8
cmp eax, 0xff
jne 0x4079ec
push ebx
lea eax, [ebp - 8]
push eax
mov dword [0x5964b8], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 2
mov ebx, eax
jl 0x4079e6
mov ecx, dword [ebx + 4]
push ecx
lea ecx, [ebp - 4]
call fcn.004040f0
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], 0
jl 0x4079c0
push str.1_create
push ecx
call fcn.00517290
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x40788b
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x40788b
mov dword [0x5964b8], 1
jmp 0x4079c0
cmp dword [ecx - 0xc], 0
jl 0x4079c0
push str.2_create_silent
push ecx
call fcn.00517290
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x4078c2
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4078c2
mov dword [0x5964b8], 2
jmp 0x4079c0
cmp dword [ecx - 0xc], 0
jl 0x4079c0
push str.3_delete
push ecx
call fcn.00517290
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x4078f9
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4078f9
mov dword [0x5964b8], 3
jmp 0x4079c0
cmp dword [ecx - 0xc], 0
jl 0x4079c0
push str.4_new
push ecx
call fcn.00517290
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x407930
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x407930
mov dword [0x5964b8], 4
jmp 0x4079c0
cmp dword [ecx - 0xc], 0
jl 0x4079c0
push str.5_new_silent
push ecx
call fcn.00517290
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x407964
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x407964
mov dword [0x5964b8], 5
jmp 0x4079c0
cmp dword [ecx - 0xc], 0
jl 0x4079c0
push str.4_update
push ecx
call fcn.00517290
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x407994
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x407994
mov dword [0x5964b8], 6
jmp 0x4079c0
cmp dword [ecx - 0xc], 0
jl 0x4079c0
push str.5_update_silent
push ecx
call fcn.00517290
add esp, 8
test eax, eax
je 0x4079c0
sub eax, dword [ebp - 4]
sar eax, 1
cmp eax, 0xffffffff
je 0x4079c0
mov dword [0x5964b8], 7
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x5964b8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00519540
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1ffe
push eax
lea ecx, [ebp - 0x2002]
push ecx
mov word [ebp - 0x2004], ax
call fcn.00518f10
mov edx, dword [ebp + 8]
add esp, 0xc
push 1
push edx
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a630
lea eax, [ebp - 0x2004]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a617
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x2004]
push ecx
jmp 0x40a637
push 0
push 0x5704e4
mov ecx, esi
call fcn.004046e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005155a4
mov esp, ebp
pop ebp
ret
Function at 0x40b010
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542368
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40b05a
mov dword [0x59cd00], 1
mov dword [0x59cba0], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call fcn.004079f0
mov dword [ebp - 4], 0
call fcn.00407fe0
call fcn.004082d0
call fcn.004085c0
push esi
call fcn.004088e0
add esp, 8
call fcn.00408c50
test esi, esi
jne 0x40b09f
mov dword [0x59cd00], 2
mov dword [0x59cba0], 0xfffffffe
call fcn.00417597
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b0b9
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402240
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.005172f0
add esp, 8
test eax, eax
jne 0x40b0eb
or eax, 0xffffffff
jmp 0x40b0ef
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004037c0
push str.exe
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 2
call fcn.00404260
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00404790
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x20], esp
mov ecx, esp
push edx
call fcn.00404900
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.00404900
mov byte [ebp - 4], 1
call fcn.00402a90
push 1
push 1
lea edi, [ebp - 0x14]
call fcn.00408ec0
mov ecx, edi
push 1
push ecx
call fcn.004096e0
add esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x40b1c7
call fcn.0040b780
call fcn.0040bc20
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b1f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b216
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b230
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push str.1905Daemon.exe
xor ebx, ebx
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je 0x40b271
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0x4a
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
push 0x570c9c
push ebx
call edi
cmp eax, ebx
je 0x40b29b
lea edx, [ebp - 0xc]
push edx
push ebx
xor ecx, ecx
push 0x4a
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
push str.1905Tray.exe
push ebx
call edi
cmp eax, ebx
je 0x40b2b2
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.1905Daemon.exe
push 1
push 0x1f0001
call edi
mov esi, eax
cmp esi, ebx
je 0x40b2dc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.1905Client.exe
push 1
push 0x1f0001
call edi
mov esi, eax
cmp esi, ebx
je 0x40b300
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.1905Tray.exe
push 1
push 0x1f0001
call edi
mov esi, eax
cmp esi, ebx
je 0x40b324
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541acd
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x594ca8]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x5704e4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], ebx
call fcn.004040f0
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp - 0x128], edi
call fcn.00417597
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b5c3
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x118]
push str._s1905Key.exe
push ecx
mov dword [ebp - 4], edi
call fcn.00403cc0
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov dword [ebp - 0x124], 0x104
mov byte [ebp - 0x114], bl
call fcn.00518f10
mov eax, dword [ebp - 0x118]
add esp, 0x18
cmp eax, ebx
jne 0x40b621
xor eax, eax
jmp 0x40b669
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x40b661
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b8f0
mov esi, esp
cmp esi, ebx
je 0x40b661
mov eax, dword [ebp - 0x118]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40b663
xor eax, eax
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b72e
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x570674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b72e
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x40b777
lea eax, [edi + edi]
call fcn.0051b8f0
mov esi, esp
cmp esi, ebx
je 0x40b777
push edi
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push ebx
xor ecx, ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40b777
mov eax, esi
mov edx, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b710
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x11c]
push eax
push edx
mov ecx, esi
call fcn.004046e0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x138]
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.005155a4
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x40b71f
Function at 0x40b9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541acd
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x594ca8]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x5704e4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], ebx
call fcn.004040f0
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp - 0x128], edi
call fcn.00417597
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ba63
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x118]
push str._s1905Key.exe
push ecx
mov dword [ebp - 4], edi
call fcn.00403cc0
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov dword [ebp - 0x124], 0x104
mov byte [ebp - 0x114], bl
call fcn.00518f10
mov eax, dword [ebp - 0x118]
add esp, 0x18
cmp eax, ebx
jne 0x40bac1
xor eax, eax
jmp 0x40bb09
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x40bb01
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b8f0
mov esi, esp
cmp esi, ebx
je 0x40bb01
mov eax, dword [ebp - 0x118]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40bb03
xor eax, eax
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bbce
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x57111c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bbce
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x40bc17
lea eax, [edi + edi]
call fcn.0051b8f0
mov esi, esp
cmp esi, ebx
je 0x40bc17
push edi
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push ebx
xor ecx, ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40bc17
mov eax, esi
mov edx, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bbb0
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x11c]
push eax
push edx
mov ecx, esi
call fcn.004046e0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x138]
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.005155a4
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x40bbbf
Function at 0x40bfa0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bfc9
xor eax, eax
pop esi
pop ebp
ret
push edi
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x40bff9
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x40bfff
pop edi
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x40e560
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541808
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x594ca8]
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
push 0x5704e4
lea ecx, [ebp - 0x14]
call fcn.004040f0
push 0x33
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004046e0
push 1
push 0x57058c
lea ecx, [ebp - 0x14]
call fcn.00404340
push 0xe
push str.1905Player.exe
lea ecx, [ebp - 0x14]
call fcn.00404340
mov eax, dword [ebp - 0x14]
mov ebx, eax
test eax, eax
je 0x40e612
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40e612
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b8f0
mov esi, esp
test esi, esi
je 0x40e612
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40e614
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20006
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e64c
mov edx, dword [ebp - 0x18]
push 0x57053a
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40e64c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x33
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x14]
call fcn.004046e0
push 1
push 0x57058c
lea ecx, [ebp - 0x14]
call fcn.00404340
push 8
push 0x5712c4
lea ecx, [ebp - 0x14]
call fcn.00404340
mov eax, dword [ebp - 0x14]
mov ebx, eax
test eax, eax
je 0x40e6bf
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40e6bf
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b8f0
mov esi, esp
test esi, esi
je 0x40e6bf
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40e6c1
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20006
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e6f9
mov edx, dword [ebp - 0x18]
push 0x57053a
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40e6f9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e71f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x28]
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.005155a4
mov esp, ebp
pop ebp
ret

Function at 0x40e740
Capabilities:
Delete registry key

Disassembly:
call fcn.0040da00
call fcn.0040dcf0
call fcn.0040dfe0
call fcn.0040e300
jmp fcn.0040e560