joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ffe0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0041fd20
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041ff70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42004b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0041fd50
mov eax, dword [ebp - 0x224]
jmp 0x4200dc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4200b1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041ffe0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4200a8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0041fd50
mov eax, dword [ebp - 0x228]
jmp 0x4200dc
mov dword [ebp - 4], 0x100
jmp 0x420052
lea ecx, [ebp - 0x14]
call fcn.0041fea0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0041fde0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0041fd50
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret 4
Function at 0x4206d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4206d9
xor ecx, ecx
jne 0x4206d9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4206fa
mov eax, 0xd
jmp 0x420755
xor eax, eax
jne 0x4206e1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x42070b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x422cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0043b790
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1010], 0x800
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.0043af80
add esp, 0xc
push 0x471eb0
push 0x800
lea ecx, [ebp - 0x1008]
push ecx
call fcn.00423870
push 0x471eb8
push 0x800
lea edx, [ebp - 0x1008]
push edx
call fcn.00423870
push 0x471ec0
push 0x800
lea eax, [ebp - 0x1008]
push eax
call fcn.00423870
push 0x471eec
push 0x800
lea ecx, [ebp - 0x1008]
push ecx
call fcn.00423870
push str.vL
push 0x800
lea edx, [ebp - 0x1008]
push edx
call fcn.00423870
mov eax, dword [ebp + 8]
push eax
push 0x800
lea ecx, [ebp - 0x1008]
push ecx
call fcn.00423870
push 0x471f18
push 0x800
lea edx, [ebp - 0x1008]
push edx
call fcn.00423870
push 0x14
push 0x471f38
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 6
jne 0x422de2
push 5
push 0
push 0
push str.http:__dl.ludashi.com_ludashi_ludashisetup.exe
push 0x471fa0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0xc], 0
je 0x422def
push 0
call fcn.0043c0c7
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret

Function at 0x4230b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 0x18

Function at 0x4230e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop ebp
ret 4
Function at 0x4294e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x429564
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42953b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x429532
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x429566
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00429e10
mov ecx, dword [ebp - 8]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x429700
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x244], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x429747
jmp 0x42981b
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.0043af80
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42979a
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42981b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x238]
je 0x4297f7
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0043bc2b
add esp, 8
test eax, eax
jne 0x4297f7
mov ecx, dword [ebp - 0x238]
push ecx
mov ecx, dword [ebp - 0x248]
call fcn.00429830
test eax, eax
je 0x4297f7
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0042a050
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4297aa
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret 8
Function at 0x42c500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f5d3
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ecx
push 0x208
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.0043af80
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x472198
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x18]
call fcn.00404d00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.0042c660
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404d40
lea ecx, [ebp - 0x18]
call fcn.00425fd0
push 0x11c
push 0
mov eax, dword [ebp - 0x234]
push eax
call fcn.0043af80
add esp, 0xc
mov ecx, dword [ebp - 0x234]
mov dword [ecx], 0x11c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040bcf0
add esp, 0xc
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret
Function at 0x42cc40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f669
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x430], 0
lea eax, [ebp - 0x220]
push eax
call fcn.0042cea0
add esp, 4
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x42c], cx
push 0x206
push 0
lea edx, [ebp - 0x42a]
push edx
call fcn.0043af80
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0043af80
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4722a4
lea eax, [ebp - 0x220]
push eax
call fcn.0042dc10
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42cd1a
push 0x4722c0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x42cdba
push 0x4722e4
lea ecx, [ebp - 0x220]
push ecx
call fcn.0042dc10
add esp, 8
movzx edx, al
test edx, edx
je 0x42cd50
push 0x4722f4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x42cdba
push 0x47231c
lea edx, [ebp - 0x220]
push edx
call fcn.0042dc10
add esp, 8
movzx eax, al
test eax, eax
je 0x42cd86
push 0x472328
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x42cdba
push 0x472348
lea eax, [ebp - 0x220]
push eax
call fcn.0042dc10
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42cdba
push 0x472354
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42ce01
push 0x472374
mov ecx, dword [ebp + 8]
call fcn.00406330
mov edx, dword [ebp - 0x430]
or edx, 1
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00404d40
mov eax, dword [ebp + 8]
jmp 0x42ce84
lea ecx, [ebp - 0x224]
call fcn.00404d00
mov byte [ebp - 4], 1
push 0x104
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0042dc30
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.0042d1a0
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.0042dd20
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404d20
mov edx, dword [ebp - 0x430]
or edx, 1
mov dword [ebp - 0x430], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00404d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00404d40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret
Function at 0x42d1a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.0043b790
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [0x4724c8]
mov word [ebp - 0x4008], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4006]
push ecx
call fcn.0043af80
add esp, 0xc
mov dword [ebp - 0x400c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x42d1f7
cmp dword [ebp + 0xc], 0
jne 0x42d1fe
xor eax, eax
jmp 0x42d300
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x400c], eax
cmp dword [ebp - 0x400c], 0
je 0x42d226
cmp dword [ebp - 0x400c], 0x3fff
jbe 0x42d22d
xor eax, eax
jmp 0x42d300
lea ecx, [ebp - 0x4008]
push ecx
mov edx, dword [ebp - 0x400c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42d2fe
lea ecx, [ebp - 0x4014]
push ecx
lea edx, [ebp - 0x4010]
push edx
push 0x4724cc
lea eax, [ebp - 0x4008]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42d2fe
mov ecx, dword [ebp + 0x10]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043af80
add esp, 0xc
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x4724d0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043b301
add esp, 0x20
mov eax, 1
jmp 0x42d300
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret
Function at 0x42d310
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47e798
push 0x43b600
mov eax, dword fs:[0]
push eax
add esp, 0xfffff780
mov eax, dword [0x48376c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x64], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
call fcn.0041da20
mov dword [ebp - 0x86c], eax
cmp dword [ebp + 8], 0
jne 0x42d37d
mov dword [ebp - 0x878], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x878]
jmp 0x42d553
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x42d3a3
mov dword [ebp - 0x87c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x87c]
jmp 0x42d553
mov edx, dword [ebp + 8]
push edx
call fcn.0043c2cb
add esp, 4
cmp eax, 0x104
jbe 0x42d3d2
mov dword [ebp - 0x880], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x880]
jmp 0x42d553
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d3fc
mov dword [ebp - 0x884], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x884]
jmp 0x42d553
mov dword [ebp - 0x870], 0x400
xor ecx, ecx
mov word [ebp - 0x868], cx
push 0x7fe
push 0
lea edx, [ebp - 0x866]
push edx
call fcn.0043af80
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.__s_
push 0x3ff
lea ecx, [ebp - 0x868]
push ecx
call fcn.004237f0
add esp, 0x10
push 0x3c
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.0043af80
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x868]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], str.open
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x5c], 0x440
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x14], 0
je 0x42d4b5
mov eax, dword [ebp + 8]
push eax
call fcn.00422c90
add esp, 4
test eax, eax
jne 0x42d4b5
mov dword [ebp - 0x888], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x888]
jmp 0x42d553
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x42d4da
cmp dword [ebp + 0x18], 0
je 0x42d4da
push 0xffffffffffffffff
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x1c], 0
je 0x42d4f4
cmp dword [ebp - 0x24], 0
je 0x42d4f4
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], 0
je 0x42d504
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x88c], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x88c]
jmp 0x42d553
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret
Function at 0x42dc60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x42dc69
xor ecx, ecx
jne 0x42dc69
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42dcb0
mov eax, dword [ebp - 0xc]
jmp 0x42dd0d
cmp dword [ebp - 4], 1
je 0x42dcc3
cmp dword [ebp - 4], 2
je 0x42dcc3
mov eax, 0xd
jmp 0x42dd0d
cmp dword [ebp + 0xc], 0
je 0x42dd01
cmp dword [ebp - 8], 0
je 0x42dcf9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x42dcf0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x42dcf7
mov eax, 0xd
jmp 0x42dd0d
jmp 0x42dd01
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42deb0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f77a
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.0042eb90
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0043af80
add esp, 0xc
push 0x472628
lea ecx, [ebp - 0x10]
call fcn.00404f20
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x10]
call fcn.00402a00
movzx eax, al
test eax, eax
jne 0x42df48
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42df6d
push 0
push 0
push 0x10
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.00434f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404d40
jmp 0x42dfaa
mov ecx, dword [ebp - 0x220]
call fcn.0042ec60
test eax, eax
jne 0x42df9b
push str._bridge__RequestSwitcher_fail.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push 0x10
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.00434f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret
Function at 0x42dfd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f7c2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48376c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
push 0xffffffffffffffec
mov ecx, dword [ebp - 0x24]
add ecx, 4
call fcn.00434ef0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
or eax, 0x80000
or eax, 0x80
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0xffffffffffffffec
mov ecx, dword [ebp - 0x24]
add ecx, 4
call fcn.00434f10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406330
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x94
call fcn.00425820
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404d40
push 0x472684
lea ecx, [ebp - 0x1c]
call fcn.00406330
mov dword [ebp - 4], 1
push str._from
lea ecx, [ebp - 0x20]
call fcn.00406330
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x94
call fcn.00425d90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00404d40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00404d40
call fcn.004300e0
mov ecx, eax
call fcn.0042c490
call fcn.0042f430
mov ecx, eax
call fcn.00436340
mov ecx, dword [ebp - 0x24]
call fcn.0042e3b0
mov ecx, dword [ebp - 0x24]
call fcn.0042e440
push 0
push 0
mov eax, dword [ebp - 0x24]
add eax, 0x24
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x24]
push eax
mov eax, dword [edx + 0x20]
call eax
push 1
mov ecx, dword [ebp - 0x24]
add ecx, 4
call fcn.0040ff00
call fcn.004301f0
mov dword [ebp - 0x28], eax
push 1
push 0
push str.show
push 0x4726a0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [eax]
call ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42e970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f833
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.0042eb90
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0043af80
add esp, 0xc
push str.360wpapp.exe
lea ecx, [ebp - 0x10]
call fcn.00404f20
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x10]
call fcn.00402a00
movzx eax, al
test eax, eax
jne 0x42ea3e
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42ea3e
push 0
push 0
push 1
push 1
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.0042d310
add esp, 0x18
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404d40
mov eax, dword [ebp - 0x220]
jmp 0x42ea5d
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404d40
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret

Function at 0x42ea80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f863
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x48376c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.0042eb90
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0043af80
add esp, 0xc
push str.Uninstall.exe
lea ecx, [ebp - 0x10]
call fcn.00404f20
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x10]
call fcn.00402a00
movzx eax, al
test eax, eax
jne 0x42eb4e
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42eb4e
push 0
push 0
push 1
push 1
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.0042d310
add esp, 0x18
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404d40
mov eax, dword [ebp - 0x220]
jmp 0x42eb6d
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404d40
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043ae90
mov esp, ebp
pop ebp
ret