joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44733c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043ed09
and dword [ebp - 4], 0
cmp dword [0x46a918], 0
mov ebx, eax
jne 0x4473ed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44749e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4585a0
push edi
call esi
test eax, eax
je 0x44749e
push eax
call fcn.0043ec97
mov dword [esp], 0x458590
push edi
mov dword [0x46a918], eax
call esi
push eax
call fcn.0043ec97
mov dword [esp], 0x45857c
push edi
mov dword [0x46a91c], eax
call esi
push eax
call fcn.0043ec97
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46a920], eax
call esi
push eax
call fcn.0043ec97
pop ecx
mov dword [0x46a928], eax
test eax, eax
je 0x4473ed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043ec97
pop ecx
mov dword [0x46a924], eax
mov eax, dword [0x46a924]
cmp eax, ebx
je 0x447445
cmp dword [0x46a928], ebx
je 0x447445
push eax
call fcn.0043ed12
push dword [0x46a928]
mov esi, eax
call fcn.0043ed12
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x447445
test edi, edi
je 0x447445
call esi
test eax, eax
je 0x44743c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44743c
test byte [ebp - 0xc], 1
jne 0x447445
or dword [ebp + 0x10], 0x200000
jmp 0x44747e
mov eax, dword [0x46a91c]
cmp eax, ebx
je 0x44747e
push eax
call fcn.0043ed12
pop ecx
test eax, eax
je 0x44747e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44747e
mov eax, dword [0x46a920]
cmp eax, ebx
je 0x44747e
push eax
call fcn.0043ed12
pop ecx
test eax, eax
je 0x44747e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46a918]
call fcn.0043ed12
pop ecx
test eax, eax
je 0x44749e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4474a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023f0
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 [0x664340]
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.OLEAUT32.dll_SysReAllocString
call fcn.0046cf80
push ebx
push str.SYSTEMControlSet001Services_ws
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.00401b00
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 0x402538
mov edi, dword [ebp - 0x808]
test edi, edi
jne 0x402480
push 0x4c
push str.d:opflpdfprotectjkprotect_selfprotecttoolslib_registry.cpp
push str.m_hKey
call fcn.00480734
add esp, 0xc
push str.DeleteFlag
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
jne 0x4024a4
push 0x66
push str.d:opflpdfprotectjkprotect_selfprotecttoolslib_registry.cpp
push str.m_hKey
call fcn.00480734
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.00401b00
add esp, 0x10
test edi, edi
jne 0x4024fe
push 0x85
push str.d:opflpdfprotectjkprotect_selfprotecttoolslib_registry.cpp
push str.m_hKey
call fcn.00480734
add esp, 0xc
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402507
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 0x40258c
push esi
push str.___ws
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.00401b00
add esp, 0xc
lea edx, [ebp - 0x804]
mov ecx, ebx
call fcn.004020d0
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40258a
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4025a3
xor esi, esi
test edi, edi
jne 0x4025bf
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a851
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.0044a851
mov esp, ebp
pop ebp
ret
Function at 0x4025e0
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 0x4025f9
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 0x402616
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 0x402626
push esi
call edi
pop esi
mov eax, 1
pop edi
pop ebp
ret
Function at 0x4049d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca922
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6692fc]
test eax, eax
jne 0x404a37
push 0x15c
call fcn.0044a2e5
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x404a29
mov ecx, eax
call fcn.004393b0
jmp 0x404a2b
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6692fc], eax
mov ecx, eax
call fcn.0044f059
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 0x404a60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00403240
push 8
push 0x5d4934
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.004058f0
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x5d4948
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403240
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.004058f0
push 2
push 0x5d494c
lea ecx, [ebp - 0x28]
call fcn.004058f0
push 3
push 0x5d4954
lea ecx, [ebp - 0x28]
call fcn.004058f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x44]
push 0x5d48f8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
call fcn.004040a0
add esp, 8
test eax, eax
je 0x404b96
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 0x404b96
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 0x404bcc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404bc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c30
push edx
push ecx
call fcn.0044a315
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 0x404c16
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404c0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c35
push edx
push ecx
call fcn.0044a315
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.0044a851
mov esp, ebp
pop ebp
ret
call fcn.00470179
call fcn.00470179
int3
Function at 0x4054f0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5caa44
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
push 0
push 0
mov dword [ebp - 0x250], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405563
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x250]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405590
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403240
xor eax, eax
mov dword [ebp - 4], 1
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x220]
add eax, 0xd
mov dword [ebp - 0x238], 0
push eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x250], 1
call fcn.00405c40
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
push eax
call fcn.004058f0
push 0xd
push 0x5d495c
lea ecx, [ebp - 0x248]
call fcn.004058f0
lea ecx, [ebp - 0x230]
call fcn.00402fe0
movups xmm1, xmmword [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
movq xmm0, qword [ebp - 0x238]
movd eax, xmm1
movups xmmword [ebp - 0x230], xmm1
mov byte [ebp - 4], 0
cmovae ecx, eax
movq qword [ebp - 0x220], xmm0
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x249]
call fcn.004087a0
lea ecx, [ebp - 0x249]
mov byte [ebp - 4], 2
call fcn.004483a7
mov eax, dword fs:[0x2c]
mov ecx, dword [0x669448]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6692f8]
cmp eax, dword [ecx + 4]
jg 0x405715
mov ecx, 0x6692f4
call fcn.004483a7
lea ecx, [ebp - 0x249]
call fcn.00403e70
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4056fc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4056f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405759
push edx
push ecx
call fcn.0044a315
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.0044a851
mov esp, ebp
pop ebp
ret
push 0x6692f8
call fcn.0044a75d
add esp, 4
cmp dword [0x6692f8], 0xffffffff
jne 0x4056ab
mov ecx, 0x6692f4
mov byte [ebp - 4], 3
call fcn.004087a0
push 0x5d3620
call fcn.0044a5a8
push 0x6692f8
mov byte [ebp - 4], 2
call fcn.0044a713
add esp, 8
jmp 0x4056ab
call fcn.00470179
int3
Function at 0x40ba20
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 0x40bb2a
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.0040acc0
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 0x40ba60
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4143a0
Capabilities:
Delete registry value
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x664340]
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 0x4144d5
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4144d5
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x414404
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 0x4144d0
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4144d0
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 0x4144d0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test eax, eax
je 0x4144d0
push ebx
call edi
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionSvchost
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4144b8
push str.LocalWorkSvc
lea ecx, [ebp - 0x1c]
call fcn.00403040
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.00402fe0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a851
mov esp, ebp
pop ebp
ret 4
push esi
push 0x7e
jmp 0x4144d8
push esi
push 0x7d
call fcn.00451635
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0044a851
mov esp, ebp
pop ebp
ret 4
Function at 0x417b50
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 0x5d6a18
add eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417b97
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 0x418d90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x418e8a
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 0x5d6a18
push reloc.OLEAUT32.dll_SysReAllocString
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 0x418de7
push 0x5d4b64
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 0x5d6a18
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x418e18
push 0x5d4b64
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 0x5d6a18
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x418e49
push 0x5d4df4
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 0x5d6a18
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x418e7a
push 0x5d4df4
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.00418490
pop edi
pop esi
pop ebx
cmp dword [ebp + 8], 0
je 0x418ea2
call fcn.00418eb0
test eax, eax
je 0x418ea2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x24]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4191c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00418eb0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x60]
call eax
test al, al
je 0x419223
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046cf80
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 0x419223
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004195e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044a851
mov esp, ebp
pop ebp
ret
Function at 0x41a0b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc50a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x664340]
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 [0x6692fc]
test eax, eax
jne 0x41a117
push 0x15c
call fcn.0044a2e5
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41a109
mov ecx, eax
call fcn.004393b0
jmp 0x41a10b
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6692fc], eax
mov ecx, eax
call fcn.0044f059
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 0x41a140
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403240
push 9
push str.BKPdf.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.004058f0
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 0x41a1c2
cmp dword [ebp + 8], 0
mov ecx, esi
je 0x41a1b6
cmp dword [ebp + 0xc], 0
jne 0x41a19e
call fcn.0041a440
test eax, eax
je 0x41a1a3
mov ecx, esi
call fcn.00419940
cmp dword [ebp + 0x10], 0
mov ecx, esi
jne 0x41a1bd
call fcn.0041a220
test eax, eax
je 0x41a1c2
jmp 0x41a1bb
call fcn.00419940
mov ecx, esi
call fcn.004191c0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41a1f8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a1ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a215
push edx
push ecx
call fcn.0044a315
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.0044a851
mov esp, ebp
pop ebp
ret 0xc
call fcn.00470179
int3
Function at 0x41a220
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc53b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x664340]
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.0046cf80
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 0x6568a4
call fcn.00403240
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 0x41a314
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a2b7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403240
push 1
push 0x5d4d80
lea ecx, [ebp - 0x230]
call fcn.004058f0
push 8
push 0x5d4b64
lea ecx, [ebp - 0x230]
call fcn.004058f0
push 4
push 0x5d6ca4
lea ecx, [ebp - 0x230]
call fcn.004058f0
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 0x41a38e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a334
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403240
push 1
push 0x5d4d80
lea ecx, [ebp - 0x230]
call fcn.004058f0
push 8
push 0x5d4b64
lea ecx, [ebp - 0x230]
call fcn.004058f0
push 4
push 0x5d6ca4
lea ecx, [ebp - 0x230]
call fcn.004058f0
jmp 0x41a392
test esi, esi
je 0x41a3d3
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a3d3
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 0x41a3d5
xor esi, esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41a411
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a407
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a42d
push edx
push ecx
call fcn.0044a315
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.0044a851
mov esp, ebp
pop ebp
ret
call fcn.00470179
int3