joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x198
push 0
push esi
call fcn.005c9220
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x10], xmm0
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], 0
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0
movzx eax, byte [ecx + 0x24]
mov word [esi + 0xa4], ax
movzx eax, byte [ecx + 0x25]
mov word [esi + 0xa6], ax
movzx eax, word [ecx + 0x26]
mov word [esi + 0xa8], ax
movzx eax, byte [ecx + 0x28]
mov byte [esi + 0xaa], al
movzx eax, byte [ecx + 0x29]
mov byte [esi + 0xab], al
movzx eax, byte [ecx + 0x2a]
mov byte [esi + 0xac], al
movzx eax, byte [ecx + 0x2b]
mov byte [esi + 0xad], al
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x9c], eax
mov eax, dword [ecx + 0x30]
mov dword [esi + 0xa0], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], 0
mov eax, dword [ecx + 0x38]
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], 0
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], 0
movzx eax, byte [ecx + 0x40]
mov word [esi + 0xae], ax
movzx eax, byte [ecx + 0x41]
mov byte [esi + 0xc8], al
movzx eax, byte [ecx + 0x42]
mov byte [esi + 0xc9], al
movzx eax, byte [ecx + 0x43]
mov byte [esi + 0xca], al
mov eax, dword [ecx + 0x44]
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], 0
mov eax, dword [ecx + 0x48]
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], 0
mov eax, dword [ecx + 0x4c]
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], 0
mov eax, dword [ecx + 0x50]
mov dword [esi + 0xe4], eax
mov eax, dword [ecx + 0x54]
mov dword [esi + 0xe8], eax
mov eax, dword [ecx + 0x58]
mov dword [esi + 0xec], eax
mov eax, dword [ecx + 0x5c]
mov dword [esi + 0xf0], eax
mov eax, dword [ecx + 0x60]
mov dword [esi + 0xf4], eax
mov eax, dword [ecx + 0x64]
mov dword [esi + 0xf8], eax
lea eax, [ecx + 0x68]
push eax
push 0x10
lea eax, [esi + 0xfc]
push eax
push dword [0x644da8]
call fcn.004fba90
add esp, 0x20
pop esi
pop ebp
ret 8
Function at 0x4fe450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
shr ecx, 2
je 0x4fe479
mov edx, dword [ebx]
add ebx, 4
mov dword [edi], edx
add eax, edx
rol eax, 1
add edi, 4
xor eax, edx
dec ecx
jne 0x4fe466
pop ecx
mov edx, dword [ebx]
and ecx, 3
je 0x4fe496
shl ecx, 3
mov ebx, 1
shl ebx, cl
dec ebx
and edx, ebx
add eax, edx
mov dword [edi], edx
rol eax, 1
xor eax, edx
pop ebx
pop edi
pop ebp
ret

Function at 0x4fe4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
push ecx
shr ecx, 2
je 0x4fe4c0
mov edx, dword [ebx]
add ebx, 4
add eax, edx
rol eax, 1
xor eax, edx
dec ecx
jne 0x4fe4b2
pop ecx
mov edx, dword [ebx]
and ecx, 3
je 0x4fe4db
shl ecx, 3
mov ebx, 1
shl ebx, cl
dec ebx
and edx, ebx
add eax, edx
rol eax, 1
xor eax, edx
pop ebx
pop ebp
ret

Function at 0x500770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov ecx, dword [ebp + 0x1c]
mov esi, ecx
mov edx, dword [ebp + 8]
cmp ecx, ebx
mov ecx, dword [ebp + 0x18]
cmova esi, ebx
test ecx, ecx
je 0x5007c2
mov eax, dword [ecx]
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push edx
call dword [eax + 0x44]
test eax, eax
je 0x5007d5
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x5007b0
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
add edi, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, 3
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
lea ecx, [ebp + 0x10]
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x500801
add edi, dword [ebp + 0x10]
cmp esi, dword [ebp + 0x10]
jne 0x5007f5
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [ebp + 0xc], eax
sub ebx, esi
jne 0x50077e
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x500810
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp + 0x14]
mov eax, 3
add edi, dword [ebp + 0x10]
mov dword [ecx], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50d530
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0xffffffff
lea eax, [ebp - 0x28]
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x28
cmovne esi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0xc], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x50d5bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x50d5e2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.0050c6c0
add esp, 0xc
test eax, eax
je 0x50d5e2
cmp dword [ebp - 0x14], 0x28
jae 0x50d5c6
cmp esi, 0x28
jae 0x50d5e2
cmp dword [edi + 4], 0x24
jb 0x50d5e2
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
Function at 0x50e6b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x651b34], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], 0
je 0x50e7b4
mov esi, dword [ebp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x50e749
mov ecx, dword [edi + 0x24]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push edx
push 0
push 0
push 0
push 0
push 0x90020
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push ecx
movups xmmword [ebp - 0x18], xmm0
call eax
test eax, eax
jne 0x50e744
call ebx
cmp eax, 0x3e5
jne 0x50e7dd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call fcn.0050c6c0
add esp, 0xc
test eax, eax
je 0x50e7dd
mov eax, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [edi + 0x24]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x18], xmm0
call eax
test eax, eax
jne 0x50e794
call ebx
cmp eax, 0x3e5
jne 0x50e7dd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0050c6c0
add esp, 0xc
test eax, eax
je 0x50e7dd
test esi, esi
je 0x50e79e
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
cmp byte [edi + 1], 0x20
jne 0x50e7f0
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov dword [edi + 0x34], 0
call fcn.00533b60
add esp, 4
test eax, eax
jne 0x50e79e
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x34], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x34]
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push 0x5fcfcc
call dword [0x648de0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x50e885
mov dword [ebp - 0x24], 1
nop dword [eax + eax]
mov eax, esi
mov dword [ebp - 0x2c], esi
dec esi
test eax, eax
je 0x50e878
mov eax, dword [edi + 0x28]
push 0
sub eax, 0xffffff80
mov dword [ebp - 0x14], 0x440d
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0x86b
push eax
push 0x1c
push eax
push 1
push ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x50e871
test byte [ebp - 8], 1
je 0x50e820
mov dword [ebp - 0x24], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
Function at 0x519570
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 1
push dword [ebp + 8]
mov dword [ebp - 8], 1
call fcn.0050ea10
mov esi, eax
add esp, 8
test esi, esi
je 0x519663
lea eax, [ebp - 4]
push eax
push esi
call fcn.00504f60
add esp, 8
test eax, eax
je 0x5195d2
cmp word [esi], 0
je 0x5195cb
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
je 0x5195c0
mov ecx, 0x5c
mov word [eax], cx
mov eax, dword [ebp - 4]
add eax, 2
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [eax], cx
mov eax, esi
mov dword [ebp - 0xc], esi
jmp 0x5195d7
xor eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5195ee
test edx, edx
jne 0x5195ee
test ecx, ecx
je 0x519609
push dword [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
test ebx, ebx
jne 0x519617
test edi, edi
je 0x519650
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x51963b
xor ecx, ecx
mov dword [ebp - 8], eax
jmp 0x519641
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
test ebx, ebx
je 0x51964a
imul eax, ecx
mov dword [ebx], eax
test edi, edi
je 0x519650
mov dword [edi], ecx
push esi
call fcn.0058bb5f
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5206e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5fd73c]
movq xmm0, qword [str..x:]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ax, word [0x5fd740]
movq qword [ebp - 0x14], xmm0
mov word [ebp - 8], ax
call fcn.005d2385
add esp, 4
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [0x648de0]
mov edi, eax
cmp edi, 0xffffffff
je 0x5207d1
cmp dword [ebp + 0x10], 0xffffffff
lea eax, [ebp - 0x24]
push esi
push 0
push eax
mov esi, 0x28
mov dword [ebp - 0x18], 0
cmovne esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push esi
push ebx
push 0xc
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x5207b5
cmp dword [ebp - 0x24], 0x28
jae 0x520790
cmp esi, 0x28
jae 0x5207b5
cmp dword [ebx + 4], 0x24
jb 0x5207b5
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret

Function at 0x5207f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0xffffffff
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x28
cmovne esi, dword [ebp + 0x10]
push 0
push eax
push esi
push edi
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push 0x2d1400
push ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x52086e
cmp dword [ebp - 0x14], 0x28
jae 0x520853
cmp esi, 0x28
jae 0x52086e
cmp dword [edi + 4], 0x24
jb 0x52086e
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
Function at 0x520880
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
xor esi, esi
call fcn.0050dc20
add esp, 4
test eax, eax
je 0x520981
push ebx
push 0x1030
call fcn.00479f2b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x520979
push edi
push 0x1024
lea eax, [ebx + 0xc]
push esi
push eax
call fcn.005c9220
mov ecx, dword [ebp + 0xc]
lea edi, [ebx + 8]
add esp, 0xc
mov dword [ebx + 4], esi
xor eax, eax
cmp ecx, 1
setne al
push esi
add eax, 0x31
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push 0x1030
push ebx
push 0x1030
push ebx
push 0x2d1400
push dword [ebp + 8]
mov dword [edi], 3
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], 0x28
mov dword [edi + 0x14], 0x1000
call fcn.0050cb10
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x52094c
mov ecx, dword [edi + 0x10]
add ecx, edi
cmp dword [ebp + 0xc], 1
jne 0x520940
cmp word [ecx], si
je 0x52094c
cmp dword [ecx + 0x204], esi
jmp 0x520945
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x52094c
mov esi, 1
mov ecx, 0x1000
cmp dword [ebp + 0x14], ecx
cmovb ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edi
push ecx
push dword [ebp + 0x10]
call fcn.005c9900
push ebx
call fcn.0058bb5f
add esp, 0x10
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x520aa0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], 0x5fd760
test eax, eax
je 0x520ae5
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 8]
test eax, eax
je 0x520ac9
push 1
push eax
call dword [0x648ed0]
push 0
push 8
push dword [esi + 4]
call dword [0x648f2c]
push 0
push 0
push 0x10
push dword [esi + 4]
call dword [0x648f0c]
mov dword [esi], 0x5fd744
pop esi
ret

Function at 0x5212a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x5212c8
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x521080
call fcn.005d21c2
add esp, 0xc
cmp eax, 0xffffffff
je 0x5212e9
cmp dword [ebp - 0x14], 0
je 0x5212e3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x521301
mov eax, dword [ecx]
push 0
push dword [ebp + 0x14]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x521750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 1
test esi, esi
jne 0x521782
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x52179f
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, dword [ebp - 4]
test eax, eax
cmove ecx, esi
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x521670
call fcn.005d21c2
add esp, 0xc
pop esi
cmp eax, 0xffffffff
je 0x5217be
cmp dword [ebp - 0x14], 0
je 0x5217b8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5217e1
mov eax, dword [ecx]
push 0
push dword [ebp + 0x14]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x521a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 2
test eax, eax
jne 0x521ab8
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x5219d0
call fcn.005d21c2
add esp, 0xc
cmp eax, 0xffffffff
je 0x521ad9
cmp dword [ebp - 0x14], 0
je 0x521ad3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x521af1
mov eax, dword [ecx]
push 0
push dword [ebp + 0x14]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x52b640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
push ecx
shr ecx, 2
je 0x52b660
mov edx, dword [ebx]
add ebx, 4
add eax, edx
rol eax, 1
xor eax, edx
dec ecx
jne 0x52b652
pop ecx
and ecx, 3
je 0x52b679
xor edx, edx
add ebx, ecx
shl edx, 8
dec ebx
mov dl, byte [ebx]
dec ecx
jne 0x52b66a
add eax, edx
rol eax, 1
xor eax, edx
pop ebx
pop ebp
ret

Function at 0x52ce40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x1000
xor esi, esi
call fcn.00479f2b
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x52cec8
push edi
push dword [ebp + 0x1c]
xor ecx, ecx
push ecx
push dword [ebp + 0x18]
mov word [eax + 0xffe], cx
push 0x7ff
push dword [ebp - 4]
call fcn.0047ac00
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005d06f0
add esp, 0x1c
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x52cebc
push esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push dword [ebp - 4]
call fcn.0058bb5f
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x532c50
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [eax], esi
cmp dword [0x6516f8], esi
je 0x532ca6
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x6516f8]
cmp dword [ebp - 4], esi
je 0x532ca6
mov eax, dword [0x6527b0]
test eax, eax
je 0x532c9c
lea ecx, [ebp - 0x28]
push ecx
call eax
cmp word [ebp - 0x28], 9
jne 0x532c9c
mov eax, str.TBOFLHelper64.sys
jmp 0x532cab
mov esi, 0x661
jmp 0x532e21
mov eax, str.TBOFLHelper.sys
push 0xf003f
push 0
push 0
mov dword [0x6527b8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
test eax, eax
je 0x532e15
push ebx
push edi
push 0xf01ff
push dword [0x6527b8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x532d90
push 0x208
call fcn.00479f2b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x532dbe
push 0x104
push ebx
push 0
call dword [0x648e38]
cmp eax, 0x104
jae 0x532d78
push ebx
call fcn.00504ca0
push dword [0x6527b8]
push 0x104
push ebx
call fcn.00504d10
push 0
push ebx
call fcn.005d2924
add esp, 0x18
test eax, eax
jne 0x532d71
push eax
push eax
push eax
push eax
push eax
mov eax, dword [0x6527b8]
push ebx
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x532d7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x532d7d
mov esi, 2
jmp 0x532d7d
mov esi, 0x6f
push ebx
call fcn.0058bb5f
add esp, 4
test edi, edi
je 0x532dc3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x532db3
call ebx
cmp eax, 0x420
je 0x532db3
call ebx
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x532dc9
mov esi, 8
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call edi
pop edi
pop ebx
test esi, esi
jne 0x532e1f
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
push str..TBOFLHelper
call dword [0x648de0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x532e2a
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call fcn.00532e40
add esp, 4
jmp 0x532e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x532e2a
movzx esi, si
or esi, 0x80070000
and esi, 0xefffffff
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x532e40
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call ebx
test eax, eax
jne 0x532e7f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
test eax, eax
jne 0x532e7d
inc esi
cmp esi, 4
jb 0x532e65
xor esi, esi
cmp dword [0x6516f8], 0
mov dword [ebp - 0x24], 0
je 0x532eab
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x6516f8]
cmp dword [ebp - 0x24], 0
mov eax, str.TBOFLHelper64.sys
jne 0x532eb0
mov eax, str.TBOFLHelper.sys
push 0xf003f
push 0
push 0
mov dword [0x6527b4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x532f49
push 0xf01ff
push dword [0x6527b4]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x532f42
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x532f03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x532f3b
xor esi, esi
cmp dword [ebp - 0x1c], 1
je 0x532f32
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xa
jae 0x532f2f
push 0x1f4
call ebx
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
inc esi
cmp dword [ebp - 0x1c], 1
jne 0x532f11
mov ebx, dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret