joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dd60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51017b
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x57b728]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
mov ecx, edi
mov dword [ebp - 0x15c], edi
call fcn.00417a70
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x45df92
mov ecx, ebx
mov eax, ebx
mov dword [ebp - 0x150], ebx
and ecx, 0x8000000f
jns 0x45ddc8
dec ecx
or ecx, 0xfffffff0
inc ecx
je 0x45ddd5
sub eax, ecx
add eax, 0x10
mov dword [ebp - 0x150], eax
add eax, 0x40
push 0x40
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004f0870
add esp, 0xc
test esi, esi
je 0x45de25
cmp byte [esi], 0
je 0x45de25
movq xmm0, qword [esi]
movq qword [ebp - 0x54], xmm0
movq xmm0, qword [esi + 8]
movq qword [ebp - 0x4c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x44], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [ebp - 0x3c], xmm0
movq xmm0, qword [esi + 0x20]
jmp 0x45de56
mov eax, dword [0x578204]
movq xmm0, qword [eax]
movq qword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 8]
movq qword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x18]
movq qword [ebp - 0x3c], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [edi + 0x10]
add eax, dword [edi + 8]
or edx, 0xffffffff
xor esi, esi
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14c], eax
test ebx, ebx
jle 0x45de98
movzx ecx, byte [esi + eax]
movzx eax, byte [ebp - 0x2c]
xor ecx, eax
mov eax, dword [ebp - 0x14c]
shr edx, 8
xor edx, dword [ecx*4 + 0x529d90]
inc esi
mov dword [ebp - 0x2c], edx
cmp esi, ebx
jl 0x45de76
mov esi, dword [ebp - 0x148]
not edx
push esi
mov dword [ebp - 0x2c], edx
call fcn.004efb5a
mov edi, eax
push esi
lea eax, [edi + 0x40]
push 0
push edi
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x154], eax
call fcn.004f0870
push ebx
push dword [ebp - 0x14c]
mov ebx, dword [ebp - 0x154]
mov ecx, 0x10
lea esi, [ebp - 0x54]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004f13c0
add esp, 0x1c
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0
call fcn.004061e0
push 0x55aa55aa
push 0x529d10
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00406e50
mov esi, dword [ebp - 0x150]
mov eax, dword [ebp - 0x144]
push ebx
push esi
push ebx
lea ecx, [ebp - 0x144]
call dword [eax + 0x14]
cmp eax, esi
je 0x45df45
push 0x562bf0
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0
call fcn.004eff77
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0
call fcn.00406210
mov ecx, dword [ebp - 0x15c]
lea eax, [esi + 0x40]
mov esi, dword [ebp - 0x148]
push eax
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00417220
push esi
call fcn.004eff63
add esp, 4
mov al, 1
jmp 0x45df94
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004eff68
mov esp, ebp
pop ebp
ret 8
Function at 0x45ed90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5105c6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x14], 0
je 0x45ede2
mov dword [esi + 4], 0x5314c0
mov dword [esi + 0x94], vtable.Streamable.0
mov dword [ebp - 0x14], 1
mov eax, dword [esi + 4]
mov dword [esi], vtable.Displayable.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.Displayable.1.0
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi], vtable.Node.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.Node.1.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.FolderTree.0
mov eax, dword [eax + 4]
lea ebx, [esi + 0xc]
mov dword [eax + esi + 4], vtable.FolderTree.1.0
mov eax, dword [esi + 4]
mov dword [ebp - 4], 1
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x90]
mov dword [ecx + esi], eax
mov ecx, ebx
call fcn.00417d90
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00417d90
push 0x100
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.00413fa0
mov dword [esi + 0x54], vtable.FolderTree::FoldersTree.0
mov esi, dword [ebp - 0x10]
push 0x100
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 4
call fcn.00413f30
mov dword [esi + 0x6c], vtable.FolderTree::FilesTree.0
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00417e70
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00417e70
mov eax, esi
mov dword [eax + 0x88], 0
mov dword [eax + 0x8c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4731b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x57b728]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0x10
mov edi, ecx
mov dword [ebp - 0x18], eax
call esi
push 0x11
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa3
call esi
push 0xa2
mov bx, ax
call esi
or bl, al
mov esi, dword [sym.imp.USER32.dll_SetRect]
js 0x473278
cmp byte [edi + 0xa8], 0
je 0x473278
cmp dword [ebp - 0x1c], 0x320
jle 0x473278
push 0x31e
push 0x4e2
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [edi]
push 1
push 1
mov ecx, edi
call dword [eax + 0x68]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004ee630
add esp, 0x14
test al, al
je 0x473278
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eff68
mov esp, ebp
pop ebp
ret 0xc
push 0x21e
push 0x3e2
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov byte [edi + 0xa8], 0
call esi
mov eax, dword [edi]
push 1
push 1
mov ecx, edi
call dword [eax + 0x68]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004ee630
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
add esp, 0x14
mov dword [ecx], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
pop edi
mov dword [ecx + 4], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004eff68
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4774b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513388
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x4774fe
mov dword [edi + 4], 0x528e98
mov dword [edi + 0x50], vtable.Streamable.0
mov dword [ebp - 0x10], 1
mov eax, dword [edi + 4]
mov dword [edi], vtable.Displayable.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.Displayable.1.0
mov eax, dword [edi + 4]
mov dword [edi + 8], 0
mov dword [edi], vtable.Node.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.Node.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.kWorld::Element::Coord.0
mov eax, dword [eax + 4]
mov dword [ebp - 4], 1
mov dword [eax + edi + 4], vtable.kWorld::Element::Coord.1.0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x4c]
mov dword [ecx + edi], eax
mov dword [edi + 0x1c], vtable.fPoint.0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x2c], vtable.fPoint.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x3c], vtable.fPoint.0
mov dword [edi + 0x48], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0045d360
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x477820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5134f5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x477871
mov dword [edi + 4], 0x524868
mov dword [edi + 0x88], vtable.Streamable.0
mov dword [ebp - 0x10], 1
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
mov dword [edi], vtable.Displayable.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.Displayable.1.0
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [edi], vtable.Node.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.Node.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.kWorld::CaptionNode.0
mov eax, dword [eax + 4]
lea ecx, [edi + 0xc]
mov dword [eax + edi + 4], vtable.kWorld::CaptionNode.1.0
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 4], 2
call fcn.00417c60
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 3
call fcn.00417c60
mov eax, dword [edi + 4]
mov dword [edi], vtable.kWorld::NamedArea.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.kWorld::NamedArea.1.0
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], vtable.fPoint.0
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], vtable.fPoint.0
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x477b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513585
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x477ba1
mov dword [edi + 4], 0x52e298
mov dword [edi + 0x98], vtable.Streamable.0
mov dword [ebp - 0x10], 1
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
mov dword [edi], vtable.Displayable.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.Displayable.1.0
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [edi], vtable.Node.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.Node.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.kWorld::CaptionNode.0
mov eax, dword [eax + 4]
lea ecx, [edi + 0xc]
mov dword [eax + edi + 4], vtable.kWorld::CaptionNode.1.0
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 4], 2
call fcn.00417c60
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 3
call fcn.00417c60
mov eax, dword [edi + 4]
mov dword [edi], vtable.kWorld::Portal.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.kWorld::Portal.1.0
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], vtable.fPoint.0
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], vtable.fPoint.0
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
movzx eax, byte [esi + 0x7c]
mov byte [edi + 0x7c], al
mov ax, word [esi + 0x7e]
mov word [edi + 0x7e], ax
movzx eax, byte [esi + 0x80]
mov byte [edi + 0x80], al
mov dword [edi + 0x84], vtable.fPoint.0
mov eax, dword [esi + 0x88]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
mov eax, dword [esi + 0x90]
mov dword [edi + 0x90], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x487be0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0
push 0
mov ebx, ecx
push 0x1009
push dword [ebx + 4]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea esi, [ebx + 0xf8]
xor edx, edx
cmp dword [esi + 8], edx
jle 0x487c21
lea esp, [esp]
mov eax, dword [esi + 4]
inc edx
mov dword [eax + edx*4 - 4], 0
cmp edx, dword [esi + 8]
jl 0x487c10
mov eax, dword [ebp + 8]
mov dword [esi + 8], 0
cmp dword [eax + 8], 0
je 0x487cda
cmp dword [ebp + 0x10], 5
ja 0x487cda
mov ecx, dword [ebx + 0xf4]
add ecx, 8
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x487c83
mov ecx, dword [0x57d0f8]
call fcn.00463d20
cmp eax, dword [ebx + 0xf4]
je 0x487c72
push str.bug_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebx + 0xf4]
add ecx, 8
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 8], edx
test eax, eax
jle 0x487cda
push edi
lea ecx, [ecx]
mov ecx, dword [ebx + 0xf4]
add ecx, 8
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, eax
test edi, edi
je 0x487ccd
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [eax + 8]
test edx, edx
jle 0x487ccd
mov ebx, dword [ebp + 8]
mov al, byte [edi + 0x5c]
mov ebx, dword [ebx + 4]
lea ebx, [ebx]
cmp byte [ebx + ecx], al
je 0x487ce2
inc ecx
cmp ecx, edx
jl 0x487cc0
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 0xc]
jl 0x487c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
movzx eax, byte [edi + 0x5e]
cmp eax, dword [ebp + 0xc]
jne 0x487cca
mov eax, dword [ebp + 0x10]
cmp byte [edi + eax + 0x63], 1
jne 0x487cca
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
mov ebx, dword [ebp - 4]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004d81e0
jmp 0x487ccd
Function at 0x49e690
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
mov eax, dword [ebx + 8]
mov edi, ecx
lea ecx, [ebx + 8]
mov dword [ebp - 8], edi
call dword [eax + 4]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
test eax, eax
jle 0x49e862
push esi
lea ebx, [ebx]
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + ecx*4]
mov ah, byte [edi + 0x135]
test ah, ah
jne 0x49e6ea
mov al, byte [ebx + 0x62]
cmp al, 5
je 0x49e6df
cmp al, 6
jne 0x49e851
cmp word [ebx + 0x60], 0
jle 0x49e851
mov edx, dword [edi + 0x130]
mov al, byte [ebx + 0x5c]
cmp edx, 0x3f2
jne 0x49e724
mov esi, dword [edi + 0x148]
xor ecx, ecx
test esi, esi
jle 0x49e721
mov edi, dword [edi + 0x144]
lea ecx, [ecx]
cmp byte [edi + ecx], al
je 0x49e820
inc ecx
cmp ecx, esi
jl 0x49e710
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp edx, 0x3f5
jne 0x49e73c
cmp al, 5
je 0x49e820
cmp al, 0x32
je 0x49e820
cmp edx, 0x3f3
jne 0x49e754
cmp al, 3
je 0x49e820
cmp al, 0x2f
je 0x49e820
cmp edx, 0x3f4
jne 0x49e76c
cmp al, 4
je 0x49e820
cmp al, 0x30
je 0x49e820
cmp edx, 0x3f6
jne 0x49e784
cmp al, 6
je 0x49e820
cmp al, 0x34
je 0x49e820
cmp edx, 0x3f7
jne 0x49e79c
cmp al, 7
je 0x49e820
cmp al, 0x36
je 0x49e820
cmp edx, 0x3f8
jne 0x49e7ac
cmp al, 8
je 0x49e820
cmp al, 0x38
je 0x49e820
cmp edx, 0x3f9
jne 0x49e7bc
cmp al, 9
je 0x49e820
cmp al, 0x39
je 0x49e820
cmp edx, 0x3fa
jne 0x49e7cc
cmp al, 0xa
je 0x49e820
cmp al, 0x3a
je 0x49e820
cmp edx, 0x3fd
jne 0x49e7dc
cmp al, 0xb
je 0x49e820
cmp al, 0x3b
je 0x49e820
cmp edx, 0x3fe
jne 0x49e7ec
cmp al, 0xc
je 0x49e820
cmp al, 0x3d
je 0x49e820
cmp edx, 0x3fb
jne 0x49e7fc
cmp al, 0xd
je 0x49e820
cmp al, 0x3f
je 0x49e820
cmp edx, 0x3ff
jne 0x49e80c
cmp al, 0xf
je 0x49e820
cmp al, 0x41
je 0x49e820
cmp edx, 0x400
jne 0x49e851
cmp al, 0x22
je 0x49e820
cmp al, 0x54
je 0x49e820
cmp al, 0x5a
jne 0x49e851
mov edi, dword [ebp - 8]
test ah, ah
jne 0x49e83e
mov eax, dword [edi + 0x12c]
cmp eax, 0x3e8
je 0x49e83e
cmp byte [eax + ebx - 0x386], 0
je 0x49e84e
mov eax, dword [edi + 0xfc]
lea ecx, [edi + 0xfc]
push ebx
call dword [eax + 0x20]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp - 0xc]
jl 0x49e6c0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a3a00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
cmp dword [eax + 8], 0xffffff65
mov ebx, ecx
jne 0x4a3a90
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
movzx edi, word [eax + 0xc]
push 0x11
call esi
push 0x11
call esi
test ax, ax
jns 0x4a3a87
cmp edi, 0x21
je 0x4a3a35
cmp edi, 0x22
jne 0x4a3a87
push 0
push 0
push 0x130b
push dword [ebx + 0xb0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp edi, 0x21
jne 0x4a3a54
dec esi
jmp 0x4a3a55
inc esi
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1304
push dword [ebx + 0xb0]
call eax
test esi, esi
jns 0x4a3a74
lea esi, [eax - 1]
jmp 0x4a3a7b
xor ecx, ecx
cmp esi, eax
cmovge esi, ecx
push esi
lea ecx, [ebx + 0xac]
call fcn.004dc350
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x4aea60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517f48
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, ecx
or eax, 1
cmp eax, 1
jne 0x4aebc2
test ebx, ebx
jne 0x4aebc2
cmp esi, 0xe103
jne 0x4aebc2
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x158]
call eax
test al, al
je 0x4aebac
push ebx
push str.location
push str.Server_Data
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x57f958
call fcn.004d0a00
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], ebx
je 0x4aeb9d
push 0x52e3a8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00414830
add esp, 0xc
push dword [eax + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.00417dd0
test esi, esi
je 0x4aeb2b
lea eax, [ebp - 0x30]
push 0x52e3a8
push eax
call fcn.004013c0
add esp, 8
push 1
push 0
lea ecx, [ebp - 0x80]
call fcn.00413c20
mov ecx, dword [edi + 0xa8]
add ecx, 4
mov eax, dword [ecx]
push 0x66696c65
mov eax, dword [eax + 4]
add ecx, eax
lea edx, [ebp - 0x78]
mov eax, dword [ecx]
push edx
mov byte [ebp - 4], 1
call dword [eax + 8]
push str.NpcQuest.SData
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00414830
add esp, 0xc
push dword [eax + 4]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00413f10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00417dd0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.00413cc0
lea ecx, [ebp - 0x6c]
call fcn.00416dc0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push ebx
push ecx
mov ecx, edi
call fcn.004b6a60
test al, al
jne 0x4aebac
mov eax, dword [edi + 0xac]
lea ecx, [edi + 0xac]
mov eax, dword [eax + 0x80]
push esi
push ebx
push dword [ebp + 8]
call eax
test al, al
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b6370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518f08
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x57d0f8]
lea edx, [ebp - 0x30]
mov eax, dword [ecx]
push edx
call dword [eax + 0x17c]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00417e10
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
cmp dword [edi + 0xc], 0
jne 0x4b63fc
push 0x10
push 0
push dword [0x57a994]
push dword [esi + 0x14]
call fcn.004dc620
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push str.scripts_
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00414830
add esp, 0xc
push dword [eax + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.00417dd0
test esi, esi
je 0x4b6448
cmp dword [0x57604c], str.scripts_
mov ecx, edi
jne 0x4b643a
call fcn.00419670
jmp 0x4b6448
push 0
push 0xffffffffffffffff
push str.scripts_
call fcn.00418a80
mov eax, dword [ebp + 0xc]
mov ecx, edi
cmp eax, dword [0x57604c]
jne 0x4b645c
call fcn.00419670
jmp 0x4b6466
push 0
push 0xffffffffffffffff
push eax
call fcn.00418a80
mov ecx, edi
call fcn.00419a20
cmp dword [0x57604c], 0x542fe8
mov ecx, edi
jne 0x4b6482
call fcn.00419670
jmp 0x4b6490
push 0
push 0xffffffffffffffff
push str..sql
call fcn.00418a80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4ba5e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, 0x276
mov eax, dword [edi + 0xac]
mov byte [edi + 0x2ac4], 0
cmp byte [eax + 0xc4], 0
jne 0x4ba609
mov ecx, 0x3d4
jmp 0x4ba63b
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x640
jl 0x4ba62a
mov ecx, 0x659
jmp 0x4ba63b
mov byte [edi + 0x2ac4], 1
mov ecx, 0x348
mov esi, 0x29e
mov eax, dword [edi + 0xac]
mov eax, dword [eax + 0xe30]
and eax, 0xfff
cmp eax, 0x400
jne 0x4ba659
sub esi, 0x82
cmp eax, 0x600
jl 0x4ba666
add esi, 0x8c
push str.Toon_Skill_Editor
push 1
push esi
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.004de260
pop edi
pop esi
pop ebp
ret 4