joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x4078cc
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00464c60
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40789f
sub eax, esi
jmp 0x4078a1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x407890
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4078bf
sub eax, esi
jmp 0x4078c1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x4078b0
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x407a00
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4078f9
xor eax, eax
jmp 0x40794c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x407916
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.004012c0
jmp 0x40792e
cmp eax, 2
jne 0x407934
mov edx, dword [ebx]
test edx, edx
jne 0x407925
xor eax, eax
jmp 0x407931
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.004073b0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.00464c60
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x407974
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x407988
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x407850
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x407a00
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x4079d0
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.00464360
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x407a00
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.00464360
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4083a9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4083e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4083e0
lea ebx, [ebx]
cmp esi, edx
jae 0x4083e4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4083d0
cmp esi, edx
jb 0x4083eb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f800
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push edi
cmovae eax, dword [ebp + 0xc]
push eax
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40f839
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40f87b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
cmp dword [ebp + 0x20], 8
jb 0x40f84c
push dword [ebp + 0xc]
call fcn.0045f8c1
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x40f871
push dword [ebp + 0x24]
call fcn.0045f8c1
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x34
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x24]
push 0x48eea0
cmovae ecx, dword [ebp + 0x24]
mov ebx, eax
push ecx
call fcn.0046315a
mov edi, eax
add esp, 8
test edi, edi
je 0x40f8cf
push edi
push ebx
push 1
push dword [ebp - 4]
call fcn.00462250
cmp ebx, eax
mov ecx, 1
push edi
cmove esi, ecx
call fcn.004610c5
add esp, 0x14
pop ebx
jmp 0x40f83b
Function at 0x40f8e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ed07
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x49d4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x194]
mov dword [ebp - 0x194], 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40f94c
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x194]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x194]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
jne 0x40f974
xor ecx, ecx
jmp 0x40f989
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f980
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
call fcn.004070e0
lea eax, [esi + 0x388]
mov dword [ebp - 4], 0
push eax
lea edx, [esi + 0x448]
lea ecx, [ebp - 0x190]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.004047d0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x17c], 0x10
jb 0x40f9f2
push dword [ebp - 0x190]
call fcn.0045f8c1
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x460]
mov dword [ebp - 0x17c], 0xf
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x180], 0
mov byte [ebp - 0x190], 0
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00406d70
push str..lnk
lea edx, [esi + 0x370]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x178]
call fcn.00404320
mov byte [ebp - 4], 5
lea esi, [ebp - 0x148]
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x160]
cmovae esi, dword [ebp - 0x148]
lea ecx, [ebp - 0x130]
cmp dword [ebp - 0x164], 0x10
cmovae eax, dword [ebp - 0x178]
cmp dword [ebp - 0x14c], 0x10
cmovae edx, dword [ebp - 0x160]
cmp dword [ebp - 0x11c], 0x10
cmovae ecx, dword [ebp - 0x130]
sub esp, 0xc
push esi
push eax
call fcn.00402660
add esp, 0x18
mov esi, eax
cmp dword [ebp - 0x164], 0x10
jb 0x40fad2
push dword [ebp - 0x178]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
jb 0x40fb04
push dword [ebp - 0x130]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x134], 0x10
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jb 0x40fb36
push dword [ebp - 0x148]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x14c], 0x10
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
jb 0x40fb68
push dword [ebp - 0x160]
call fcn.0045f8c1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret
Function at 0x4100c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47edc8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x49d4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x490]
mov dword [ebp - 0x2c], 0xf
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00406d70
push 5
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae eax, dword [ebp - 0x40]
push str._auto__delay__service
push eax
push 0x48e808
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x460]
mov dword [ebp - 0x14], 0xf
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406d70
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push 0
push str._service
push eax
push 0x48e808
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 0x14], 0x10
jb 0x410191
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
jb 0x4101a2
push dword [ebp - 0x40]
call fcn.0045f8c1
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret

Function at 0x4101d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49d4b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x534], 0x10
push esi
lea esi, [ecx + 0x520]
push edi
jb 0x4101f5
mov eax, dword [esi]
jmp 0x4101f7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41021d
push str.CreateDllLogic
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410216
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.00406d70
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00401a90
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x410252
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 8], 8
jb 0x41026a
push dword [ebp - 0x1c]
call fcn.0045f8c1
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret
Function at 0x4104a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49d4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffffffffffffffff
lea eax, [ecx + 0x460]
mov dword [ebp - 8], 0xf
push 0
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.00406d70
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 5
cmovae eax, dword [ebp - 0x1c]
push 0
push str._default
push eax
push 0x48e808
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 8], 0x10
jb 0x410508
push dword [ebp - 0x1c]
call fcn.0045f8c1
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret
Function at 0x4135b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e87b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49d4b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ecx, ecx
mov dword [esi + 8], eax
mov edx, 4
mov eax, 0x53
mov dword [esi], vtable.DuiLib::CWindowWnd.0
mul edx
mov dword [esi + 4], 0
mov byte [esi + 0xc], 0
seto cl
mov dword [esi + 0x1c], 0
neg ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
or ecx, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], vtable.DuiLib::CNotifyPump.0
push ecx
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0x53
call fcn.00460265
push 0x14c
push 0
push eax
mov dword [esi + 0x24], eax
call fcn.00464360
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], vtable.DuiLib::INotifyUI.0
mov dword [esi + 0x34], vtable.DuiLib::IMessageFilterUI.0
mov dword [esi + 0x38], vtable.DuiLib::IDialogBuilderCallback.0
mov dword [esi], vtable.DuiLib::WindowImplBase.1.0
mov dword [esi + 0x20], vtable.DuiLib::WindowImplBase.2.0
mov dword [esi + 0x30], vtable.DuiLib::WindowImplBase.3.0
mov dword [esi + 0x34], vtable.DuiLib::WindowImplBase.4.0
mov dword [esi + 0x38], vtable.DuiLib::WindowImplBase.0
call fcn.0041e2d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4136f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x49d4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x88]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0xf003f
push 0
push edx
push ecx
mov dword [ebp - 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413741
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call fcn.00464360
add esp, 0xc
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], 1
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push esi
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41372f
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x84], 0
jne 0x4137b0
xor ecx, ecx
jmp 0x4137c9
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4137c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
call fcn.004070e0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret
Function at 0x4137f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREFeiRar
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413822
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0x48ede0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41381c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x413860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0xf003f
push 0
mov edi, edx
mov dword [ebp - 4], 0
mov esi, ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4138c3
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4138c3
push 0x76
push str.register_tools.cpp
push str.false
call fcn.004632a6
add esp, 0xc
xor bl, bl
jmp 0x4138f3
push dword [ebp + 0x1c]
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 1
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4138e8
xor bl, bl
jmp 0x4138f3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
cmp dword [ebp + 0x20], 0x10
jb 0x413904
push dword [ebp + 0xc]
call fcn.0045f8c1
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREFeiRar
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41397b
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREFeiRar
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41397b
push 0x76
push str.register_tools.cpp
push str.false
call fcn.004632a6
add esp, 0xc
xor al, al
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4139af
push 0x68
push str.register_tools.cpp
push str.false
call fcn.004632a6
add esp, 0xc
xor al, al
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x413a80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x63c
mov eax, dword [0x49d4b0]
xor eax, esp
mov dword [esp + 0x638], eax
mov edx, dword [ebp + 0x10]
xor eax, eax
push esi
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
cmp word [edx], ax
jne 0x413abe
xor ecx, ecx
jmp 0x413ad2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ac3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.00406b00
push 2
push ecx
push 0x48f1fc
lea ecx, [esp + 0x14]
call fcn.00403b60
test eax, eax
js 0x413b44
lea ecx, [esp + 0x20]
call fcn.0040ba40
push 9
push ecx
push str._runbysvr
lea ecx, [esp + 0x14]
mov byte [esp + 0x398], 1
call fcn.00403b60
mov ecx, dword [0x49e630]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [0x49e630], ecx
lea ecx, [esp + 0x20]
call fcn.0040de30
lea ecx, [esp + 0x20]
call fcn.0040e510
lea ecx, [esp + 0x20]
call fcn.0040bf00
jmp 0x413bc2
mov eax, dword [ebp + 8]
push 0
mov dword [0x4a0ed4], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x413bc2
push 0x618
call fcn.00460130
add esp, 4
test eax, eax
je 0x413bc2
mov ecx, eax
call fcn.0040ba40
mov esi, eax
test esi, esi
je 0x413bc2
push ecx
push 0x258
push 0x384
push 0
push 0
push 0x100
push 0x10cf0000
push 0x48f224
push 0
mov ecx, esi
call fcn.004241c0
push ecx
mov ecx, esi
call fcn.004243b0
mov ecx, esi
call fcn.00424280
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00421200
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x1c], 8
jb 0x413bd5
push dword [esp + 8]
call fcn.0045f8c1
add esp, 4
mov ecx, dword [esp + 0x63c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4173c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x49d4b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408a50
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00408870
add esp, 4
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41742c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00418260
mov edi, eax
add esp, 4
test edi, edi
jne 0x417445
xor esi, esi
jmp 0x41754d
push edi
mov edx, 0x4186c0
lea ecx, [ebp - 0x3c]
call fcn.00417740
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
movdqu xmm0, xmmword [edi + 0x38]
push esi
movdqu xmmword [ebp - 0x50], xmm0
call fcn.00408a50
push 0
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x4174ab
lea ecx, [edx - 1]
test ecx, ecx
js 0x417582
cmp ecx, edx
jg 0x417582
cmp word [eax + ecx*2], 0x5c
je 0x4174ab
push 0x488554
lea ecx, [ebp - 0x10]
call fcn.004175a0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], 0
test ecx, ecx
jb 0x417520
mov eax, dword [ebp - 0x50]
ja 0x4174c2
test eax, eax
je 0x417520
add eax, 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
mov eax, ecx
movlpd qword [ebp - 0x30], xmm0
adc eax, 0xffffffff
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov edi, edi
mov edx, dword [ebp - 0x10]
mov ecx, edi
call fcn.00416f00
cmp ebx, dword [ebp - 0x20]
ja 0x417505
jb 0x4174f6
cmp esi, dword [ebp - 0x24]
jae 0x417505
mov ecx, edi
call fcn.00418bf0
test eax, eax
jne 0x41758c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cdq
mov ebx, edx
mov esi, eax
cmp ebx, dword [ebp - 0x4c]
ja 0x41751d
jb 0x4174e0
cmp esi, dword [ebp - 0x50]
jb 0x4174e0
or ebx, 0xffffffff
mov esi, 1
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417545
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.004177e0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41756e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401530
xor esi, esi
or ebx, 0xffffffff
jmp 0x417525