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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x6b4934], 0
je 0x54de71
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6ae0a4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x54de71
mov eax, dword [0x6b4938]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6b4934]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x54de40
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6b4934]
call fcn.00486df4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x54de38
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x54de38
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x54de38
mov eax, dword [ebp - 0x14]
call fcn.0055975c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x54de38
push ebp
call fcn.0054dcec
pop ecx
test al, al
jne 0x54de38
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004d85a8
test al, al
je 0x54de38
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004d85a8
cmp byte [ebp - 1], 0
je 0x54de38
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004d3f64
test al, al
je 0x54de38
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6b4938]
call fcn.0054d444
inc edi
dec ebx
jne 0x54dd95
mov eax, dword [0x6b4938]
cmp dword [eax + 8], 0
jle 0x54de58
mov eax, dword [0x6b4938]
call fcn.0054d4fc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x54de71
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0054db50
pop ecx
test al, al
jne 0x54de71
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55629c
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.004d3f4c
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.005502b0
test ebx, ebx
jne 0x5562ef
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00556118
mov ebx, eax
test ebx, ebx
je 0x5563e5
cmp esi, ebx
je 0x556318
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 0x55632d
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 0x556365
add eax, 0xffffff5f
sub eax, 2
jb 0x55637d
dec eax
sub eax, 2
jb 0x556391
dec eax
sub eax, 2
jb 0x556387
jmp 0x55639b
add eax, 0xfffffdff
sub eax, 2
jb 0x55637d
dec eax
sub eax, 2
jb 0x556391
dec eax
sub eax, 2
jb 0x556387
jmp 0x55639b
mov byte [esp + 0x120], 0
jmp 0x5563a3
mov byte [esp + 0x120], 2
jmp 0x5563a3
mov byte [esp + 0x120], 1
jmp 0x5563a3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0052c344
mov esi, eax
call fcn.0054cb30
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.00551c98
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5563e7
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x562684
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 0x562771
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 0x562743
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 0x562732
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004d793c
mov eax, dword [ebp - 4]
call fcn.005623c4
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x56271b
mov ecx, dword [0x6ae554]
mov dl, 1
mov eax, dword [0x47a778]
call fcn.004c2bc0
call fcn.004d9570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562739
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
Function at 0x562950
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 0x5629f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x5629cb
mov edx, ebx
mov eax, dword [0x515188]
call fcn.0051d7b0
test al, al
je 0x5629bb
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.0051d6c8
call fcn.004d9664
jmp 0x5629ff
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x562983
mov ecx, dword [0x6ae684]
mov dl, 1
mov eax, dword [0x5622d8]
call fcn.004c2bc0
call fcn.004d9570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5629ff
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 0x562a08
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 0x562a64
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 0x562a6b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x562a74
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 0x562ac9
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 0x562ad0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x562b40
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 0x562bb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005623c4
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.0051d78c
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 0x562b9f
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 0x562bbc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x562bc4
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 0x562c39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005623c4
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 0x562c23
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 0x562c40
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x5646f4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x564722
mov eax, ebx
call fcn.005651a8
cmp dword [ebx + 0x40], 0
je 0x56471b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x564793
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x564785
cmp dword [ebx + 8], 0
je 0x564744
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 0x564756
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x564785
cmp dword [ebx + 8], 0
je 0x564737
cmp eax, 3
je 0x564769
dec eax
jne 0x564737
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 0x564737
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x564737
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5647b1
cmp dword [ebx + 0x14], 0xcc
je 0x5647b1
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.005647bc
pop ebx
ret
Function at 0x57a810
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x6b49cc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x57a832
shr eax, 1
xor eax, 0xedb88320
jmp 0x57a834
shr eax, 1
dec edx
jne 0x57a820
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x57a819
mov byte [0x6b4dcc], 1
pop esi
pop ebx
ret

Function at 0x57a850
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6b4dcc], 0
jne 0x57a867
call fcn.0057a810
mov eax, edi
dec eax
test eax, eax
jl 0x57a88f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6b49cc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x57a871
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x57d61c
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.0x57d6b6.0
jmp dword [ecx*4 + 0x57d64f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x57d681
sub dl, 8
je 0x57d690
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d2c4
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d31c
jmp case.0x57d6b6.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x57d6b6.0
movzx ecx, byte [ecx + 0x57d6bd]
jmp dword [ecx*4 + 0x57d6ce]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d3c8
jmp case.0x57d6b6.0
cmp dl, 3
jne 0x57d6fb
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d420
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d3dc
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d464
jmp case.0x57d6b6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x57d726
sub dl, 8
je 0x57d732
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d490
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d4fc
jmp case.0x57d6b6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x57d751
sub dl, 8
je 0x57d75d
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d5b8
jmp case.0x57d6b6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57d5e0
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 0x57d7ff
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.0057c7c8
test eax, eax
je 0x57d7ff
mov eax, ebx
call fcn.0057d808
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 0x57d798
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x57d808
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 0x57d839
dec al
je 0x57d874
dec al
je 0x57d8b9
dec al
je 0x57d922
jmp 0x57d9ac
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x57d9ac
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 0x57d849
jmp 0x57d9ac
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57d9ac
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 0x57d884
jmp 0x57d9ac
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57d9ac
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 0x57d8e8
xor ebp, ebp
jmp 0x57d8f8
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 0x57d901
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 0x57d8c9
jmp 0x57d9ac
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57d9ac
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 0x57d97b
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.0057a898
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 0x57d936
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5887bc
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 0x58880d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5887f4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5887e4
jmp 0x58880d
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 0x5887f5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d2390
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5d24b8
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.005d227c
mov eax, dword [esi]
call fcn.004dbe78
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5d2960]
call fcn.004dc040
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004d793c
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004d793c
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004dbe78
mov dword [ebp - 0xc], eax
mov eax, dword [0x6ae29c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.005d75fc
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.004d7d04
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004dbe78
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.005d74ec
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.005d72a4
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.005d75f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d24bf
lea eax, [ebp - 4]
mov edx, dword [0x5d2960]
call fcn.004dc164
ret
Function at 0x611d6c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.004dacd8
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x611d91
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.004dab4c
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x611db0
mov eax, ebx
mov edx, dword [esp]
call fcn.004dacd8
pop ecx
pop edx
pop ebx
ret

Function at 0x651240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x65125c
call fcn.0065286c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x65127b
test bl, 1
je 0x65127b
call fcn.00659f94
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x65145c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.006523e8
test byte [ebp + 0xd], 0xc0
jne 0x651480
mov eax, dword [0x6aa924]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x65148d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x6514ba
je 0x6514cc
sub ecx, 0x100
je 0x6514de
sub ecx, 0x100
je 0x6514e7
sub ecx, 0x100
je 0x6514d5
jmp 0x6514f0
sub ecx, 0x600
je 0x6514e7
sub ecx, 0x100
je 0x6514cc
jmp 0x6514f0
mov dword [ebp - 8], 1
jmp 0x6514f7
mov dword [ebp - 8], 2
jmp 0x6514f7
mov dword [ebp - 8], 4
jmp 0x6514f7
mov dword [ebp - 8], 5
jmp 0x6514f7
mov dword [ebp - 8], 3
test byte [ebp + 0xd], 1
je 0x65151e
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x6aa39c]
test al, 0x80
je 0x651517
mov ebx, 0x80
jmp 0x651530
mov ebx, 1
jmp 0x651530
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x651530
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x651542
je 0x65154b
dec eax
je 0x651554
jmp 0x65155d
mov dword [ebp - 4], SysStringLen
jmp 0x65156c
mov dword [ebp - 4], 0x40000000
jmp 0x65156c
mov dword [ebp - 4], 0xc0000000
jmp 0x65156c
push 1
call fcn.00652800
pop ecx
mov ebx, eax
jmp 0x65166c
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x651588
sub eax, 0x10
je 0x65158c
sub eax, 0x10
je 0x651593
sub eax, 0x10
je 0x65159a
jmp 0x65159a
xor edi, edi
jmp 0x65159f
mov edi, 1
jmp 0x65159f
mov edi, 2
jmp 0x65159f
mov edi, 3
test byte [ebp + 0xc], 4
je 0x6515b7
cmp dword [ebp - 4], 0x80000000
jne 0x6515b5
mov edi, 1
jmp 0x6515b7
xor edi, edi
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
and edx, 0x80
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0xc], ecx
push 0
push ebx
mov ecx, dword [ebp - 8]
push ecx
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x651625
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x65161a
test byte [ebp + 0xd], 1
je 0x651615
mov ebx, 0x50
jmp 0x65161a
mov ebx, 2
push ebx
call fcn.00652800
pop ecx
mov ebx, eax
jmp 0x65166c
mov edi, esi
push edi
call fcn.006513c0
pop ecx
test eax, eax
je 0x651639
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x651645
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00652528
add esp, 8
mov ebx, eax
inc eax
jne 0x65166c
push 4
call fcn.00652800
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0065241c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret