joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c194
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.004ba72c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005461a8
test ebx, ebx
jne 0x54c1e7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0054c010
mov ebx, eax
test ebx, ebx
je 0x54c2dd
cmp esi, ebx
je 0x54c210
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x54c225
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x54c25d
add eax, 0xffffff5f
sub eax, 2
jb 0x54c275
dec eax
sub eax, 2
jb 0x54c289
dec eax
sub eax, 2
jb 0x54c27f
jmp 0x54c293
add eax, 0xfffffdff
sub eax, 2
jb 0x54c275
dec eax
sub eax, 2
jb 0x54c289
dec eax
sub eax, 2
jb 0x54c27f
jmp 0x54c293
mov byte [esp + 0x120], 0
jmp 0x54c29b
mov byte [esp + 0x120], 2
jmp 0x54c29b
mov byte [esp + 0x120], 1
jmp 0x54c29b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0051d984
mov esi, eax
call fcn.00542a28
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00547b90
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x54c2df
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x56076c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x560859
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x56082b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x56081a
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004be5ac
mov eax, dword [ebp - 4]
call fcn.005604ac
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x560803
mov ecx, dword [0x7e936c]
mov dl, 1
mov eax, dword [0x454f68]
call fcn.004a8fd8
call fcn.004c09e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560821
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
Function at 0x560984
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5609f6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x5609ca
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004c2294
jmp 0x5609d1
mov eax, ebx
call fcn.004c1264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5609fd
cmp dword [ebp - 8], 0
je 0x5609ed
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x560a38
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x560ae0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x560ab3
mov edx, ebx
mov eax, dword [0x50630c]
call fcn.0050e74c
test al, al
je 0x560aa3
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0050e664
call fcn.004c0ad4
jmp 0x560ae7
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x560a6b
mov ecx, dword [0x7e953c]
mov dl, 1
mov eax, dword [0x5603c0]
call fcn.004a8fd8
call fcn.004c09e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560ae7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x560af0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x560b4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560b53
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x560b5c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x560bb1
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560bb8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x560c28
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x560c9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005604ac
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0050e728
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x560c87
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560ca4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x560cac
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x560d21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005604ac
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x560d0b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560d28
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x59053c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x204], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59068d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x590672
mov eax, ebx
test eax, eax
je 0x590573
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test ebx, ebx
je 0x590583
mov eax, ebx
sub eax, 0xa
movzx eax, word [eax]
jmp 0x590587
mov ax, 2
cmp ax, 1
jne 0x590604
test ebx, ebx
je 0x59059b
mov eax, ebx
sub eax, 0xc
movzx eax, word [eax]
jmp 0x5905a3
mov eax, dword [0x7e8fa4]
movzx eax, word [eax]
push edi
push 0
push 0
movzx eax, ax
mov ecx, ebx
xor edx, edx
call fcn.004c5538
mov edi, eax
cmp edi, 0x100
jle 0x5905cb
mov eax, edi
add eax, eax
call fcn.004be358
mov esi, eax
jmp 0x5905d1
lea esi, [ebp - 0x200]
test ebx, ebx
je 0x5905df
mov eax, ebx
sub eax, 0xc
movzx edx, word [eax]
jmp 0x5905e8
mov edx, dword [0x7e8fa4]
movzx edx, word [edx]
mov eax, ebx
test eax, eax
je 0x5905f3
sub eax, 4
mov eax, dword [eax]
push eax
push esi
push edi
movzx eax, dx
mov ecx, ebx
xor edx, edx
call fcn.004c5538
jmp 0x59063d
cmp edi, 0x100
jle 0x590619
mov eax, edi
add eax, eax
call fcn.004be358
mov esi, eax
jmp 0x59061f
lea esi, [ebp - 0x200]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.004a2c90
mov eax, dword [ebp - 0x204]
mov ecx, edi
add ecx, ecx
mov edx, esi
call fcn.004be5ac
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x59065f
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x590649
lea eax, [ebp - 0x200]
cmp esi, eax
je 0x590674
mov eax, esi
call fcn.004be374
jmp 0x590674
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x590694
lea eax, [ebp - 0x204]
call fcn.004c1264
ret

Function at 0x5be090
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5be0be
mov eax, ebx
call fcn.005beb44
cmp dword [ebx + 0x40], 0
je 0x5be0b7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5be12f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5be121
cmp dword [ebx + 8], 0
je 0x5be0e0
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 0x5be0f2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5be121
cmp dword [ebx + 8], 0
je 0x5be0d3
cmp eax, 3
je 0x5be105
dec eax
jne 0x5be0d3
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 0x5be0d3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5be0d3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5be14d
cmp dword [ebx + 0x14], 0xcc
je 0x5be14d
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.005be158
pop ebx
ret
Function at 0x5d41ac
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x7ef438
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x5d41ce
shr eax, 1
xor eax, 0xedb88320
jmp 0x5d41d0
shr eax, 1
dec edx
jne 0x5d41bc
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5d41b5
mov byte [0x7ef838], 1
pop esi
pop ebx
ret

Function at 0x5d41ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x7ef838], 0
jne 0x5d4203
call fcn.005d41ac
mov eax, edi
dec eax
test eax, eax
jl 0x5d422b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x7ef438]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5d420d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5d6fb8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x5d7052.0
jmp dword [ecx*4 + 0x5d6feb]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5d701d
sub dl, 8
je 0x5d702c
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6c60
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6cb8
jmp case.0x5d7052.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5d7052.0
movzx ecx, byte [ecx + 0x5d7059]
jmp dword [ecx*4 + 0x5d706a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6d64
jmp case.0x5d7052.0
cmp dl, 3
jne 0x5d7097
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6dbc
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6d78
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6e00
jmp case.0x5d7052.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5d70c2
sub dl, 8
je 0x5d70ce
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6e2c
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6e98
jmp case.0x5d7052.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5d70ed
sub dl, 8
je 0x5d70f9
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6f54
jmp case.0x5d7052.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5d6f7c
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x5d719b
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005d6164
test eax, eax
je 0x5d719b
mov eax, ebx
call fcn.005d71a4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x5d7134
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5d71a4
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 0x5d71d5
dec al
je 0x5d7210
dec al
je 0x5d7255
dec al
je 0x5d72be
jmp 0x5d7348
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5d7348
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 0x5d71e5
jmp 0x5d7348
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5d7348
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 0x5d7220
jmp 0x5d7348
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5d7348
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 0x5d7284
xor ebp, ebp
jmp 0x5d7294
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 0x5d729d
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 0x5d7265
jmp 0x5d7348
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5d7348
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 0x5d7317
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.005d4234
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 0x5d72d2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5e2158
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x5e21a9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5e2190
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5e2180
jmp 0x5e21a9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x5e2191
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6516f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004c2244
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x651709
test al, 0x10
jne 0x65170d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x651714
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd24
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.004c1348
xor eax, eax
push ebp
push 0x651903
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call fcn.004befdc
mov edi, eax
lea eax, [ebp - 0x2cc]
xor ecx, ecx
mov edx, 0x2b4
call fcn.004bed18
cmp dword [ebp + 0x20], 0
je 0x6517d1
cmp dword [ebp - 0x10], 0
je 0x6517d1
mov dl, 1
mov eax, dword [ebp + 0x20]
call fcn.004a3c5c
test al, al
jne 0x651787
mov eax, dword [ebp + 0x20]
call fcn.006516f0
test al, al
je 0x6517aa
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.004c2244
push eax
call sub.SHELL32.DLL_SHGetFileInfoW
jmp 0x6517cb
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.004c2244
push eax
call sub.SHELL32.DLL_SHGetFileInfoW
mov edi, dword [ebp - 0x2c8]
cmp byte [ebp + 0x1c], 0
je 0x6517f8
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0x651914
call sub.SHELL32.DLL_SHGetFileInfoW
mov esi, eax
jmp 0x651817
push 0x4001
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0x651914
call sub.SHELL32.DLL_SHGetFileInfoW
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.COMCTL32.DLL_ImageList_GetIconSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0045f4fc
test bl, bl
je 0x651857
cmp byte [ebp + 0x14], 0
jne 0x651857
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0050bb70
push eax
push edi
push esi
call sub.COMCTL32.DLL_ImageList_Draw
test byte [ebp + 0x14], bl
je 0x6518ed
mov dl, 1
mov eax, dword [0x507428]
call fcn.00510b84
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0
push 0
mov eax, ebx
call fcn.005114a4
call fcn.0050bb70
push eax
push edi
push esi
call sub.COMCTL32.DLL_ImageList_Draw
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x14]
fmul qword [ebp + 0xc]
call fcn.004be8e0
add eax, dword [ebp - 8]
mov dword [ebp - 0x2d4], eax
fild dword [ebp - 0x18]
fmul qword [ebp + 0xc]
call fcn.004be8e0
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x2d0], eax
mov ecx, ebx
lea edx, [ebp - 0x2dc]
mov eax, dword [ebp - 4]
call fcn.00651614
mov eax, ebx
call fcn.004bf790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65190a
lea eax, [ebp + 0x20]
call fcn.004c1264
ret