joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41da57
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41daf4
push ebx
push esi
call fcn.0041da20
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b676
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41daa1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41daf3
push edi
push eax
call fcn.00419603
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dac1
call fcn.00416deb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41daf2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b676
add esp, 0x20
test eax, eax
jne 0x41dae0
push edi
call fcn.00416deb
jmp 0x41dae8
push ebx
call fcn.00416deb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41daf7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41db08
pop esi
ret
push ebx
push edi
push esi
call fcn.0041da20
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00419603
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41db30
push ebx
push esi
push edi
call fcn.0040a480
add esp, 0xc
push 0
call fcn.00416deb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x423a95
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00423a11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423c04
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423c04
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423bb9
jg 0x423af1
test eax, eax
je 0x423baf
push 1
push 0x1000
call fcn.0041a545
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423b14
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423ba6
push 0x8000
push ebx
call fcn.004130cb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423b3d
jg 0x423b38
cmp ecx, 0x1000
jb 0x423b3d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419068
add esp, 0x10
cmp eax, 0xffffffff
je 0x423b82
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x423b38
jl 0x423b69
test ecx, ecx
jne 0x423b2a
push dword [ebp - 0xc]
push ebx
call fcn.004130cb
push esi
call fcn.00416deb
add esp, 0xc
xor ebx, ebx
jmp 0x423c12
cmp byte [edi + 0x24], 0
je 0x423b99
cmp dword [edi + 0x20], 5
jne 0x423b99
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423ba4
mov ebx, dword [edi + 0x18]
jmp 0x423ba6
xor ebx, ebx
push esi
call fcn.00416deb
pop ecx
jmp 0x423c12
test ecx, ecx
jg 0x423b7b
jl 0x423bb9
test eax, eax
jae 0x423b7b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041852a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423bd9
cmp byte [edi + 0x1c], 0
je 0x423b7b
jmp 0x423c0a
push ebx
call fcn.00414439
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423c12
cmp byte [edi + 0x1c], 0
je 0x423c0f
mov ebx, dword [edi + 0x18]
jmp 0x423c12
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041852a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4258ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4258ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100079df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10013160]
jne 0x100079e9
repz ret
jmp fcn.1000ace5

Function at 0x10009cbe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10002662
xor ebx, ebx
cmp dword [0x1001413c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10009d93
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10009cfe
xor eax, eax
jmp 0x10009e57
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000fbac
push edi
call esi
cmp eax, ebx
je 0x10009cf7
push eax
call fcn.100025ff
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001413c], eax
call esi
push eax
call fcn.100025ff
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10014140], eax
call esi
push eax
call fcn.100025ff
mov dword [0x10014144], eax
lea eax, [ebp - 8]
push eax
call fcn.100023c0
test eax, eax
pop ecx
pop ecx
je 0x10009d61
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000459f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10009d93
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100025ff
cmp eax, ebx
pop ecx
mov dword [0x1001414c], eax
je 0x10009d93
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100025ff
pop ecx
mov dword [0x10014148], eax
mov eax, dword [0x10014148]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10009e0c
cmp dword [0x1001414c], esi
je 0x10009e0c
push eax
call fcn.1000266b
pop ecx
call eax
cmp eax, ebx
je 0x10009dd9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1001414c]
call fcn.1000266b
pop ecx
call eax
test eax, eax
je 0x10009dd9
test byte [ebp - 0x18], 1
jne 0x10009e0c
lea eax, [ebp - 0xc]
push eax
call fcn.100023f7
test eax, eax
pop ecx
je 0x10009df4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000459f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10009e03
or dword [ebp + 0x10], 0x200000
jmp 0x10009e3d
or dword [ebp + 0x10], 0x40000
jmp 0x10009e3d
mov eax, dword [0x10014140]
cmp eax, esi
je 0x10009e3d
push eax
call fcn.1000266b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10009e3d
mov eax, dword [0x10014144]
cmp eax, esi
je 0x10009e3d
push dword [ebp - 4]
push eax
call fcn.1000266b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1001413c]
call fcn.1000266b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023ee
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x402459
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x402459
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x402449
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, 1
jmp 0x40245b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055f02c
leave
ret 4

Function at 0x40246b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.004023ee
push esi
test al, al
jne 0x40249a
push 0x7d
call fcn.00408623
pop ecx
pop ecx
xor eax, eax
jmp 0x4024ff
mov ecx, edi
call fcn.00402375
test al, al
jne 0x4024aa
push esi
push 0x7e
jmp 0x40248f
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionSvchost
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4024fc
push str.LocalWorkSvc
lea ecx, [ebp - 0x1c]
call fcn.00401302
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.004014e8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055f02c
leave
ret 4

Function at 0x4025c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov esi, ecx
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402614
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402710
push ebx
push 0x19
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402637
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402710
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f02c
leave
ret
Function at 0x402645
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4026a9
lea eax, [ebp - 0x20c]
push str.MicrosoftInternet_ExplorerQuick_Launch
push eax
call fcn.00564c0b
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402710
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055f02c
leave
ret

Function at 0x4026b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402710
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055f02c
leave
ret

Function at 0x40279d
Capabilities:
Delete directory
Get common file path

Disassembly:
push 0x430
mov eax, 0x58ab5d
call fcn.0055f097
mov esi, ecx
mov edi, 0x208
lea eax, [ebp - 0x218]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.00561510
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00561510
add esp, 0x18
lea eax, [ebp - 0x218]
push ebx
cmp dword [ebp + 8], ebx
je 0x4027e4
push 0x17
jmp 0x4027e6
push 2
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402861
push 0x58f8b0
lea ecx, [ebp - 0x438]
call fcn.00401302
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x58f8d0
push eax
call fcn.00402c17
push ecx
push ecx
lea eax, [ebp - 0x420]
mov ecx, esp
push eax
call fcn.00401302
mov ecx, esi
call fcn.004029ff
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x438]
call fcn.004014e8
call fcn.0055f052
ret 4

Function at 0x402869
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0xb
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4028ba
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402710
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055f02c
leave
ret

Function at 0x4028c7
Capabilities:
Get common file path

Disassembly:
push esi
push 0
mov esi, ecx
call fcn.0040279d
push 1
mov ecx, esi
call fcn.0040279d
mov ecx, esi
call fcn.004025c3
mov ecx, esi
call fcn.00402869
mov ecx, esi
call fcn.004026b6
mov ecx, esi
pop esi
jmp fcn.00402645
Function at 0x4028f7
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.00561510
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4029f0
push esi
lea eax, [ebp - 0x20c]
push 0x58f94c
push eax
call fcn.00402c17
lea eax, [ebp - 0x20c]
push str..cdc
push eax
call fcn.0056166a
add esp, 0x14
test eax, eax
je 0x40296d
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4029f0
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x402990
push str..cdc
push esi
push 0x58f960
push eax
call fcn.00402c17
add esp, 0x10
jmp 0x4029a5
push edi
push str..cdc
push esi
push str._s_s_d
push eax
call fcn.00402c17
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call fcn.0040954c
pop ecx
test al, al
je 0x4029cf
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4029cf
cmp edi, 0xa
jg 0x4029ef
inc edi
jmp 0x402970
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00564c3c
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055f02c
leave
ret 4
Function at 0x4029ff
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2a0
mov eax, 0x58abad
call fcn.0055f097
mov edi, ecx
xor ebx, ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00401cdd
mov esi, 0x58f934
mov byte [ebp - 4], 1
push esi
call fcn.00564b19
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.0040255e
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402b79
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402b79
push 0x2e
pop eax
cmp word [ebp - 0x27c], ax
je 0x402a65
cmp word [ebp - 0x27a], 0
je 0x402a65
cmp word [ebp - 0x27a], ax
jne 0x402aa4
cmp word [ebp - 0x278], 0
je 0x402a65
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401302
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push eax
je 0x402b23
call fcn.00401cdd
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0040255e
push 0x58f93c
call fcn.00564b19
pop ecx
push eax
push 0x58f93c
lea ecx, [ebp - 0x28]
call fcn.0040255e
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00401cdd
mov ecx, edi
call fcn.004029ff
jmp 0x402b60
call fcn.00401cdd
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.0040255e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401302
mov ecx, edi
call fcn.00402bc3
lea ecx, [ebp - 0x28]
call fcn.004014e8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004014e8
jmp 0x402a65
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x402bab
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x58]
call fcn.004014e8
lea ecx, [ebp + 8]
call fcn.004014e8
call fcn.0055f052
ret 0x18

Function at 0x402ed5
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f13
push str.BKrmir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x403084
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push edi
push eax
xor edi, edi
mov ebx, 0x20119
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x403100
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.BKrmir
push dword [ebp - 8]
call esi
test eax, eax
jne 0x403100
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
push dword [ebp + 0xc]
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
je 0x4030f6
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], edi
je 0x403100
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403f86
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x58fcc8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403fc2
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x58fcc8
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403ffa
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
Function at 0x40409f
Capabilities:
Delete directory

Disassembly:
push 0x68
mov eax, 0x58ae5a
call fcn.0055f097
mov esi, ecx
call fcn.00403107
mov ecx, eax
call fcn.0040aca1
push eax
lea ecx, [ebp - 0x58]
call fcn.00401302
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x48], ebx
je 0x404234
lea eax, [ebp - 0x58]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
call fcn.00401cdd
xor eax, eax
mov edi, 0x58fba8
inc eax
push edi
mov byte [ebp - 4], al
call fcn.00564b19
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040255e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040954c
pop ecx
test al, al
lea ecx, [ebp - 0x28]
push 1
pop eax
cmovne ebx, eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403df9
mov edi, str.BKUt.exe
push edi
call fcn.00564b19
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040255e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040954c
pop ecx
test al, al
push 1
pop eax
cmovne ebx, eax
test ebx, ebx
je 0x4041a2
call fcn.00403107
mov ecx, eax
call fcn.0040ad5f
push eax
lea ecx, [ebp - 0x70]
call fcn.00401302
cmp dword [ebp - 0x60], 0
mov byte [ebp - 4], 2
je 0x404194
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401302
mov ecx, esi
call fcn.00404bf4
xor eax, eax
lea ecx, [ebp - 0x70]
inc eax
mov byte [ebp - 4], al
call fcn.004014e8
cmp dword [ebp + 8], 0
je 0x4041af
mov ecx, esi
call fcn.004046cf
call fcn.00403107
mov ecx, eax
call fcn.0040ad5f
push eax
lea ecx, [ebp - 0x40]
call fcn.00401302
cmp dword [ebp - 0x30], 0
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 3
je 0x40420c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040954c
pop ecx
test al, al
je 0x40420c
push 0
push str.BKPDF
lea ecx, [ebp - 0x40]
call fcn.00404fbd
cmp eax, 0xffffffff
je 0x40420c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call edi
test ebx, ebx
je 0x404224
xor eax, eax
inc eax
mov byte [esi + 0x10], al
lea ecx, [ebp - 0x40]
call fcn.004014e8
lea ecx, [ebp - 0x28]
call fcn.004014e8
lea ecx, [ebp - 0x58]
call fcn.004014e8
call fcn.0055f052
ret 4
Function at 0x404244
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov edi, 0xf013f
mov dword [ebp - 4], esi
push edi
push esi
push str.SOFTWARE
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4042b7
push esi
lea eax, [ebp - 8]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x58f9c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404299
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4042b7
push str.BKApp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
leave
ret

Function at 0x4042bb
Capabilities:
Delete registry value

Disassembly:
push 0x24
mov eax, 0x58ae87
call fcn.0055f097
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x30]
push eax
mov ebx, 0xf003f
xor edi, edi
push ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x404351
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push 0x58fd94
push dword [ebp - 0x30]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40434c
push 0x58f9c4
lea ecx, [ebp - 0x28]
call fcn.00401302
mov dword [ebp - 4], edi
mov edi, 0x58fda0
push edi
call fcn.00564b19
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040255e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call esi
lea ecx, [ebp - 0x28]
call fcn.004014e8
push dword [ebp - 0x30]
call esi
call fcn.0055f052
ret