joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486c18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x486c72
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49521c]
cmp byte [eax], 0
je 0x486c42
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x486c5c
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405388
mov eax, dword [ebp - 4]
call fcn.004055f0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486c79
lea eax, [ebp - 4]
call fcn.00405150
ret

Function at 0x487700
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x48775c
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x48772b
call fcn.00410348
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.004030f4
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x48775c
call fcn.00410348
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x48ac4c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ddc
xor eax, eax
push ebp
push 0x48ad4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00405c78
jne 0x48ac9f
mov ecx, 0x48ad68
mov dl, 1
mov eax, dword [0x4089ec]
call fcn.0040ea1c
mov edx, eax
mov dword [edx + 0xc], 3
mov eax, edx
call fcn.00404ac4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048a254
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004059cc
mov eax, dword [ebp - 4]
call fcn.00405b44
call fcn.0043250c
cmp eax, 3
jb 0x48ad34
mov eax, dword [ebp - 4]
call fcn.0048a4ec
test al, al
jne 0x48ad34
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0048a384
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405c78
je 0x48ad34
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0048a2fc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00405c78
je 0x48ad34
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0048a2fc
mov eax, dword [ebp - 0x14]
call fcn.0048ac4c
test al, al
je 0x48ad2e
push 0
mov eax, dword [ebp - 4]
call fcn.00405b44
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x48ad32
xor ebx, ebx
jmp 0x48ad34
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad56
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405980
ret
Function at 0x48b1b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd68
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x298], edx
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x280], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ddc
lea eax, [ebp - 0x278]
mov edx, dword [0x48a230]
call fcn.00405dfc
xor eax, eax
push ebp
push 0x48b42f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 4]
call fcn.0048a254
mov edx, dword [ebp - 0x280]
lea eax, [ebp - 4]
call fcn.004059cc
mov dl, 1
mov eax, dword [0x488a4c]
call fcn.00489074
mov dword [ebp - 0x27c], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x48b3da
lea ecx, [ebp - 0x284]
mov edx, esi
mov eax, dword [ebp - 0x27c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 4]
mov ecx, 0x48b440
call fcn.00405bc0
lea eax, [ebp - 0x288]
mov ecx, 0x48b448
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x278]
mov edx, 0x3f
call fcn.0048a5b0
test eax, eax
jne 0x48b3ce
mov eax, dword [ebp - 0x268]
and eax, 0x10
cmp eax, 0x10
je 0x48b33d
mov edx, 0x48b454
mov eax, dword [ebp - 0x264]
call fcn.00409b3c
test eax, eax
jne 0x48b2d5
mov bl, 1
jmp 0x48b2ea
mov edx, 0x48b46c
mov eax, dword [ebp - 0x264]
call fcn.00409b3c
test eax, eax
sete bl
test bl, bl
jne 0x48b3bb
push 0x80
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov eax, dword [ebp - 0x28c]
call fcn.00405b44
push eax
call sub.kernel32.dll_SetFileAttributesW
lea eax, [ebp - 0x290]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov eax, dword [ebp - 0x290]
call fcn.0048a514
jmp 0x48b3bb
mov eax, dword [ebp - 0x264]
cmp word [eax], 0x2e
je 0x48b3bb
mov edx, dword [ebp - 0x264]
mov eax, 0x48b488
call fcn.0048ac00
test al, al
jne 0x48b396
mov edx, dword [ebp - 0x264]
mov eax, 0x48b49c
call fcn.0048ac00
test al, al
jne 0x48b396
lea eax, [ebp - 0x294]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov eax, dword [ebp - 0x294]
mov cl, 1
mov dl, 1
call fcn.0048ae1c
jmp 0x48b3bb
lea eax, [ebp - 0x298]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov edx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x278]
call fcn.0048a5fc
test eax, eax
je 0x48b2ab
inc esi
lea eax, [ebp - 0x278]
call fcn.0048a620
mov eax, dword [ebp - 0x27c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jl 0x48b254
mov eax, dword [ebp - 0x27c]
call fcn.00404250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b436
lea eax, [ebp - 0x298]
mov edx, 7
call fcn.00405980
lea eax, [ebp - 0x278]
mov edx, dword [0x48a230]
call fcn.00405ecc
lea eax, [ebp - 4]
call fcn.00405968
ret
Function at 0x48b9c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004055e0
mov eax, dword [ebp - 8]
call fcn.004055e0
xor eax, eax
push ebp
push 0x48bba6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x48ba48
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x48ba3c
sub eax, 4
mov eax, dword [eax]
lea eax, [eax + esi + 1]
mov esi, eax
inc ebx
dec dword [ebp - 0x1c]
jne 0x48ba1d
inc esi
mov eax, esi
call fcn.00402ef8
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x48bb6f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, esi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
call fcn.004039e4
xor esi, esi
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x48baf0
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x48baa6
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
call fcn.004055f0
mov edx, dword [ebp - 0x10]
add edx, esi
mov ecx, dword [ebp - 0x20]
call fcn.004030f4
lea ecx, [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x48bae7
sub eax, 4
mov eax, dword [eax]
inc eax
add esi, eax
inc ebx
dec dword [ebp - 0x1c]
jne 0x48ba7c
inc esi
lea eax, [ebp - 0x18]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 4]
call fcn.004055f0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48bb59
xor eax, eax
push ebp
push 0x48bb52
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
mov eax, dword [ebp - 0x10]
push eax
push 7
push 0
mov eax, dword [ebp - 8]
call fcn.004055f0
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bb59
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bb76
mov eax, dword [ebp - 0x10]
call fcn.00402f14
ret
Function at 0x48c19c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ddc
xor eax, eax
push ebp
push 0x48c38d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48c34a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004059cc
mov edx, dword [ebp - 4]
mov eax, 0x48c3a8
call fcn.00405d48
cmp eax, 2
jne 0x48c2b9
lea eax, [ebp - 0x248]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 2]
call fcn.00405a84
mov eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x24c]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
call fcn.00405a84
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 8]
pop ecx
call fcn.00405bc0
lea eax, [ebp - 0x242]
xor ecx, ecx
mov edx, 0x20a
call fcn.004039e4
push 0x20a
lea eax, [ebp - 0x242]
push eax
mov eax, dword [ebp - 8]
call fcn.00405b44
push eax
call sub.kernel32.dll_QueryDosDeviceW
movzx eax, byte [0x48c3ac]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x242]
mov ecx, 0x105
call fcn.00405b18
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004325ac
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0xc]
call fcn.004059cc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.0048c0a8
xor eax, eax
push ebp
push 0x48c32d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405b44
push eax
lea eax, [ebp - 0x20]
push eax
call dword [0x494d38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.NTDLL.DLL_NtCreatePagingFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c334
call fcn.0048c120
ret
Function at 0x48c6d8
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x48c6e0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48c8e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4198fc]
call fcn.00404220
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x48c8c1
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x424b40]
call fcn.00424c78
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x48c807
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.0048c4a4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
mov ebx, eax
test ebx, ebx
jl 0x48c7f1
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00424cb4
mov edx, dword [0x48c3f4]
call fcn.00404400
mov edi, eax
lea eax, [ebp - 0x10]
movzx edx, byte [edi + 4]
call fcn.00405338
lea eax, [ebp - 0x10]
mov edx, 0x48c8fc
call fcn.0040542c
mov eax, dword [ebp - 0x10]
call fcn.0040a654
test al, al
je 0x48c7e9
lea eax, [ebp - 0x14]
movzx edx, byte [edi + 4]
call fcn.00405338
lea eax, [ebp - 0x14]
mov edx, 0x48c8fc
call fcn.0040542c
mov eax, dword [ebp - 0x14]
call fcn.004055f0
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x48c7e9
push 4
push 0
lea eax, [ebp - 0x18]
movzx edx, byte [edi + 4]
call fcn.00405338
lea eax, [ebp - 0x18]
mov edx, 0x48c8fc
call fcn.0040542c
mov eax, dword [ebp - 0x18]
call fcn.004055f0
push eax
call sub.kernel32.dll_MoveFileExA
inc esi
dec ebx
jne 0x48c751
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c80e
lea eax, [ebp - 8]
call fcn.004108d8
ret
Function at 0x48da68
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
movzx ebx, bl
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
movzx edx, dl
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax*8 + 0x494ea0]
movzx eax, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x48daa0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x48dab8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x48dab1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.004039e4
xor edx, edx
mov eax, 0x4950a0
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x48db1f
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x48dad6
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x48dd60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x48dd79
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x48dd72
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x48dd8b
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x48dd84
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0048d958
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x48dda5
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.0048da68
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x48de2d
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x48de4b
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0048d9e8
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x48de75
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48de8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x48dea5
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x48de9e
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x48deb9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048d858
test bl, bl
jne 0x48df93
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x49b09c
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x48def1
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x48df06
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048dd60
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x48df39
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x48dee6
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x48df5d
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x48df6f
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x48df84
jmp 0x48e054
cmp bl, 1
jne 0x48e054
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x49b0f6
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x48dfb3
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x48dfc8
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048dd60
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x48dffb
sub ebx, 6
inc dword [ebp - 8]
jne 0x48dfa8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x48e023
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x48e035
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x48e04a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048d8d8
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x48e4b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055e0
xor eax, eax
push ebp
push 0x48e527
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004055f0
mov dword [ebp - 8], eax
mov eax, dword [ebx*4 + 0x495120]
call fcn.004055f0
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push ebx
call sub.advapi32.dll_ReportEventA
push ebx
call sub.advapi32.dll_DeregisterEventSource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e52e
lea eax, [ebp - 4]
call fcn.00405150
ret

Function at 0x48e630
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x48e6bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x49b0fc
xor ecx, ecx
mov edx, 0x58
call fcn.004039e4
mov dword [0x49b0fc], 0x58
push 0x49b0fc
call sub.PDRIVESDK.dll_PdriveSdk_Initialize
mov esi, eax
test esi, esi
je 0x48e69e
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, esi
call fcn.0048be84
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x48e6d4
call fcn.00405478
mov eax, dword [ebp - 4]
call fcn.004055f0
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x48e6a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e6c2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405174
ret

Function at 0x48e6e4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x48e7a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov ecx, 0xcc
mov edx, 8
call fcn.004039e4
push esi
lea eax, [ebp - 0x10]
push eax
call dword [0x49b100]
mov esi, eax
test esi, esi
je 0x48e756
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0048be84
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x48e7b8
call fcn.00405478
mov eax, dword [ebp - 0x24]
call fcn.004055f0
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x48e785
lea edx, [ebp - 8]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.004082e0
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
mov ecx, 8
call fcn.004082e0
push edi
push 0x10
lea eax, [ebp - 0x20]
push eax
call dword [0x49b140]
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e7a7
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405174
ret
Function at 0x48fd80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x48feb4
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, 0x49b200
xor ecx, ecx
mov edx, 0x68
call fcn.004039e4
xor edx, edx
push ebp
push 0x48fe8f
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, 1
lea eax, [ebp - 0x14]
mov edx, 0x48fecc
movzx edx, byte [edx + ebx - 1]
call fcn.00405338
lea eax, [ebp - 0x14]
mov edx, 0x48fed8
call fcn.0040542c
mov eax, dword [ebp - 0x14]
call fcn.004055f0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x48fe7b
inc esi
mov dword [0x49b200], esi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x18]
mov edx, 0x48fecc
movzx edx, byte [edx + ebx - 1]
call fcn.00405338
lea eax, [ebp - 0x18]
mov edx, 0x48fed8
call fcn.0040542c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0048bbb8
mov edx, 0x48fecc
movzx edx, byte [edx + ebx - 1]
lea eax, [esi + esi*2]
mov byte [eax*8 + 0x49b1f0], dl
mov edx, dword [ebp - 8]
mov dword [eax*8 + 0x49b1f8], edx
mov edx, dword [ebp - 4]
mov dword [eax*8 + 0x49b1fc], edx
mov byte [eax*8 + 0x49b200], 1
inc ebx
cmp ebx, 4
jne 0x48fdc5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48fe99
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48febb
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00405174
ret

Function at 0x4909a4
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov ebx, eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x490a4f
xor eax, eax
push ebp
push 0x490a48
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebx + 8]
call fcn.004055f0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x490a31
xor eax, eax
push ebp
push 0x490a2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ControlService
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490a31
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490a4f
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
pop ebx
mov esp, ebp
pop ebp
ret