joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435930
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x49b5ab
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x45c]
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], ax
mov dword [esp + 0x454], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push 0x2001f
push 1
push esi
push esi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, esi
jne 0x435a7c
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push esi
push 1
push esi
push str.URL_Protocol
push eax
call ebp
cmp eax, esi
jne 0x435a7c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push 0x2001f
push 1
push esi
push esi
push str.shellopencommand
push eax
call edi
cmp eax, esi
jne 0x435a7c
lea edi, [esp + 0x28]
call fcn.0040e270
test eax, eax
je 0x435a7c
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x435a23
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
push str.__s________1_
push ecx
mov ecx, 0x200
call fcn.00404a10
add esp, 0xc
cmp eax, esi
jl 0x435a7c
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x435a46
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
push 1
push esi
push 0x4a5b20
push eax
call ebp
cmp eax, esi
jne 0x435a7c
mov dword [esp + 0x20], 1
jmp 0x435a88
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x435a99
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x435aa4
push eax
call edi
mov dword [esp + 0x454], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x435ac3
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00471eaf
add esp, 4
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], dx
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00471eba
add esp, 0x444
ret 4
Function at 0x436e70
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x49b570
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov esi, ecx
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov dword [esp + 0x5c], ebx
xor edx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], dx
mov byte [esp + 0x5c], 1
lea edi, [esp + 0x34]
call fcn.0040e270
test eax, eax
jne 0x436f3e
mov byte [esp + 0x5c], bl
mov edi, 8
cmp dword [esp + 0x4c], edi
jb 0x436f03
mov eax, dword [esp + 0x38]
push eax
call fcn.00471eaf
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x30], edi
jb 0x436f32
mov edx, dword [esp + 0x1c]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov word [esp + 0x1c], ax
jmp 0x43701e
push 0x4a801c
push str.360seURL
call fcn.0047221c
add esp, 8
mov edi, 8
test eax, eax
je 0x436f85
push str..htm
push str.360seURL
call fcn.0047221c
add esp, 8
test eax, eax
je 0x436f85
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x436f7d
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
push eax
jmp 0x436f8b
lea edx, [esp + 0x18]
push edx
push ebx
mov edx, str.360seURL
mov ecx, esi
call fcn.00431500
cmp eax, ebx
je 0x436fcb
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x436fa9
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + ecx + 2]
push edx
push eax
push 1
push ebx
push str.Hash
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, 1
cmp eax, ebx
je 0x436fcf
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x4c], edi
jb 0x436fe6
mov eax, dword [esp + 0x38]
push eax
call fcn.00471eaf
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x30], edi
jb 0x437015
mov edx, dword [esp + 0x1c]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00471eba
add esp, 0x4c
ret 4
Function at 0x437e80
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0xe28
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0xe20], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0xbff
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00476ef0
add esp, 0xc
push 0xff
lea ecx, [esp + 0xc2d]
push ebx
push ecx
mov dword [esp + 0x24], 0xc00
mov byte [esp + 0xc34], bl
call fcn.00476ef0
add esp, 0xc
push 0xff
lea edx, [esp + 0xd2d]
push ebx
push edx
mov byte [esp + 0xd34], bl
call fcn.00476ef0
mov eax, pe_nt_image_headers32
add esp, 0xc
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
call fcn.0040f530
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
cmp ebp, ebx
je 0x437f42
push ebp
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x437f42
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe20]
xor ecx, esp
call fcn.00471eba
add esp, 0xe28
ret
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc2c]
push ecx
push 2
call sub.Secur32.dll_GetUserNameExA
movzx esi, al
cmp esi, ebx
je 0x437fd5
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xd30]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc3c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov esi, eax
cmp esi, ebx
je 0x437fd5
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
xor edx, edx
push ecx
mov word [edi], dx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov esi, eax
cmp esi, ebx
je 0x437fd5
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x437fd1
mov edx, edi
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x437fb6
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 1
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
je 0x437fe6
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xe2c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0xe28
ret
Function at 0x438fd0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x43902a
push ebp
push esi
push 4
push 0x4a55f0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x439025
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x439022
cmp dword [esp + 0x14], 4
jne 0x439022
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x439040
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push 0xf003f
push 0
push 0
mov dword [ebx], 2
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x43907f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add eax, 0x3d0900
mov dword [ebx], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push edi
push 0x14
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4390ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, str.m_D.
push esi
mov dword [ebx], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4390e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x5b8d80
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx], eax
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x14], 4
je 0x43919e
call fcn.0041ff00
test eax, eax
jne 0x439182
push 0x4a22d4
push ebp
call fcn.0047221c
add esp, 8
test eax, eax
jne 0x43912d
mov ecx, dword [esp + 0x14]
add ecx, 0x895440
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx], ecx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x43919e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x439165
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx], 3
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
add eax, 0x6acfc0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx], eax
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx], 8
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx], 1
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x439300
Capabilities:
Delete service
Persist via windows service
Set registry value
Stop service

Disassembly:
sub esp, 0x20
push ebx
push edi
push 0xf003f
push 0
push 0
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x439325
pop edi
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x2c]
push ebp
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x43939c
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x43938c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x43938c
push 4
lea edx, [esp + 0x14]
push edx
push 4
push str.DeleteFlag
push str.SYSTEMCurrentControlSetServices360bpsvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push edi
xor ebx, ebx
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x4393b0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
test ebx, ebx
je 0x43941b
push 0x10020
push 0x4a22d4
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x439416
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
test edi, edi
jne 0x439411
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x439416
mov edi, 1
push ebx
call ebp
jmp 0x43941f
mov esi, dword [esp + 0x10]
test esi, esi
je 0x439426
push esi
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x439430
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00476ef0
add esp, 0xc
call fcn.00409f80
test eax, eax
je 0x439481
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00471eba
add esp, 0x20c
ret
push esi
push 0x4a22ac
call fcn.00439300
mov esi, eax
add esp, 4
test esi, esi
jne 0x4394ab
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00471eba
add esp, 0x20c
ret
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x104
lea eax, [esp + 4]
cmp word [eax], 0
je 0x4394ea
add eax, 2
sub ecx, 1
jne 0x4394c4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00471eba
add esp, 0x20c
ret
test ecx, ecx
je 0x439530
mov eax, 0x104
sub eax, ecx
push SysReAllocString
mov ecx, 0x104
push str.drivershookport.sys
sub ecx, eax
lea edx, [esp + eax*2 + 0xc]
call fcn.00404a70
test eax, eax
jl 0x439530
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x439530
push 4
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00471eba
add esp, 0x20c
ret
Function at 0x439550
Capabilities:
Delete file
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x497be0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, 7
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], ax
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x34]
call fcn.0040ccf0
test eax, eax
jne 0x4395ce
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x4395c5
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
xor eax, eax
jmp 0x439678
lea eax, [esp + 0x18]
push eax
mov edi, str._nhplib.dat
lea ecx, [esp + 0x38]
call fcn.00402db0
add esp, 4
mov byte [esp + 0x5c], 1
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x4395f8
mov eax, dword [eax + 4]
jmp 0x4395fb
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x30], edi
jb 0x439619
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00471eaf
add esp, 4
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.Installed
push str.SYSTEMCurrentControlSetServices360bpsvc
xor edx, edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x4a22c0
call fcn.00439300
add esp, 4
mov esi, eax
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x439674
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov eax, esi
mov word [esp + 0x38], dx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00471eba
add esp, 0x4c
ret
Function at 0x4396b0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4992fb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4a5b20
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call fcn.004087d0
mov dword [esp + 0x90], ebx
xor eax, eax
push esi
mov byte [esp + 0x64], bl
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov word [esp + 0x71], ax
mov byte [esp + 0x73], al
mov byte [esp + 0x74], bl
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43977e
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00430440
add esp, 0xc
test eax, eax
jne 0x439799
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00404e20
xor eax, eax
jmp 0x4398f7
push 0x517930
mov edi, esi
call fcn.00405520
test eax, eax
je 0x439777
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4398de
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
call fcn.00430440
add esp, 0xc
test eax, eax
je 0x4398de
push 0x517930
call fcn.00405520
test eax, eax
je 0x4398de
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
jne 0x4398de
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
ja 0x4398de
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jne 0x43977e
cmp edi, edx
ja 0x4398de
jne 0x43977e
mov edx, esi
lea eax, [esp + 0x28]
call fcn.004028a0
mov byte [esp + 0x90], 1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x44]
call fcn.004028a0
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040d9c0
add esp, 4
test eax, eax
je 0x439897
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x48]
call fcn.0040d9c0
add esp, 4
test eax, eax
je 0x439897
mov eax, 0x10
xor ecx, ecx
mov edx, dword [esp + ecx + 0x60]
cmp edx, dword [esp + ecx + 0x70]
jne 0x4398bd
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x439882
mov byte [esp + 0x90], 1
lea esi, [esp + 0x44]
call fcn.00428ca0
mov byte [esp + 0x90], bl
lea esi, [esp + 0x28]
call fcn.00428ca0
jmp 0x43977e
mov byte [esp + 0x90], 1
lea esi, [esp + 0x44]
call fcn.00428ca0
mov byte [esp + 0x90], bl
lea esi, [esp + 0x28]
call fcn.00428ca0
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00404e20
mov eax, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00471eba
mov esp, ebp
pop ebp
ret
Function at 0x439920
Capabilities:
Delete file

Disassembly:
sub esp, 0x238
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
push 0x208
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x2e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x34], ax
call fcn.00476ef0
lea eax, [esp + 0x34]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x439981
movzx ecx, word [esi + eax]
cmp cx, di
je 0x439981
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x439961
jmp 0x439985
cmp edx, edi
jne 0x439988
sub eax, 2
xor edx, edx
mov word [eax], dx
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], ax
lea edx, [esp + 8]
mov eax, 0x10
lea ecx, [esp + 0x28]
push edx
mov word [esp + 0x1c], ax
mov dword [esp + 0x22], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x26], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
test eax, eax
setge cl
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00471eba
add esp, 0x238
ret

Function at 0x439a10
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x439a44
mov ecx, esi
call fcn.00439920
jmp 0x439acf
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00476ef0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x439a69
mov eax, 0x80
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0047547d
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x439acf
call fcn.0047548f
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, 0x104
push edx
push esi
lea edx, [esp + 0x10]
push str._s._03d
push edx
call fcn.00404a10
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 1
lea eax, [esp + 0xc]
push eax
push esi
call edi
push 4
push 0
lea ecx, [esp + 0x10]
push ecx
call edi
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x214]
pop edi
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x210
ret
Function at 0x439af0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x499d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x42c], eax
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call fcn.00476ef0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x242]
push eax
mov word [esp + 0x244], dx
call fcn.00476ef0
add esp, 0x18
call fcn.00409f80
test eax, eax
je 0x439b6f
xor eax, eax
jmp 0x439cc1
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x104
lea eax, [esp + 0x24]
cmp word [eax], 0
je 0x439b98
add eax, 2
sub ecx, 1
jne 0x439b88
jmp 0x439bbd
test ecx, ecx
je 0x439bbd
mov eax, 0x104
sub eax, ecx
push SysReAllocString
mov ecx, 0x104
push str.drivers
sub ecx, eax
lea edx, [esp + eax*2 + 0x2c]
call fcn.00404a70
push 0x208
lea edx, [esp + 0x230]
push 0
push edx
call fcn.00476ef0
add esp, 0xc
push str.hookport.sys
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], dx
mov dword [esp + 0x440], edx
lea ecx, [esp + 8]
call fcn.0040ccf0
test eax, eax
jne 0x439c28
push eax
push 0x4a5b20
lea esi, [esp + 0x10]
call fcn.00402bd0
jmp 0x439c48
push 9
push str.Download
lea eax, [esp + 0x10]
call fcn.004037d0
push 0xd
push 0x4a5ad0
lea eax, [esp + 0x10]
call fcn.004037d0
cmp dword [esp + 0x20], 8
mov esi, dword [esp + 0xc]
jae 0x439c57
lea esi, [esp + 0xc]
lea eax, [esp + 0x22c]
push eax
mov ecx, esi
call fcn.004396b0
add esp, 4
test eax, eax
jne 0x439c71
xor esi, esi
jmp 0x439c89
push esi
lea esi, [esp + 0x230]
call fcn.00439a10
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [esp + 0x440], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x439ca8
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], dx
mov eax, esi
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00471eba
add esp, 0x43c
ret