joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
xor eax, eax
jne 0x416719
cmp dword [ebp + 0xc], 0
je 0x41672c
mov dword [ebp - 0x10], 1
jmp 0x416733
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x416746
mov eax, 0xd
jmp 0x4167a3
xor edx, edx
jne 0x41671d
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.005156e3
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 1
jne 0x416757
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4167d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x4167d9
cmp dword [ebp + 0xc], 0
je 0x4167ec
mov dword [ebp - 4], 1
jmp 0x4167f3
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x416806
mov eax, 0xd
jmp 0x416835
xor edx, edx
jne 0x4167dd
mov eax, dword [ebp + 0xc]
push eax
call fcn.005156e3
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41bbc0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
mov byte [ebp - 1], al
lea ecx, [ebp - 1]
call fcn.0041a9b0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.Delete_uninstall_registry
call fcn.00422820
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41c9e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d000
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5854b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call fcn.0040b3b0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.nProgress_d_n
lea ecx, [ebp - 0x10]
push ecx
call fcn.00410a20
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00406cd0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 8], 0x64
jl 0x41ca48
mov dword [ebp + 8], 0x63
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x41cae0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00419b30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00425f20
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041a0e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004067d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x41cb40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d02b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00511800
add esp, 0xc
call fcn.0041c8b0
test eax, eax
je 0x41cbb3
push str.deps_shellGeeksShell64.dll
mov ecx, dword [ebp - 0x220]
add ecx, 8
call fcn.00406cd0
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x41cbd4
push str.deps_shellGeeksShell.dll
mov ecx, dword [ebp - 0x220]
add ecx, 8
call fcn.00406cd0
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41cbec
xor eax, eax
jmp 0x41cc7c
lea ecx, [ebp - 0x21c]
call fcn.0040b3b0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41cc10
mov dword [ebp - 0x224], str.__s___s__i
jmp 0x41cc1a
mov dword [ebp - 0x224], str._u__s___s_
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00410a20
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
call fcn.00406cd0
push eax
push str.regsvr32.exe
call fcn.00427f70
add esp, 0x1c
mov dword [ebp - 0x228], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004067d0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret 4
Function at 0x41d0f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa18], ecx
push 1
lea ecx, [ebp - 0xa10]
call fcn.00419b80
push 1
push 0x1a
lea ecx, [ebp - 0xa10]
call fcn.0040cd00
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00511800
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0xa11], cl
lea ecx, [ebp - 0xa11]
call fcn.0041a370
push eax
lea ecx, [ebp - 0xa10]
call fcn.0040cd00
push eax
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d191
lea ecx, [ebp - 0x210]
push ecx
call fcn.00427400
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret

Function at 0x41d240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00511800
add esp, 0xc
push str.deps_native.dll
mov ecx, dword [ebp - 0x218]
add ecx, 8
call fcn.00406cd0
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d2e6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x41d2e6
push str.SetAutoStart
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x41d2e6
push 0
call dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x41d530
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d12b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x238], 0x104
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00511800
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0x229], cl
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0x54a558
lea ecx, [ebp - 0x229]
call fcn.0041b420
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor edx, edx
mov byte [ebp - 0x22a], dl
lea ecx, [ebp - 0x22a]
call fcn.0041b7a0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor eax, eax
mov byte [ebp - 0x22b], al
lea ecx, [ebp - 0x218]
push ecx
call fcn.005156e3
add esp, 4
shl eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
push 1
push 0x54a570
lea ecx, [ebp - 0x22b]
call fcn.0041ad10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x234]
call fcn.0040b3b0
mov dword [ebp - 4], 0
movzx edx, word [ebp - 0x21c]
push edx
movzx eax, word [ebp - 0x21e]
push eax
movzx ecx, word [ebp - 0x220]
push ecx
movzx edx, word [ebp - 0x222]
push edx
movzx eax, word [ebp - 0x226]
push eax
movzx ecx, word [ebp - 0x228]
push ecx
push 0x54a588
lea edx, [ebp - 0x234]
push edx
call fcn.00410a20
add esp, 0x20
xor eax, eax
mov byte [ebp - 0x22c], al
lea ecx, [ebp - 0x234]
call fcn.00408450
shl eax, 1
push eax
lea ecx, [ebp - 0x234]
call fcn.00406cd0
push eax
push 1
push str.UninstallDate
lea ecx, [ebp - 0x22c]
call fcn.0041ac10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
mov byte [ebp - 0x22d], cl
lea ecx, [ebp - 0x22d]
call fcn.0041b000
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004067d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x41d730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004d7a20
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], ecx
push 1
lea ecx, [ebp - 0x804]
call fcn.00419b80
push 1
push 0x17
lea ecx, [ebp - 0x804]
call fcn.0040cd00
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
lea ecx, [ebp - 0x1004]
call fcn.00419b80
xor eax, eax
mov byte [ebp - 0x1005], al
lea ecx, [ebp - 0x1005]
call fcn.0041a3f0
push eax
lea ecx, [ebp - 0x804]
call fcn.0040cd00
push eax
lea ecx, [ebp - 0x1004]
call fcn.0040cd00
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1004]
call fcn.0040cd00
push eax
call fcn.00427400
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret

Function at 0x41e760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d218
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5854b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x41e793
jmp 0x41e857
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004060d0
mov dword [ebp - 4], 0
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [edx + 0x58a630]
test eax, eax
jne 0x41e7d6
push 0x104
push 0x58a630
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x58a630
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41e80a
push 0x58a630
lea ecx, [ebp - 0x10]
call fcn.00406bf0
push 0x54ac3c
lea ecx, [ebp - 0x10]
call fcn.00410870
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x10]
call fcn.00410870
lea ecx, [ebp - 0x10]
call fcn.00406cd0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41e82e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004067d0
jmp 0x41e857
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041be40
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004067d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e870
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1064
call fcn.004d7a20
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1008], 0
push 0x44
push 0
lea eax, [ebp - 0x1064]
push eax
call fcn.00511800
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x1064]
push ecx
call fcn.00511800
add esp, 0xc
mov dword [ebp - 0x1064], 0x44
lea edx, [ebp - 0x1064]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x1038], 1
xor eax, eax
mov word [ebp - 0x1034], ax
xor ecx, ecx
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x100c], ecx
push 0x10
push 0
lea edx, [ebp - 0x1018]
push edx
call fcn.00511800
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x41e987
mov dword [ebp - 0x1020], 0x800
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.00511800
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x54ac40
lea eax, [ebp - 0x1004]
push eax
call fcn.0041e3b0
add esp, 0x10
lea ecx, [ebp - 0x1018]
push ecx
lea edx, [ebp - 0x1064]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x1008], eax
jmp 0x41e9b3
lea ecx, [ebp - 0x1018]
push ecx
lea edx, [ebp - 0x1064]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x1008], eax
cmp dword [ebp - 0x1008], 0
je 0x41e9e8
push 0x2710
mov ecx, dword [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x1014]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret 8
Function at 0x4200e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.00420210
add esp, 8
test al, al
je 0x420105
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x420105
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x420210
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x420590
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4205bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4205bb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x421ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d5ea
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5854b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x421e9c
cmp dword [ebp + 0x10], 0
je 0x421e6a
push 0x1440
call fcn.0041eaf0
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x421e00
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x3c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x421d70
mov eax, dword [ecx]
lea edx, [ebp - 0x60]
push edx
call dword [eax]
mov dword [ebp - 0x3c], eax
mov dword [edi], esi
lea esi, [edi + 0x1418]
mov dword [edi + 0x1414], 1
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x421d9f
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0x1000
lea esi, [edi + 4]
push 0
push esi
call fcn.00511800
push 0x800
push dword [ebp - 0x18]
push esi
call fcn.0051b302
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.00511800
add esp, 0x24
test ebx, ebx
je 0x421de6
push 0x208
push ebx
push esi
call fcn.0051b302
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x421e02
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x421e02
xor edi, edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x421ed0
push 0
push 0
mov dword [ebp - 0x20], 0x421ed0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0051b49f
add esp, 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], vtable.CSimpleThread.0
test eax, eax
je 0x421e63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x421e9c
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x3c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x421e8c
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp - 0x14]
push ebx
push edi
mov byte [ebp - 4], 0
call fcn.00422050
mov edi, eax
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x421eb4
mov esi, dword [ecx]
lea eax, [ebp + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x422050
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d648
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5854b4]
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 eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x4220f2
cmp word [esi], di
je 0x4220f2
test eax, eax
je 0x4220ae
cmp word [eax], di
je 0x4220ae
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x4220f2
jmp 0x4220ed
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00511800
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x4220f2
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x422123
mov dword [ebp - 0x424], edi
lea edx, [ebp - 0x424]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x422123
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
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.004d77de
mov esp, ebp
pop ebp
ret 0x30

Function at 0x423190
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00511800
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x805]
call fcn.00422ea0
lea ecx, [ebp - 0x805]
mov edi, eax
call fcn.00422f80
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x80c], esi
test esi, esi
je 0x423287
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x423256
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x423243
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x423273
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x423280
lea edx, [ebp - 0x80c]
push edx
push eax
call fcn.00422bc0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x4247a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d916
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x5854b4]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x82c], ebx
cmp word [0x58aa18], 0
jne 0x4248ef
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
push 0x20219
lea ecx, [ebp - 0x811]
mov dword [ebp - 4], 0
call fcn.00423aa0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x828]
call fcn.00414750
mov edi, dword [ebp - 0x828]
test eax, eax
jne 0x4248dd
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
push 0
push str.Channel
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4248dd
mov eax, dword [ebp - 0x81c]
cmp eax, 1
je 0x42487a
cmp eax, 2
jne 0x4248dd
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x424897
test al, 1
jne 0x4248dd
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x4248a0
jmp 0x4248dd
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x58aa18
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4248d0
movzx eax, word [esi + ecx]
test ax, ax
je 0x4248d0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4248b2
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4248ef
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x58aa18
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x42493b
mov ecx, 0x58aa18
mov esi, 0x54b054
mov edx, 0x3ff
sub esi, ecx
nop
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42492e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42492e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x424910
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.00408380
mov ecx, eax
test ecx, ecx
je 0x4249aa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x58aa18
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00407f80
test al, al
jne 0x42498c
mov ecx, 0x58aa18
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424970
sub ecx, edx
sar ecx, 1
push ecx
push 0x58aa18
mov ecx, ebx
call fcn.00409380
mov eax, ebx
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.004d77de
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407e40
int3