joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41817c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4181d1
mov ecx, dword [ebp - 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esp, ebp
pop ebp
ret 8

Function at 0x418d95
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0x168], ecx
push 0x45e8f4
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
push 0x45e8e4
push 9
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jl 0x418e0b
push 0x45e8f8
push 0x44cf80
push 0
mov eax, dword [0x45e8e4]
push eax
mov ecx, dword [0x45e8f4]
mov edx, dword [ecx]
mov eax, dword [0x45e8f4]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jge 0x418e09
mov dword [0x45e8f8], 0
jmp 0x418e15
mov dword [0x45e8f8], 0
push 0x4001
push 0x160
lea ecx, [ebp - 0x160]
push ecx
push 0
push 0x45d6b8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push eax
call sub.MFC42.DLL_CImageList::FromHandle
mov dword [0x45e8fc], eax
mov eax, dword [ebp - 0x168]
mov esp, ebp
pop ebp
ret
Function at 0x41bf04
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0x164], ecx
push 0x160
push 0
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x41bf3b
mov ecx, dword [ebp + 0xc]
or ecx, 0x4001
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
or edx, 8
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
push eax
push 0x160
lea ecx, [ebp - 0x160]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
mov esp, ebp
pop ebp
ret 8

Function at 0x41c158
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0x168], ecx
push 0x160
push 0
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x164], 0x208
mov ecx, dword [ebp - 0x164]
push ecx
push 0x160
lea edx, [ebp - 0x160]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esp, ebp
pop ebp
ret 8
Function at 0x402470
Capabilities:
Delete registry value
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x800
push 0
push eax
mov edi, reloc.WS2_32.dll_bind
call fcn.005a26c0
push ebx
push str.SYSTEMControlSet001Services_ws
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.00401b80
add esp, 0x1c
lea eax, [ebp - 0x808]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4025b8
mov edi, dword [ebp - 0x808]
test edi, edi
jne 0x402500
push 0x4c
push str.d:opflpdfprotectjkprotect_selfprotecttoolslib_registry.cpp
push str.m_hKey
call fcn.005bbe0b
add esp, 0xc
push str.DeleteFlag
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
jne 0x402524
push 0x66
push str.d:opflpdfprotectjkprotect_selfprotecttoolslib_registry.cpp
push str.m_hKey
call fcn.005bbe0b
add esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x80c]
push 4
push eax
push 4
push 0
push str.Start
push edi
mov dword [ebp - 0x80c], 1
call ebx
push esi
push str.___ws
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.00401b80
add esp, 0x10
test edi, edi
jne 0x40257e
push 0x85
push str.d:opflpdfprotectjkprotect_selfprotecttoolslib_registry.cpp
push str.m_hKey
call fcn.005bbe0b
add esp, 0xc
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402587
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push 1
push 0
push str.ImagePath
push edi
call ebx
mov esi, 1
jmp 0x40260c
push esi
push str.___ws
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.00401b80
add esp, 0xc
lea edx, [ebp - 0x804]
mov ecx, ebx
call fcn.00402150
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40260a
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x402623
xor esi, esi
test edi, edi
jne 0x40263f
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov esi, 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
Function at 0x402660
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402679
pop edi
pop ebp
ret
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x402696
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4026a6
push esi
call edi
pop esi
mov eax, 1
pop edi
pop ebp
ret
Function at 0x404b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5caf32
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x66937c]
test eax, eax
jne 0x404bd7
push 0x15c
call fcn.0059ce1e
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x404bc9
mov ecx, eax
call fcn.00439760
jmp 0x404bcb
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x66937c], eax
mov ecx, eax
call fcn.0043cd98
mov edx, eax
mov dword [ebp - 0x30], 0
mov ecx, edx
mov dword [ebp - 0x2c], 7
xor eax, eax
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404c00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004032c0
push 8
push str.BKUt.exe
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.00405ab0
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x5d4950
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004032c0
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], 2
call fcn.00405ab0
push 2
push 0x5d4954
lea ecx, [ebp - 0x28]
call fcn.00405ab0
push 3
push 0x5d495c
lea ecx, [ebp - 0x28]
call fcn.00405ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x44]
push 0x5d4900
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
call fcn.00404240
add esp, 8
test eax, eax
je 0x404d36
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
push 1
push dword [ebp - 0x44]
lea eax, [ebp - 0x48]
movlpd qword [ebp - 0x80], xmm0
push eax
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x84], str.winsta0default
mov dword [ebp - 0x48], 0
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x404d36
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push dword [ebp - 0x48]
push 0x420
push 0
push 0
push 0
push esi
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404d6c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404d62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404dd0
push edx
push ecx
call fcn.0059ce4e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x404db6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404dac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404dd5
push edx
push ecx
call fcn.0059ce4e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
call fcn.005a5c79
call fcn.005a5c79
int3
Function at 0x405730
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb032
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405799
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x238]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4057c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004032c0
push 1
push 0x5d4964
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00405ab0
push 0xc
push 0x5d4968
lea ecx, [ebp - 0x230]
call fcn.00405ab0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x231]
call fcn.004087f0
lea ecx, [ebp - 0x231]
mov byte [ebp - 4], 1
call fcn.0059b5d7
mov eax, dword fs:[0x2c]
mov ecx, dword [0x66c934]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x669378]
cmp eax, dword [ecx + 4]
jg 0x4058c8
mov ecx, 0x669374
call fcn.0059b5d7
lea ecx, [ebp - 0x231]
call fcn.00403f30
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4058af
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4058a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40590c
push edx
push ecx
call fcn.0059ce4e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
push 0x669378
call fcn.0059d296
add esp, 4
cmp dword [0x669378], 0xffffffff
jne 0x40585e
mov ecx, 0x669374
mov byte [ebp - 4], 2
call fcn.004087f0
push 0x5d3ca0
call fcn.0059d0e1
push 0x669378
mov byte [ebp - 4], 1
call fcn.0059d24c
add esp, 8
jmp 0x40585e
call fcn.005a5c79
int3
Function at 0x40ba70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40bb7a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ecx + 2]
sub ecx, eax
lea edx, [eax + 2]
add ecx, 0xfffffffe
lea eax, [edi - 1]
mov dword [ebp + 0x14], edx
shr eax, 3
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
push ecx
push dword [ebp - 0xc]
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
call fcn.0040ad10
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [ebp + 0x14]
add esp, 0xc
movzx eax, byte [ecx + 0x100]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [ebp - 4], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [ebp - 8]
jne 0x40bab0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x414650
Capabilities:
Delete registry value
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x414785
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x414785
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x4146b4
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x414780
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x414780
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x414780
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test eax, eax
je 0x414780
push ebx
call edi
lea eax, [ebp - 0x24]
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 0x414768
push str.LocalWorkSvc
lea ecx, [ebp - 0x1c]
call fcn.004030c0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00403060
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d38a
mov esp, ebp
pop ebp
ret 4
push esi
push 0x7e
jmp 0x414788
push esi
push 0x7d
call fcn.0043f58a
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0059d38a
mov esp, ebp
pop ebp
ret 4
Function at 0x417f20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 0xc]
push 0xf003f
neg eax
push 0
sbb eax, eax
push 0x5d6a40
add eax, reloc.WS2_32.dll_bind
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417f67
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]
mov esp, ebp
pop ebp
ret 8
Function at 0x419160
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x41925a
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp + 0x10]
push esi
push edi
push eax
push 0xf003f
push 0
push 0x5d6a40
push reloc.WS2_32.dll_bind
mov dword [ebp + 0x10], 0
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4191b7
push 0x5d4b80
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0xf003f
push 0
push 0x5d6a40
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x4191e8
push 0x5d4b80
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0xf003f
push 0
push 0x5d6a40
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x419219
push 0x5d4e18
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0xf003f
push 0
push 0x5d6a40
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x41924a
push 0x5d4e18
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
mov ecx, dword [ebp - 4]
push 1
push dword [ebp + 0xc]
call fcn.00418860
pop edi
pop esi
pop ebx
cmp dword [ebp + 8], 0
je 0x419272
call fcn.00419280
test eax, eax
je 0x419272
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x24]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00419280
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x60]
call eax
test al, al
je 0x4195f3
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005a26c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4195f3
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004199b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0059d38a
mov esp, ebp
pop ebp
ret
Function at 0x41a480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccb5a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x667d00]
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
mov eax, dword [0x66937c]
test eax, eax
jne 0x41a4e7
push 0x15c
call fcn.0059ce1e
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41a4d9
mov ecx, eax
call fcn.00439760
jmp 0x41a4db
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x66937c], eax
mov ecx, eax
call fcn.0043cd98
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a510
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004032c0
push 9
push str.BKPdf.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00405ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a592
cmp dword [ebp + 8], 0
mov ecx, esi
je 0x41a586
cmp dword [ebp + 0xc], 0
jne 0x41a56e
call fcn.0041a810
test eax, eax
je 0x41a573
mov ecx, esi
call fcn.00419d10
cmp dword [ebp + 0x10], 0
mov ecx, esi
jne 0x41a58d
call fcn.0041a5f0
test eax, eax
je 0x41a592
jmp 0x41a58b
call fcn.00419d10
mov ecx, esi
call fcn.00419590
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41a5c8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a5be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a5e5
push edx
push ecx
call fcn.0059ce4e
add esp, 8
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.0059d38a
mov esp, ebp
pop ebp
ret 0xc
call fcn.005a5c79
int3
Function at 0x41a5f0
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccb8b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a26c0
add esp, 0xc
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
push eax
push 0x6568d8
call fcn.004032c0
xor esi, esi
mov dword [ebp - 4], 0
push esi
push 0x10
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a6e4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a687
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004032c0
push 1
push 0x5d4964
lea ecx, [ebp - 0x230]
call fcn.00405ab0
push 0xe
push 0x5d4b80
lea ecx, [ebp - 0x230]
call fcn.00405ab0
push 4
push 0x5d6cb8
lea ecx, [ebp - 0x230]
call fcn.00405ab0
mov esi, 1
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a75e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a704
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004032c0
push 1
push 0x5d4964
lea ecx, [ebp - 0x230]
call fcn.00405ab0
push 0xe
push 0x5d4b80
lea ecx, [ebp - 0x230]
call fcn.00405ab0
push 4
push 0x5d6cb8
lea ecx, [ebp - 0x230]
call fcn.00405ab0
jmp 0x41a762
test esi, esi
je 0x41a7a5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0044721f
add esp, 4
test al, al
je 0x41a7a5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
jmp 0x41a7a7
xor esi, esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41a7e3
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a7d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a7ff
push edx
push ecx
call fcn.0059ce4e
add esp, 8
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.0059d38a
mov esp, ebp
pop ebp
ret
call fcn.005a5c79
int3