joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510158
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x5102a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00406c34
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x510284
mov eax, dword [ebp - 0xc]
call fcn.00403230
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x51027d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x5102b8
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
movzx esi, word [eax + 8]
and si, 0xffff
mov edi, dword [eax + 0xc]
shr edi, 0x10
movzx eax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x1e], ax
lea edx, [ebp - 0x24]
movzx eax, bx
call fcn.004712c8
push dword [ebp - 0x24]
push 0x5102c8
lea edx, [ebp - 0x28]
movzx eax, si
call fcn.004712c8
push dword [ebp - 0x28]
push 0x5102c8
lea edx, [ebp - 0x2c]
movzx eax, di
call fcn.004712c8
push dword [ebp - 0x2c]
push 0x5102c8
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x1e]
call fcn.004712c8
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov edx, 7
call fcn.0040705c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510284
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0040324c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5102ae
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x511b78
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x43491c]
call fcn.00407644
xor eax, eax
push ebp
push 0x511d39
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x68f1d4], 0
jne 0x511bcc
mov ecx, dword [0x6995b4]
mov dl, 1
mov eax, dword [0x46ec60]
call fcn.00479264
call fcn.00405328
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403bd8
mov eax, ebx
call fcn.0040688c
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x511d48
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.00408de8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x511c13
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x511cdf
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x511ccb
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.00406db8
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00406e20
mov eax, dword [ebp - 4]
test eax, eax
je 0x511c6e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x511c6e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405d0c
mov ebx, eax
test ebx, ebx
je 0x511c79
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x511c96
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x511c96
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405d0c
mov edi, eax
test edi, edi
je 0x511ca1
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00406c34
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00406c34
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x511ccd
xor eax, eax
test al, al
je 0x511cd8
mov ebx, 0x15
jmp 0x511ce4
mov ebx, 0x10
jmp 0x511ce4
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x68f1d4]
call fcn.00511988
mov eax, dword [ebp - 0xc]
call fcn.00511988
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00408e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511d40
lea eax, [ebp - 0x14]
mov edx, dword [0x43491c]
call fcn.0040771c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x512fc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call fcn.00406ba8
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406db8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x51300c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret

Function at 0x51303c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret

Function at 0x513068
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret

Function at 0x513098
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00406ba8
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x5130d5
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.00406d64
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5130dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x513158
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x51313f
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.0040720c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51315f
lea eax, [ebp - 0x20c]
call fcn.00406b98
ret
Function at 0x513c3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x513d9f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x513cba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x513ce5
xor eax, eax
push ebp
push 0x513d27
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x513d52
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.00403634
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.00471f60
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513da6
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.00406ba0
ret

Function at 0x514800
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51487c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov edx, dword [ebp - 8]
inc edx
lea eax, [ebp - 4]
call fcn.00406af4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040688c
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x51485d
mov edx, dword [ebp - 8]
dec edx
lea eax, [ebp - 4]
call fcn.00406af4
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406e20
jmp 0x514866
mov eax, ebx
xor edx, edx
call fcn.00406ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514883
lea eax, [ebp - 4]
call fcn.004066a8
ret
Function at 0x514888
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x514ab6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406bfc
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403bd8
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.00403bd8
push 0x514ac4
push 0x514aec
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a198
test eax, eax
je 0x514912
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x51491e
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x514a96
test bl, bl
je 0x51494e
call fcn.00514c40
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x514969
lea eax, [ebp - 4]
mov edx, 0x514b14
call fcn.00406bfc
cmp dword [ebp - 0x11c], 5
jne 0x51498d
cmp dword [ebp - 0x118], 0
jne 0x51498d
lea eax, [ebp - 4]
mov edx, 0x514b38
call fcn.00406bfc
jmp 0x514a96
cmp dword [ebp - 0x11c], 5
jne 0x5149b1
cmp dword [ebp - 0x118], 1
jne 0x5149b1
lea eax, [ebp - 4]
mov edx, 0x514b60
call fcn.00406bfc
jmp 0x514a96
cmp dword [ebp - 0x11c], 5
jne 0x5149f7
cmp dword [ebp - 0x118], 2
jne 0x5149f7
cmp byte [ebp - 6], 1
jne 0x5149e5
cmp word [ebp - 0x144], 9
jne 0x5149e5
lea eax, [ebp - 4]
mov edx, 0x514b60
call fcn.00406bfc
jmp 0x514a96
lea eax, [ebp - 4]
mov edx, 0x514b84
call fcn.00406bfc
jmp 0x514a96
cmp dword [ebp - 0x11c], 6
jne 0x514a18
cmp dword [ebp - 0x118], 0
jne 0x514a18
lea eax, [ebp - 4]
mov edx, 0x514bb8
call fcn.00406bfc
jmp 0x514a96
cmp dword [ebp - 0x11c], 6
jne 0x514a39
cmp dword [ebp - 0x118], 1
jne 0x514a39
lea eax, [ebp - 4]
mov edx, 0x514be0
call fcn.00406bfc
jmp 0x514a96
cmp dword [ebp - 0x11c], 6
jne 0x514a5f
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x514a5f
lea eax, [ebp - 4]
mov edx, 0x514c00
call fcn.00406bfc
jmp 0x514a96
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x514a84
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x514a84
lea eax, [ebp - 4]
mov edx, 0x514c20
call fcn.00406bfc
jmp 0x514a96
cmp eax, 0xa
jne 0x514a96
lea eax, [ebp - 4]
mov edx, 0x514c20
call fcn.00406bfc
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514abd
lea eax, [ebp - 4]
call fcn.00406b98
ret

Function at 0x514d70
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret
Function at 0x515b10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x515ca5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.005100a8
mov esi, eax
mov dword [ebp - 0x234], 0x22c
lea edx, [ebp - 0x234]
mov eax, esi
call fcn.005100c8
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x515c71
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
call fcn.00472234
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.004703d4
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 4]
call fcn.004703d4
mov edx, dword [ebp - 0x244]
pop eax
call fcn.00407204
je 0x515c3b
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.004703d4
mov eax, dword [ebp - 0x248]
push eax
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 4]
call fcn.004703d4
mov edx, dword [ebp - 0x250]
pop eax
call fcn.00407204
jne 0x515c5e
mov eax, dword [ebp - 0x22c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov edi, eax
push 0
push edi
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
push edi
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x234]
mov eax, esi
call fcn.005100e8
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x515b96
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515cac
lea eax, [ebp - 0x250]
mov edx, 7
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x517774
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x51786c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00471f9c
cmp dword [ebp - 4], 0
je 0x5177b5
mov eax, dword [ebp - 4]
mov edx, 0x517888
call fcn.00407204
jne 0x5177c9
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [ebp - 8]
mov edx, 0x517898
call fcn.00406f8c
jmp 0x51782b
xor eax, eax
push ebp
push 0x5177fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x65
mov eax, dword [ebp - 4]
call fcn.00471a8c
test al, al
jne 0x5177f3
mov eax, dword [ebp - 4]
call fcn.00471ab0
dec ebx
jne 0x5177dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51782b
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
call fcn.00406c34
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
setne al
test al, al
je 0x517856
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00471bd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517873
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x5183c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x5183e1
add esp, 0xfffffff0
call fcn.00404974
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x518565
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.00406ba8
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004a0e54
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00404490
mov dl, 1
mov eax, dword [0x517404]
call fcn.00492014
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00406ba8
cmp dword [ebx + 0x10], 0
je 0x518534
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.00518068
mov eax, dword [ebx + 0x10]
call fcn.00471a44
test al, al
jne 0x51852a
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.00471f9c
mov eax, dword [ebp - 4]
test eax, eax
je 0x5184ac
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5184ac
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405d0c
test eax, eax
je 0x5184b5
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x5184c1
mov eax, dword [ebp - 4]
call fcn.0051819c
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00406c34
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x51852a
cmp dword [ebp + 8], 0
je 0x518524
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.00408324
test eax, eax
jle 0x518524
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00408324
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x518534
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x5182c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51856c
lea eax, [ebp - 8]
mov edx, dword [0x46ec08]
call fcn.0040860c
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x51ff64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x51ffd3
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x68f7e4]
mov eax, dword [eax*8 + 0x68f7e0]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x51ff88
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x51ffe4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x52000c
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x68f3e0]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x51ffee
pop esi
pop ebx
ret
Function at 0x524518
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x524549
dec al
je 0x524584
dec al
je 0x5245c9
dec al
je 0x524632
jmp 0x5246bc
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5246bc
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x524559
jmp 0x5246bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5246bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x524594
jmp 0x5246bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5246bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x5245f8
xor ebp, ebp
jmp 0x524608
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x524611
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5245d9
jmp 0x5246bc
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5246bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x52468b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00520010
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x524646
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret