joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f80
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca80b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4f86c0]
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, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004aceb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x40400a
xor ecx, ecx
jmp 0x404022
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404013
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408930
push 0x4e6770
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00406920
mov edi, eax
add esp, 4
cmp esi, edi
je 0x404086
cmp dword [esi + 0x14], 8
jb 0x40406b
push dword [esi]
call fcn.004a7f26
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00408440
cmp dword [ebp - 0x234], 8
jb 0x40409d
push dword [ebp - 0x248]
call fcn.004a7f26
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x4040d1
push dword [ebp - 0x230]
call fcn.004a7f26
add esp, 4
mov al, 1
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.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x4040f0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca850
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40412e
mov al, 1
jmp 0x4041ea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404127
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
lea ecx, [ebp - 0x28]
call fcn.00408a30
push 1
push 0x4e6814
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00405a50
lea ecx, [ebp - 0x40]
call fcn.00404210
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00405980
cmp dword [ebp - 0x2c], 8
jb 0x40418e
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4041d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4041d1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
jmp 0x4041d7
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x4041e8
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x404370
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca88b
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x488], edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
push 0x204
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004aceb0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4043f0
mov eax, dword [edi]
jmp 0x4043f2
mov eax, edi
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a8641
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x4e6804
push 0x104
push eax
call fcn.004a8589
add esp, 0xc
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404442
xor esi, esi
jmp 0x404530
cmp word [ebp - 0x458], 0x2e
je 0x40450e
mov ecx, dword [ebp - 0x488]
call fcn.00401710
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a8641
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x4e6770
push 0x104
push eax
call fcn.004a8589
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a8589
add esp, 0xc
cmp word [ebp - 0x21c], 0
jne 0x4044b2
xor eax, eax
jmp 0x4044cf
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0x4044c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00408930
test byte [ebp - 0x484], 0x10
je 0x404500
push esi
mov edx, ebx
lea ecx, [ebp - 0x234]
call fcn.00404370
add esp, 4
mov ecx, ebx
jmp 0x404502
mov ecx, esi
lea eax, [ebp - 0x234]
push eax
call fcn.00405670
lea eax, [ebp - 0x484]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404442
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
cmp dword [ebp - 0x220], 8
jb 0x404547
push dword [ebp - 0x234]
call fcn.004a7f26
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x408fb0
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 0x40903c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004acff0
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 0x40900f
sub eax, esi
jmp 0x409011
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x409000
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 0x40902f
sub eax, esi
jmp 0x409031
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x409020
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x409170
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 0x409069
xor eax, eax
jmp 0x4090bc
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x409086
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.004031d0
jmp 0x40909e
cmp eax, 2
jne 0x4090a4
mov edx, dword [ebx]
test edx, edx
jne 0x409095
xor eax, eax
jmp 0x4090a1
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00408b20
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004acff0
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 0x4090e4
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 0x4090f8
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x408fc0
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x409170
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x409140
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.004aceb0
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 0x409170
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.004aceb0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411fc0
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 0x411ff9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41203b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
cmp dword [ebp + 0x20], 8
jb 0x41200c
push dword [ebp + 0xc]
call fcn.004a7f26
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 0x412031
push dword [ebp + 0x24]
call fcn.004a7f26
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 0x4dfee8
cmovae ecx, dword [ebp + 0x24]
mov ebx, eax
push ecx
call fcn.004a769d
mov edi, eax
add esp, 8
test edi, edi
je 0x41208f
push edi
push ebx
push 1
push dword [ebp - 4]
call fcn.004a8084
cmp ebx, eax
mov ecx, 1
push edi
cmove esi, ecx
call fcn.004a81bd
add esp, 0x14
pop ebx
jmp 0x411ffb
Function at 0x4125d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb678
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f86c0]
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 + 0x494]
mov dword [ebp - 0x2c], 0xf
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401720
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 0x4e723c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x464]
mov dword [ebp - 0x14], 0xf
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401720
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push 0
push str._service
push eax
push 0x4e723c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 0x14], 0x10
jb 0x4126a1
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
jb 0x4126b2
push dword [ebp - 0x40]
call fcn.004a7f26
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.004a768e
mov esp, ebp
pop ebp
ret

Function at 0x4126e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x538], 0x10
push esi
lea esi, [ecx + 0x524]
push edi
jb 0x412705
mov eax, dword [esi]
jmp 0x412707
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41272d
push str.CreateDllLogic
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412726
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.00401720
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.004039a0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x412762
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 8], 8
jb 0x41277a
push dword [ebp - 0x1c]
call fcn.004a7f26
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x4129b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffffffffffffffff
lea eax, [ecx + 0x464]
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.00401720
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 5
cmovae eax, dword [ebp - 0x1c]
push 0
push str._default
push eax
push 0x4e723c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 8], 0x10
jb 0x412a18
push dword [ebp - 0x1c]
call fcn.004a7f26
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x415e70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caf1b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f86c0]
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.004a6e80
push 0x14c
push 0
push eax
mov dword [esi + 0x24], eax
call fcn.004aceb0
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.0042cde0
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 0x415fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4f86c0]
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 0x416001
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call fcn.004aceb0
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 0x415fef
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x84], 0
jne 0x416070
xor ecx, ecx
jmp 0x416089
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416080
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
call fcn.004018d0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x4160b0
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.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4160e2
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 0x4e78e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4160dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x416120
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 0x416186
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 0x416186
push 0x91
push str.register_tools.cpp
push str.false
call fcn.004abb66
add esp, 0xc
xor bl, bl
jmp 0x4161b6
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 0x4161ab
xor bl, bl
jmp 0x4161b6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
cmp dword [ebp + 0x20], 0x10
jb 0x4161c7
push dword [ebp + 0xc]
call fcn.004a7f26
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4161d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.004162f0
add esp, 8
test al, al
je 0x41621f
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 esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41621f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x416221
xor bl, bl
cmp dword [ebp + 0x20], 0x10
jb 0x416232
push dword [ebp + 0xc]
call fcn.004a7f26
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
mov esi, edx
mov edi, ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4162a6
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4162a6
push 0x91
push str.register_tools.cpp
push str.false
call fcn.004abb66
add esp, 0xc
xor al, al
pop edi
pop esi
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 0x4162df
push 0x83
push str.register_tools.cpp
push str.false
call fcn.004abb66
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417500
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], ecx
push 0
push eax
mov dword [ebp - 0x130], 0x128
call fcn.004aceb0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x417598
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x417591
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x417570
push dword [ebp - 0x134]
lea eax, [ebp - 0x10c]
push eax
call edi
test eax, eax
jne 0x4175ab
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x417570
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x41ba60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbc20
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4f86c0]
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.0040a1b0
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00409fd0
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 0x41bacc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0041c910
mov edi, eax
add esp, 4
test edi, edi
jne 0x41bae5
xor esi, esi
jmp 0x41bbed
push edi
mov edx, 0x41cd70
lea ecx, [ebp - 0x3c]
call fcn.0041bde0
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.0040a1b0
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 0x41bb4b
lea ecx, [edx - 1]
test ecx, ecx
js 0x41bc22
cmp ecx, edx
jg 0x41bc22
cmp word [eax + ecx*2], 0x5c
je 0x41bb4b
push 0x4e6770
lea ecx, [ebp - 0x10]
call fcn.0041bc40
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], 0
test ecx, ecx
jb 0x41bbc0
mov eax, dword [ebp - 0x50]
ja 0x41bb62
test eax, eax
je 0x41bbc0
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.0041b5a0
cmp ebx, dword [ebp - 0x20]
ja 0x41bba5
jb 0x41bb96
cmp esi, dword [ebp - 0x24]
jae 0x41bba5
mov ecx, edi
call fcn.0041d2a0
test eax, eax
jne 0x41bc2c
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 0x41bbbd
jb 0x41bb80
cmp esi, dword [ebp - 0x50]
jb 0x41bb80
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 0x41bbe5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.0041be80
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 0x41bc0e
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.00403440
xor esi, esi
or ebx, 0xffffffff
jmp 0x41bbc5