joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507100
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5071ab
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov esi, 0x5071bc
lea edi, [ebp - 0x3c]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
pop edi
mov esi, 0x18
lea ebx, [ebp - 0x38]
lea eax, [ebp - 0x40]
movzx edx, word [ebx]
call fcn.0040794c
lea eax, [ebp - 0x40]
mov edx, 0x5071fc
call fcn.00407bf4
mov eax, dword [ebp - 0x40]
call fcn.0040785c
push eax
call sub.kernel32.dll_GetDriveTypeW
movzx edx, di
cmp eax, edx
je 0x507171
cmp di, 0x3f2
jne 0x50718a
lea eax, [ebp - 0x44]
movzx edx, word [ebx]
call fcn.0040794c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.00407bf4
mov eax, dword [ebp - 8]
add ebx, 2
dec esi
jne 0x50713d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5071b2
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004077c8
ret

Function at 0x507204
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x420], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5072dd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
mov edx, ebx
call fcn.0040794c
lea eax, [ebp - 0x420]
mov edx, 0x5072fc
call fcn.00407bf4
mov eax, dword [ebp - 0x420]
call fcn.0040785c
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x5072c2
mov eax, esi
lea edx, [ebp - 0x214]
mov ecx, 0x104
call fcn.004079e0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, edi
lea edx, [ebp - 0x41c]
mov ecx, 0x104
call fcn.004079e0
mov bl, 1
jmp 0x5072c4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5072e4
lea eax, [ebp - 0x420]
call fcn.004077c0
ret
Function at 0x50983c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov edi, edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x509a50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00509dac
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x509a23
lea eax, [ebp - 0x414]
xor ecx, ecx
mov edx, 0x202
call fcn.00404d7c
push pe_nt_image_headers32
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.user32.dll_GetClassNameW
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x509a11
push 4
push ebx
call sub.user32.dll_GetWindow
test eax, eax
jne 0x509a11
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x414]
mov ecx, 0x101
call fcn.004079e0
mov eax, dword [ebp - 0x418]
mov edx, 0x509a6c
call fcn.00407eb8
je 0x509a11
push pe_nt_image_headers32
lea eax, [ebp - 0x212]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
test eax, eax
je 0x509a11
mov edx, ebx
mov eax, edi
call fcn.00509cf0
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.0050a1e4
jmp 0x5099ff
lea edx, [ebp - 0x41c]
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.0050a210
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x10]
call fcn.0041468c
lea eax, [ebp - 8]
lea edx, [ebp - 0x212]
mov ecx, 0x101
call fcn.004079e0
lea edx, [ebp - 0x420]
mov eax, ebx
call fcn.004f5b74
mov eax, dword [ebp - 0x420]
lea edx, [ebp - 0xc]
call fcn.0041468c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00408288
test eax, eax
jne 0x5099a9
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00408288
test eax, eax
je 0x5099ff
mov ecx, ebx
mov dl, 1
mov eax, dword [0x50942c]
call fcn.0050a2cc
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.0050a26c
cmp eax, 0x25
jne 0x5099ff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x509a90
push dword [ebp - 8]
push 0x509af8
lea eax, [ebp - 0x424]
mov edx, 3
call fcn.00407d98
mov eax, dword [ebp - 0x424]
movzx ecx, word [0x509afc]
mov dl, 2
call fcn.00470518
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.0050a1ec
test al, al
jne 0x50993f
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x50989f
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509a57
lea eax, [ebp - 0x424]
mov edx, 4
call fcn.004077c8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004077c8
ret
Function at 0x509cf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x509d9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004f5b74
lea eax, [ebp - 0x204]
xor ecx, ecx
mov edx, 0x200
call fcn.00404d7c
push 0x200
lea eax, [ebp - 0x204]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x208]
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov ecx, dword [ebp - 0x208]
mov edx, edi
mov eax, esi
call fcn.00509c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509da2
lea eax, [ebp - 0x208]
call fcn.004077c0
lea eax, [ebp - 4]
call fcn.004077c0
ret
Function at 0x50de14
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x50de42
mov eax, ebx
call fcn.0050e8c8
cmp dword [ebx + 0x40], 0
je 0x50de3b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x50deb3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x50dea5
cmp dword [ebx + 8], 0
je 0x50de64
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x50de76
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x50dea5
cmp dword [ebx + 8], 0
je 0x50de57
cmp eax, 3
je 0x50de89
dec eax
jne 0x50de57
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x50de57
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x50de57
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x50ded1
cmp dword [ebx + 0x14], 0xcc
je 0x50ded1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0050dedc
pop ebx
ret
Function at 0x51e824
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x18]
mov edx, dword [0x51e32c]
call fcn.004084c0
xor eax, eax
push ebp
push 0x51ea4e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004179d4
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 8]
xor edx, edx
call fcn.00418694
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00407824
lea eax, [ebp - 0x222]
xor ecx, ecx
mov edx, 0x202
call fcn.00404d7c
push 0x202
lea eax, [ebp - 0x222]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextW
call sub.user32.dll_GetForegroundWindow
lea edx, [ebp - 4]
call fcn.004f5b74
lea edx, [ebp - 0x228]
mov eax, dword [ebp - 4]
call fcn.0041468c
mov eax, dword [ebp - 0x228]
push eax
lea eax, [ebp - 0x230]
call fcn.004f5c80
lea eax, [ebp - 0x230]
mov edx, 0x51ea68
call fcn.00407bf4
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x22c]
call fcn.0041468c
mov edx, dword [ebp - 0x22c]
pop eax
call fcn.00407eb8
jne 0x51e960
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x222]
mov ecx, 0x101
call fcn.004079e0
cmp dword [ebp - 0x234], 0
jne 0x51e960
push esi
mov esi, 0x51ea84
lea edi, [ebp - 0x222]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x222]
mov ecx, 0x101
call fcn.004079e0
lea eax, [ebp - 0x238]
call fcn.004f5a88
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x10]
call fcn.00407824
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x483], 0
je 0x51e9b9
lea edx, [ebp - 0x23c]
mov eax, ebx
call fcn.0051ec88
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0xc]
call fcn.00407824
jmp 0x51e9d4
lea edx, [ebp - 0x240]
mov eax, ebx
call fcn.0051ed5c
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 0xc]
call fcn.00407824
xor eax, eax
push ebp
push 0x51ea0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x542d44]
mov eax, dword [eax]
movzx eax, byte [eax + 0x287]
push eax
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, ebx
call fcn.0051eeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ea15
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ea55
lea eax, [ebp - 0x240]
mov edx, 7
call fcn.004077c8
lea eax, [ebp - 0x18]
mov edx, dword [0x51e32c]
call fcn.00408598
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077c8
ret
Function at 0x522894
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
xor edx, edx
push ebp
push 0x522986
push dword fs:[edx]
mov dword fs:[edx], esp
movzx ebx, al
add ebx, 0x41
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040794c
lea eax, [ebp - 4]
mov edx, 0x5229a0
call fcn.00407bf4
mov eax, dword [ebp - 4]
call fcn.0040785c
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 6
ja case.default.0x5228df
jmp dword [eax*4 + 0x5228e6]
mov eax, esi
mov edx, 0x5229b4
call fcn.004077d0
jmp 0x522970
mov eax, esi
mov edx, 0x5229c4
call fcn.004077d0
jmp 0x522970
mov eax, esi
mov edx, 0x5229fc
call fcn.004077d0
jmp 0x522970
mov eax, esi
mov edx, 0x522a1c
call fcn.004077d0
jmp 0x522970
mov eax, esi
mov edx, 0x522a34
call fcn.004077d0
jmp 0x522970
mov eax, esi
mov edx, 0x522a50
call fcn.004077d0
jmp 0x522970
mov eax, esi
mov edx, 0x522a6c
call fcn.004077d0
jmp 0x522970
mov eax, esi
mov edx, 0x522a88
call fcn.004077d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52298d
lea eax, [ebp - 4]
call fcn.004077c0
ret
Function at 0x523100
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x52311a
add esp, 0xfffffff0
call fcn.00405c98
mov ebx, ecx
mov byte [ebp - 5], dl
mov edi, eax
xor eax, eax
push ebp
push 0x5231a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00522b80
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x895], 0
je 0x523180
mov eax, dword [ebp - 4]
call fcn.004090c4
mov esi, eax
test esi, esi
jl 0x523187
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
call fcn.0040785c
push eax
call sub.kernel32.dll_GetDriveTypeW
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + ebx*4]
mov eax, edi
call fcn.00522ef4
inc ebx
dec esi
jne 0x52315a
jmp 0x523187
mov eax, edi
call fcn.00523c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5231aa
lea eax, [ebp - 4]
mov edx, dword [0x522314]
call fcn.00409290
ret
Function at 0x525860
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd40
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 4], edx
mov ebx, eax
lea esi, [ebp - 0x54]
xor eax, eax
push ebp
push 0x525a59
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x5073a0]
call fcn.00409284
add esp, 4
xor eax, eax
push ebp
push 0x525a29
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x543164]
mov eax, dword [eax]
mov eax, dword [eax + 0x390]
call fcn.00415bb0
lea eax, [ebp - 0x2a8]
mov ecx, 0x525a74
mov edx, dword [ebp - 4]
call fcn.00407cb4
mov eax, dword [ebp - 0x2a8]
call fcn.004156bc
test al, al
jne 0x525906
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525a33
lea eax, [ebp - 0x2ac]
mov ecx, 0x525a74
mov edx, dword [ebp - 4]
call fcn.00407cb4
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a4]
call fcn.00404a34
mov edx, 0x50
lea eax, [ebp - 0x2a4]
call fcn.00405144
call fcn.00404400
jmp 0x5259f7
mov edx, esi
lea eax, [ebp - 0x2a4]
call fcn.00404e18
call fcn.00404400
lea eax, [ebp - 0x2b0]
mov edx, esi
call fcn.00407b44
mov eax, dword [ebp - 0x2b0]
call fcn.00525778
test al, al
je 0x5259f7
mov byte [esi + 0x4c], 1
mov eax, dword [ebx + 8]
call fcn.004090bc
inc eax
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x5073a0]
call fcn.00409284
add esp, 4
mov eax, dword [ebx + 8]
call fcn.004090c4
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebx + 8]
push esi
lea edi, [edx + eax*8]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
pop esi
mov edx, esi
lea eax, [ebp - 0x2c0]
call fcn.00404c2c
mov edx, 0x525a84
lea eax, [ebp - 0x2c0]
mov cl, 8
call fcn.00404bfc
lea edx, [ebp - 0x2c0]
lea eax, [ebp - 0x2b4]
call fcn.00407b44
mov eax, dword [ebp - 0x2b4]
call fcn.0040785c
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x2a4]
call fcn.00404cc4
call fcn.00404400
test al, al
je 0x525944
lea eax, [ebp - 0x2a4]
call fcn.00404ba4
call fcn.00404400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525a33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525a60
lea eax, [ebp - 0x2b4]
mov edx, 4
call fcn.004077c8
lea eax, [ebp - 4]
call fcn.004077c0
ret
Function at 0x5263b4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb94
push ebx
push esi
push edi
mov dword [ebp - 4], edx
xor eax, eax
sub ecx, 2
je 0x5263cf
dec ecx
je 0x5263f3
jmp 0x526403
test eax, eax
je 0x5263e3
mov eax, dword [0x543098]
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x52640d
mov eax, dword [0x542d50]
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x52640d
mov eax, dword [0x542d50]
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x52640d
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x526571
push 0x12
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call sub.setupapi.dll_SetupDiGetClassDevsA
mov ebx, eax
cmp ebx, 0xffffffff
sete al
test al, al
je 0x526432
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x526571
xor edi, edi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x444], 0x1c
lea eax, [ebp - 0x444]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call sub.setupapi.dll_SetupDiEnumDeviceInterfaces
mov esi, eax
test esi, esi
je 0x526566
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x444]
push eax
push ebx
call sub.SetupApi.dll_SetupDiGetDeviceInterfaceDetailA
cmp dword [ebp - 0xc], 0
setne al
test al, al
je 0x526447
cmp dword [ebp - 0xc], 0x400
setbe al
test al, al
je 0x526447
mov eax, dword [ebp - 0x10]
mov dword [eax], 6
lea eax, [ebp - 0x460]
xor ecx, ecx
mov edx, 0x1c
call fcn.00404d7c
mov dword [ebp - 0x460], 0x1c
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x444]
push eax
push ebx
call sub.SetupApi.dll_SetupDiGetDeviceInterfaceDetailA
mov esi, eax
test esi, esi
je 0x526560
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x526557
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xc
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_DeviceIoControl
mov esi, eax
test esi, esi
je 0x526557
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x468]
jne 0x526557
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.SetupApi.dll_SetupDiDestroyDeviceInfoList
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 8], eax
jmp 0x526571
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
inc edi
jmp 0x526447
push ebx
call sub.SetupApi.dll_SetupDiDestroyDeviceInfoList
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x526788
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov dword [ebp - 0x88], ecx
mov ebx, edx
mov ecx, 0x21
lea eax, [ebp - 0x84]
mov edx, dword [0x401270]
call fcn.004084f4
xor eax, eax
push ebp
push 0x5269aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x88]
xor edx, edx
call fcn.004077d0
push 0
push 0x5269b8
push 0
push ebx
call sub.user32.dll_FindWindowExW
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x526986
push 0
push 0
push 0x1004
mov eax, dword [ebp - 0x8c]
push eax
call sub.user32.dll_SendMessageW
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x8c]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0x98]
push eax
push 0
push 0x438
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x90], eax
push 4
push 0x1000
push 0x3c
push 0
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0xa0], eax
push 4
push 0x1000
push 0x200
push 0
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xc8], 0x40
xor eax, eax
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x9c]
push eax
push 0x3c
lea eax, [ebp - 0xe0]
push eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov ebx, dword [ebp - 0x94]
dec ebx
test ebx, ebx
jb 0x52691d
inc ebx
xor edi, edi
lea esi, [ebp - 0x84]
mov eax, dword [ebp - 0xa0]
push eax
push edi
push 0x1073
mov eax, dword [ebp - 0x8c]
push eax
call sub.user32.dll_SendMessageW
lea eax, [ebp - 0x9c]
push eax
push 0x40
lea eax, [ebp - 0x162]
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov eax, esi
lea edx, [ebp - 0x162]
mov ecx, 0x41
call fcn.004079e0
inc edi
add esi, 4
dec ebx
jne 0x5268c8
push 0x8000
push 0
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
mov eax, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_VirtualFreeEx
mov ebx, dword [ebp - 0x94]
dec ebx
test ebx, ebx
jb 0x526986
inc ebx
lea esi, [ebp - 0x84]
mov eax, dword [esi]
call fcn.0040785c
mov edx, dword [ebp - 0x88]
call fcn.005269d4
mov eax, dword [ebp - 0x88]
cmp dword [eax], 0
jne 0x526986
add esi, 4
dec ebx
jne 0x526963
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5269b1
lea eax, [ebp - 0x84]
mov ecx, 0x21
mov edx, dword [0x401270]
call fcn.004085e8
ret
Function at 0x52868c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x5286a1
add esp, 0xfffffff0
call fcn.00405c98
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
push 0x10
call sub.user32.dll_GetKeyState
test al, 0x80
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x10], al
push 0x14
call sub.user32.dll_GetKeyState
test al, 1
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x11], al
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00528858
xor eax, eax
push ebp
push 0x52870d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [0x542d10]
mov eax, dword [eax]
call eax
push ebx
mov eax, dword [0x542dec]
mov eax, dword [eax]
call eax
push ebx
mov eax, dword [0x542f2c]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52873b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov dl, 1
mov eax, dword [0x5281e4]
call fcn.005294e4
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x52876c
call fcn.00405cf0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x528858
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x528902
push dword fs:[eax]
mov dword fs:[eax], esp
test edx, edx
jne 0x52887f
call sub.user32.dll_GetForegroundWindow
mov dword [ebx + 0x14], eax
jmp 0x528882
mov dword [ebx + 0x14], edx
mov eax, 0x101
call fcn.0041643c
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, 0x101
call fcn.00404d7c
push pe_nt_image_headers32
push esi
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_GetWindowTextW
lea edx, [ebp - 4]
mov eax, esi
call fcn.00416410
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x18]
mov ecx, 0
call fcn.00407a24
mov eax, esi
call fcn.0041648c
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x14]
call fcn.004f5b74
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x1c]
mov ecx, 0
call fcn.00407a24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528909
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077c8
ret
Function at 0x52b648
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52b6c8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret