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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
lea eax, [ecx + 0x48]
push 0x11
push str.HKEY_CURRENT_USER
push str.HKEY_LOCAL_MACHINESOFTWARETencentQQPCMgrInstallDir
mov dword [ebp - 0x21c], eax
call esi
add esp, 0xc
test eax, eax
jne 0x40a505
mov ebx, SysReAllocString
mov esi, 0x472e4c
jmp 0x40a528
push 0x12
push str.HKEY_LOCAL_MACHINE
push str.HKEY_LOCAL_MACHINESOFTWARETencentQQPCMgrInstallDir
call esi
add esp, 0xc
test eax, eax
jne 0x40a626
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov esi, 0x472e4e
push edi
push 0x5c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40a625
mov ecx, edi
lea eax, [ebp - 0x20c]
sub ecx, esi
sar ecx, 1
push ecx
push esi
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov dword [ebp - 0x214], 0
add edi, 2
mov dword [ebp - 0x210], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40a5b4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x210]
mov dword [ebp - 0x210], ecx
jmp 0x40a5ba
mov ecx, dword [ebp - 0x210]
test ecx, ecx
mov edx, 0x201
lea ecx, [ebp - 0x214]
mov eax, 1
push ecx
cmovne eax, edx
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a625
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push esi
push 0
push 0
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a619
mov word [esi + 0x206], ax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045be1b
mov esp, ebp
pop ebp
ret 4
Function at 0x40a6f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, 1
test eax, eax
je 0x40a73e
mov eax, dword [0x480c94]
cmp eax, 5
jg 0x40a84f
inc eax
mov dword [0x480c94], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
push str.LastException.dat
lea edx, [esi + 0x48]
lea ecx, [ebp - 0x210]
call fcn.0040c6d0
add esp, 4
test eax, eax
je 0x40a84f
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a84f
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 8
lea eax, [ebp - 0x220]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x220], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a7be
cmp dword [ebp - 0x214], 8
je 0x40a7c9
xorps xmm0, xmm0
movlpd qword [ebp - 0x220], xmm0
xor edi, edi
push edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [ebp - 0x21c]
mov ebx, eax
mov eax, dword [ebp - 0x220]
add esp, 4
add eax, 0xa8c0
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], edx
adc ecx, edi
cmp edx, ecx
jl 0x40a83b
jg 0x40a800
cmp ebx, eax
jb 0x40a83b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x214]
push eax
push 8
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 1
test eax, eax
je 0x40a840
cmp dword [ebp - 0x214], 8
cmove edi, ebx
jmp 0x40a840
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40a72b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045be1b
mov esp, ebp
pop ebp
ret

Function at 0x40aff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b049
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b049
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b03a
cmp esi, edx
jae 0x40b049
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40b028
cmp esi, edx
jae 0x40b049
cmp word [esi], 0
je 0x40b049
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40f8e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 5
call fcn.00408fa0
mov ecx, eax
call fcn.0040a870
test eax, eax
je 0x40f963
lea eax, [ebp - 0x41c]
push eax
push str.InitBugReportSupport
push str.__s__:_tchExe__s_.
push str.InitBugReportSupport
push 0x248
push str.e:qci_workspace_root_workspaces__qci_pipeline_603700_2_ftcommonqmcommonlibdll_bugreportbase_bugreportbase.cpp
push 0
push 5
push 0
call fcn.00408fa0
push eax
call fcn.0040a910
add esp, 0x28
push ebx
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x834]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x210]
push eax
lea edx, [ebp - 0x628]
lea ecx, [ebp - 0x41c]
call fcn.0040ec00
xor edx, edx
add esp, 0x2c
xor ebx, ebx
xor eax, eax
mov ecx, 1
cmp dx, word [ebp - 0x210]
je 0x40fa69
push esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
lea eax, [ebp - 0x210]
push edi
push 0x2e
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x40fa60
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
lea ebx, [edi + 2]
movzx eax, ax
add esp, 4
mov dword [ebp - 0x838], eax
test ebx, ebx
je 0x40fa60
push 0x2e
push ebx
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x40fa60
xor eax, eax
push ebx
mov word [edi], ax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
add esp, 4
movzx ebx, ax
add edi, 2
je 0x40fa60
push 0x2e
push edi
call esi
add esp, 8
test eax, eax
je 0x40fa4e
xor ecx, ecx
mov word [eax], cx
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
mov ecx, dword [ebp - 0x838]
add esp, 4
jmp 0x40fa67
xor ebx, ebx
xor eax, eax
lea ecx, [ebx + 1]
pop edi
pop esi
sub esp, 0x14
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x41c]
push eax
lea edx, [ebp - 0x628]
call fcn.0040eee0
mov eax, dword [0x4809c4]
add esp, 0x28
pop ebx
test eax, eax
je 0x40fa9c
mov dword [eax + 0x1c], 0x2710
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
Function at 0x4104b0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20c]
mov dword [ecx + 8], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, eax
mov ebx, 1
test edx, edx
je 0x41061e
lea ecx, [edx + 0x20]
cmp ecx, 0x104
jae 0x41061e
mov eax, 0x104
sub eax, edx
push 0x473c1c
push eax
lea eax, [ebp - 0x20c]
lea eax, [eax + edx*2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push 4
push 0
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41061e
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 8
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x218], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41057d
cmp dword [ebp - 0x210], 8
je 0x410588
xorps xmm0, xmm0
movlpd qword [ebp - 0x218], xmm0
push edi
xor edi, edi
push edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [ebp - 0x214]
mov ebx, eax
mov eax, dword [ebp - 0x218]
add esp, 4
add eax, 0x93a80
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], edx
adc ecx, edi
cmp edx, ecx
jl 0x4105fb
jg 0x4105c0
cmp ebx, eax
jb 0x4105fb
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x210]
push eax
push 8
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 1
test eax, eax
je 0x410600
cmp dword [ebp - 0x210], 8
cmove edi, ebx
jmp 0x410600
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x41061e
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
Function at 0x412380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
push str.IsExe
lea ecx, [ebp - 0x140]
call fcn.00407b80
push 0x40
push 0
lea eax, [ebp - 0x13c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x40
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4123fd
mov dword [ebp - 0x144], 0
lea ecx, [ebp - 0x140]
call fcn.00407aa0
mov eax, dword [ebp - 0x144]
jmp 0x4124f4
movzx ecx, word [ebp - 0x13c]
cmp ecx, 0x5a4d
je 0x41242c
mov dword [ebp - 0x148], 0
lea ecx, [ebp - 0x140]
call fcn.00407aa0
mov eax, dword [ebp - 0x148]
jmp 0x4124f4
push 0xf8
push 0
lea edx, [ebp - 0xfc]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0xf8
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x100]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x412485
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x140]
call fcn.00407aa0
mov eax, dword [ebp - 0x14c]
jmp 0x4124f4
cmp dword [ebp - 0xfc], 0x4550
je 0x4124ae
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x140]
call fcn.00407aa0
mov eax, dword [ebp - 0x150]
jmp 0x4124f4
movzx eax, word [ebp - 0xe6]
and eax, 0x2000
je 0x4124d9
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x140]
call fcn.00407aa0
mov eax, dword [ebp - 0x154]
jmp 0x4124f4
mov dword [ebp - 0x158], 1
lea ecx, [ebp - 0x140]
call fcn.00407aa0
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret
Function at 0x413210
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
push 0
push 0
push 0
push 0
push str.DetourTransactionAbort
lea ecx, [ebp - 0xc]
call fcn.00407b80
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x47f130], eax
je 0x413252
mov dword [ebp - 0x10], 0x10dd
lea ecx, [ebp - 0xc]
call fcn.00407aa0
mov eax, dword [ebp - 0x10]
jmp 0x413347
mov eax, dword [0x47f140]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4132d2
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x17]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4132ae
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x4132ae
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.004146d0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
push 0x18
mov edx, dword [ebp - 0x14]
push edx
call fcn.0045be8d
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x41325a
mov dword [0x47f140], 0
call fcn.00414290
mov ecx, dword [0x47f13c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x413321
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push 8
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0045be8d
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
jmp 0x4132ea
mov dword [0x47f13c], 0
mov dword [0x47f130], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0xc]
call fcn.00407aa0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x414230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
push 0
push 0
push 0
push str.detour_writable_trampoline_regions
lea ecx, [ebp - 8]
call fcn.00407b80
mov eax, dword [0x47f124]
mov dword [ebp - 4], eax
jmp 0x414260
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x41427d
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x414257
lea ecx, [ebp - 8]
call fcn.00407aa0
mov esp, ebp
pop ebp
ret
Function at 0x41b590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x476448
push 0x45be9b
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x47ea94]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0
jne 0x41b5d2
mov dword [ebp - 0x1c], 0x10000
jmp 0x41b5dd
mov eax, dword [ebp + 8]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x48]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x41b5f8
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
ja 0x41b611
jmp 0x41b6ae
cmp dword [ebp - 0x38], 0x1000
jne 0x41b625
mov edx, dword [ebp - 0x34]
and edx, 0x100
je 0x41b627
jmp 0x41b5ef
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41b64b
mov dword [ebp - 4], 0xfffffffe
jmp 0x41b5ef
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x41b66b
mov dword [ebp - 4], 0xfffffffe
jmp 0x41b5ef
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
jmp 0x41b6b0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0
push 0
push 0
push 0
push str.DetourRestoreAfterWithEx
lea ecx, [ebp - 0x14]
call fcn.00407b80
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x150
jne 0x41c0d8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x41c0fa
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
call fcn.00407aa0
mov eax, dword [ebp - 0x18]
jmp 0x41c223
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41c11f
jmp 0x41c212
lea ecx, [ebp - 0x1c]
push ecx
push 0x40
push 0xf8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41c140
jmp 0x41c1fb
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x41c164
lea edx, [ebp - 0x24]
push edx
push 0x40
push 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41c164
jmp 0x41c1e1
push 0x40
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0xf8
mov edx, dword [ebp - 4]
add edx, 0x54
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x41c1ba
push 4
mov eax, dword [ebp - 4]
add eax, 0x14c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x41c1e1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0xf8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x14]
call fcn.00407aa0
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8
Function at 0x41c560
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x476368
push 0x45be9b
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x47ea94]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
jne 0x41c5aa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41c5e0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x41c763
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x41c618
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x41c763
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x41c644
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x41c763
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0
jmp 0x41c667
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x41c70e
push str..detour
imul eax, dword [ebp - 0x1c], 0x28
add eax, dword [ebp - 0x2c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x41c709
imul ecx, dword [ebp - 0x1c], 0x28
mov edx, dword [ebp - 0x2c]
cmp dword [edx + ecx + 0xc], 0
je 0x41c6ac
imul eax, dword [ebp - 0x1c], 0x28
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x10], 0
jne 0x41c6ae
jmp 0x41c70e
imul edx, dword [ebp - 0x1c], 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x40
jb 0x41c6d9
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x41c6db
jmp 0x41c70e
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x41c6ef
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x41c763
jmp 0x41c65e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x41c763
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41cc60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45edf6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 0
push str.GetUrlHost
lea ecx, [ebp - 0x22c]
call fcn.00407b80
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x465eb8
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x41cd26
mov byte [ebp - 0x219], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00407aa0
mov al, byte [ebp - 0x219]
jmp 0x41ce70
push 0x465ed4
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x41ce31
lea ecx, [ebp - 0x228]
call fcn.0041f660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.0041fa20
push eax
push 0
push 5
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x230]
test eax, eax
jl 0x41ce22
lea ecx, [ebp - 0x224]
call fcn.0041f680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
call fcn.0041fa10
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x224]
call fcn.0041fa20
push eax
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x234]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test eax, eax
jl 0x41ce13
lea ecx, [ebp - 0x224]
call fcn.0041fa10
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408a70
mov byte [ebp - 0x21a], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0040fab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0041f920
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00407aa0
mov al, byte [ebp - 0x21a]
jmp 0x41ce70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0040fab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0041f920
cmp dword [ebp - 0x220], 0
je 0x41ce51
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x21b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00407aa0
mov al, byte [ebp - 0x21b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret