joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480dc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5130a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x208]
mov ecx, edi
mov dword [esp + 0x10], 0x10
call fcn.004887a0
mov byte [esi + 0x280], 0
mov al, byte [edi + 0x78]
test al, al
je 0x480e0f
mov eax, dword [edi + 0xb8]
sub eax, dword [edi + 0xb4]
jmp 0x480e15
mov eax, dword [edi + 0xb0]
mov ecx, dword [esi + 0x2bc]
lea edx, [esp + 0x10]
push edx
lea edx, [esi + 0x288]
push edx
push 0
push eax
mov eax, dword [esi + 0x200]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x480f19
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
sub eax, 0x2733
je 0x480f66
sub eax, 0x13
je 0x480f66
call ebx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00480380
add esp, 8
mov edx, dword [eax]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.WARNING:_recvfrom___failed_with_error__s.
mov dword [esp + 0x34], 0
call fcn.00402110
mov ecx, dword [0x55cd0c]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004a7680
add esp, 0x10
mov edx, dword [eax]
push edx
push str.NetConnection::receiveRaw
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._s__:__s
mov byte [esp + 0x38], 1
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x480ef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480f19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esi + 0x2b8], ebp
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x878]
call fcn.004a65e0
fstp qword [esi + 0x298]
mov ecx, esi
call fcn.00480240
mov ebx, dword [eax + 0x7c]
add eax, 0x7c
inc ebx
mov ecx, esi
mov dword [eax], ebx
call fcn.00480240
mov cl, byte [edi + 0x78]
add eax, 0x84
test cl, cl
je 0x480f7b
mov ecx, dword [edi + 0xb8]
sub ecx, dword [edi + 0xb4]
jmp 0x480f81
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [edi + 0xb0]
mov ebx, dword [eax]
add ecx, 0x1c
add ebx, ecx
mov ecx, esi
mov dword [eax], ebx
call fcn.00480240
mov cl, byte [edi + 0x78]
add eax, 0x8c
test cl, cl
je 0x480fab
mov ecx, dword [edi + 0xb8]
sub ecx, dword [edi + 0xb4]
jmp 0x480fb1
mov ecx, dword [edi + 0xb0]
mov edx, dword [eax]
add edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x483cc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx], eax
mov dword [ecx + 0x9c0], 1
push edi
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4 - 4]
mov edi, edx
shr edi, 0x1e
xor edi, edx
imul edi, edi, 0x6c078965
add edi, eax
mov dword [ecx + eax*4], edi
mov edx, dword [ecx + 0x9c0]
inc edx
mov eax, edx
cmp eax, 0x270
mov dword [ecx + 0x9c0], edx
jl 0x483cd1
pop edi
ret 4

Function at 0x483d10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [ecx + 0x9c0]
cmp eax, 0x270
jl 0x483de3
cmp eax, 0x271
jne 0x483d32
push 0x1571
call fcn.00483cc0
xor eax, eax
push esi
mov esi, dword [ecx + eax*4]
mov edx, dword [ecx + eax*4 + 4]
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov esi, edx
and esi, 1
mov esi, dword [esi*4 + 0x5579b8]
shr edx, 1
xor esi, edx
xor esi, dword [ecx + eax*4 + 0x634]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, 0xe3
jl 0x483d35
cmp eax, 0x26f
jge 0x483da3
nop
mov esi, dword [ecx + eax*4]
mov edx, dword [ecx + eax*4 + 4]
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov esi, edx
and esi, 1
mov esi, dword [esi*4 + 0x5579b8]
shr edx, 1
xor esi, edx
xor esi, dword [ecx + eax*4 - 0x38c]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, 0x26f
jl 0x483d70
mov eax, dword [ecx + 0x9bc]
mov edx, dword [ecx]
mov esi, dword [ecx + 0x630]
xor eax, edx
mov edx, dword [ecx + 0x9bc]
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x5579b8]
xor edx, esi
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9bc], edx
mov dword [ecx + 0x9c0], 0
pop esi
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ecx + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov ecx, edx
and ecx, 0xff3a58ad
shl ecx, 7
xor edx, ecx
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x488c00
Capabilities:
Hash data using murmur3

Disassembly:
push ecx
mov al, byte [ecx + 0x78]
test al, al
je 0x488cf4
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov dword [esp + 8], edx
fld dword [esp + 8]
fcomp dword [0x5448bc]
fnstsw ax
test ah, 0x41
jne 0x488c5d
fld dword [esp + 8]
fcomp qword [0x5344d8]
fnstsw ax
test ah, 5
jp 0x488c42
mov dword [esp + 8], 0x380205ff
jmp 0x488ca0
fld dword [esp + 8]
fcomp dword [0x5344d4]
fnstsw ax
test ah, 0x41
jne 0x488ca0
mov dword [esp + 8], 0x47fde800
jmp 0x488ca0
fld dword [esp + 8]
fcomp dword [0x5448bc]
fnstsw ax
test ah, 5
jp 0x488ca0
fld dword [esp + 8]
fcomp dword [0x5344d0]
fnstsw ax
test ah, 5
jp 0x488c87
mov dword [esp + 8], 0xc7fde800
fld dword [esp + 8]
fcomp qword [0x5344c8]
fnstsw ax
test ah, 0x41
jne 0x488ca0
mov dword [esp + 8], 0xb80205ff
mov eax, dword [esp + 8]
test eax, eax
mov dword [esp], 0
je 0x488cdb
mov edx, eax
shr edx, 0x17
sub dl, 0x10
push esi
mov esi, eax
shr esi, 0xd
and esi, 0x3ff
shr eax, 0x10
and eax, 0x8000
and edx, 0x1f
shl edx, 0xa
or edx, esi
or edx, eax
mov dword [esp + 4], edx
pop esi
mov eax, dword [ecx + 0xb8]
mov dx, word [esp]
mov word [eax], dx
add dword [ecx + 0xb8], 2
pop ecx
ret 4
mov eax, dword [ecx + 0xb8]
mov dx, word [eax]
add eax, 2
test dx, dx
mov dword [ecx + 0xb8], eax
movzx eax, dx
mov dword [esp], eax
je 0x488d3d
mov ecx, eax
and ecx, 0xffff8000
mov edx, eax
shl ecx, 3
and eax, 0x7c00
and edx, 0x3ff
or ecx, edx
add eax, 0x1c000
shl ecx, 0xd
shl eax, 0xd
or ecx, eax
mov dword [esp], ecx
fld dword [esp]
mov eax, dword [esp + 8]
fstp dword [eax]
pop ecx
ret 4
Function at 0x4892c0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x78]
test al, al
push esi
push edi
je 0x4893c1
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
push edx
mov ecx, ebp
call fcn.00488a90
mov ebx, dword [esp + 0x18]
cmp ebx, 0x400
jl 0x489335
push 0x191
push str.gamePacket.cpp
push str.Packet::doCString
push str.length_BUFFERSIZE
push str.Assertion_failed.
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x51fa70
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x860]
push ecx
call fcn.0044ce20
add esp, 0x1c
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, 1
jle 0x48934d
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401680
mov esi, dword [esi]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov edi, 0x55c090
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x48937b
mov cl, 0xaa
lea esp, [esp]
xor byte [eax + 0x55c090], cl
inc eax
cmp eax, ebx
jl 0x489370
mov al, byte [ebp + 0x78]
test al, al
mov ecx, ebx
je 0x48939a
mov edi, dword [ebp + 0xb8]
mov edx, ecx
shr ecx, 2
mov esi, 0x55c090
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4893ae
mov esi, dword [ebp + 0xb8]
mov eax, ecx
shr ecx, 2
mov edi, 0x55c090
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp + 0xb8], ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
mov dword [esp + 0x14], 0
call fcn.00488a90
mov ebx, dword [esp + 0x10]
cmp ebx, 0x400
jl 0x489420
push 0x19f
push str.gamePacket.cpp
push str.Packet::doCString
push str.length_BUFFERSIZE
push str.Assertion_failed.
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x51fa70
call fcn.00402110
mov edx, dword [0x55cd0c]
mov eax, dword [edx + 0x860]
push eax
call fcn.0044ce20
add esp, 0x1c
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x48946b
cmp ebx, eax
jle 0x48946b
push 0x1a2
push str.gamePacket.cpp
push str.Packet::doCString
push str.length_maxLength
push str.Assertion_failed.
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x51fa70
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x860]
push edx
call fcn.0044ce20
add esp, 0x1c
mov al, byte [ebp + 0x78]
test al, al
mov ecx, ebx
je 0x48948a
mov edi, dword [ebp + 0xb8]
mov eax, ecx
shr ecx, 2
mov esi, 0x55c090
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x48949e
mov esi, dword [ebp + 0xb8]
mov edx, ecx
shr ecx, 2
mov edi, 0x55c090
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0xb8]
add edx, ebx
xor eax, eax
test ebx, ebx
mov dword [ebp + 0xb8], edx
mov byte [ebx + 0x55c090], 0
jle 0x4894cb
mov cl, 0xaa
xor byte [eax + 0x55c090], cl
inc eax
cmp eax, ebx
jl 0x4894c0
mov eax, 0x55c090
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4894d3
mov ecx, dword [esp + 0x18]
sub eax, edx
push eax
push 0x55c090
call fcn.00401ee0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4896f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513851
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004947e0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
xor edi, edi
mov dword [esi + 0x1d4], ecx
lea ebp, [esi + 0x1e0]
mov ecx, ebp
mov dword [esp + 0x24], edi
mov dword [esi], 0x534560
mov dword [esi + 0x20], 0x534550
mov dword [esi + 0x1d0], eax
mov dword [esi + 0x1d8], edi
call fcn.004947e0
mov eax, dword [esp + 0x30]
cmp eax, edi
mov byte [esp + 0x24], 1
jl 0x48977b
mov edx, dword [esi + 0x1d0]
mov ecx, dword [edx + 0x90]
mov eax, dword [ecx + eax*4]
cmp dword [esi + 0x7c], eax
je 0x48977b
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x7c], eax
call dword [edx + 0x54]
push 0x150
call fcn.004fd765
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x24], 2
je 0x48979e
mov ecx, eax
call fcn.004930c0
mov edi, eax
mov eax, dword [esi + 0x1d0]
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x24], 1
mov dword [edi + 0x128], eax
call dword [edx + 0x44]
push 4
mov ecx, edi
call fcn.00499b70
mov eax, dword [ebp]
push edi
mov ecx, ebp
mov byte [esi + 0x3a9], 1
call dword [eax + 0x58]
mov ecx, dword [esi + 0x1d0]
mov eax, dword [ecx + 0x90]
mov edx, dword [esi + 0x1d4]
mov ecx, dword [eax + edx*4]
fld dword [ecx + 0x110]
mov edx, dword [ebp]
fmul dword [0x5216e0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], 0
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, ebp
call dword [edx + 0x64]
push 0
mov ecx, esi
call fcn.004895f0
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret 0xc
Function at 0x48b7a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5139a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
push 5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.00493cd0
mov dword [esp + 0xc], 0x534710
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x30]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0xc], esp
mov edi, esp
push esi
mov byte [esp + 0x30], 1
call fcn.00401a40
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x10]
mov dword [edi], eax
call fcn.0048b730
lea ecx, [esp + 0xc]
call fcn.00493f80
lea ecx, [esp + 0xc]
call fcn.00493db0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b84d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x28], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48b86c
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 4

Function at 0x48dbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
push 2
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.00493cd0
mov dword [esp + 8], 0x534b28
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x40]
push ecx
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x4c], esp
mov edi, esp
push esi
mov byte [esp + 0x40], 1
call fcn.00401a40
mov edx, dword [esp + 0x48]
add esp, 4
add eax, 0x10
push edx
lea ecx, [esp + 0x18]
mov dword [edi], eax
call fcn.0048db50
lea ecx, [esp + 8]
call fcn.00493f80
lea ecx, [esp + 8]
call fcn.00493db0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dc8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x30], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48dcab
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret 0x10
Function at 0x4a7fd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x515300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x55cd0c]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x878]
push edi
call fcn.004a65e0
sub esp, 0xc
fstp qword [esp + 4]
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Note:_Application_lost_focus_at__.3lf.
call fcn.00402110
mov edx, dword [0x55cd0c]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004a7680
add esp, 0x14
mov eax, dword [eax]
push eax
push str.Uve::onFocusLost
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._s__:__s
mov dword [esp + 0x30], 0
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
mov eax, dword [esp + 0x1c]
or ebp, 0xffffffff
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a8082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea edi, [esi + 0x8d0]
mov ecx, edi
mov byte [esi + 0x8cc], 0
call fcn.004763a0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Notifying__d_objects.
call fcn.00402110
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004a7680
add esp, 0x10
mov ecx, dword [eax]
push ecx
push str.Uve::onFocusLost
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._s__:__s
mov dword [esp + 0x30], 1
call fcn.00402110
mov edx, dword [0x55cd0c]
mov eax, dword [edx + 0x85c]
push eax
call fcn.00475320
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4a810b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor ecx, ecx
push ecx
mov eax, 0x465340
push eax
mov ecx, edi
call fcn.004763c0
push str.Notification_complete.
push str.Uve::onFocusLost
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._s__:__s
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
add esp, 0x10
call sub.BASS.dll_BASS_Pause
push str.Returning...
push str.Uve::onFocusLost
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._s__:__s
call fcn.00402110
mov edx, dword [0x55cd0c]
mov eax, dword [edx + 0x85c]
push eax
call fcn.00475320
mov ecx, dword [esp + 0x28]
add esp, 0x10
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret
Function at 0x4b8c00
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x5594e8]
xor eax, dword [ebp + 4]
push esi
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 8]
test eax, eax
push edi
mov esi, ecx
je 0x4b8c91
cmp eax, 0x100
jge 0x4b8c91
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov cl, byte [esi + 0x36]
mov al, 0x80
test al, cl
jne 0x4b8c53
test byte [esi + 0x42], al
je 0x4b8c58
mov byte [esp + 0x20], 0xff
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_ToAscii]
mov ecx, dword [esp + 0xc]
test eax, eax
setle al
dec al
and eax, ecx
mov ecx, dword [esp + 0x114]
xor ecx, dword [ebp + 4]
call fcn.004ecf23
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x114]
xor ecx, dword [ebp + 4]
xor al, al
call fcn.004ecf23
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c9e00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x5594e8]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [esp + 0x238], eax
mov eax, dword [ecx + 0x5c]
push edi
push eax
lea ecx, [esp + 0x13c]
push str._s.exe
push ecx
xor ebx, ebx
call fcn.004ef074
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c9e60
xor al, al
mov ecx, dword [esp + 0x23c]
xor ecx, dword [ebp + 4]
call fcn.004ecf23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
xor eax, eax
push edx
mov ecx, 0x4a
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4c9ead
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004ef00b
add esp, 8
test eax, eax
jne 0x4c9e9e
inc ebx
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4c9e84
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
xor eax, eax
cmp ebx, 1
setg al
xor ecx, dword [ebp + 4]
call fcn.004ecf23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1430
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4d1460
push esi
call fcn.004d6810
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4d1459
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4d14d9
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4d14c9
mov eax, dword [esi + 8]
test eax, eax
je 0x4d1484
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4d14c5
cmp eax, 2
je 0x4d14c9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d1477
cmp eax, 3
je 0x4d14aa
cmp eax, 1
jne 0x4d1477
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4d1477
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4d1477
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004d12c0
pop esi
ret
cmp eax, 0xcc
je 0x4d14f9
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.004d12c0
pop esi
ret
Function at 0x4e6204
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp edi, ebp
mov ebx, ecx
jne 0x4e621e
mov eax, 0x80070057
jmp 0x4e639b
cmp dword [ebx + 0x104], 0xffffffff
je 0x4e622e
mov ecx, ebx
call fcn.004e63a2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x10000080
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 4
push ebp
mov ecx, eax
push ebp
push 0xc0000000
and ecx, 3
push dword [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x114], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x104], eax
je 0x4e62e3
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [ebx + 0x110], eax
sbb esi, esi
neg esi
mov dword [esp + 0x14], esi
je 0x4e6297
mov eax, 0x1000
jmp 0x4e62a0
add eax, 0xfff
and ax, 0xf000
push ebp
push eax
push ebp
push 4
push ebp
mov dword [ebx + 0x110], eax
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebx + 0x108], eax
je 0x4e62e3
push dword [ebx + 0x110]
push ebp
push ebp
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, ebp
mov dword [ebx + 0x10c], edx
jne 0x4e6313
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4e62f5
call esi
mov esi, eax
jmp 0x4e6305
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, ebx
call fcn.004e63a2
mov eax, esi
jmp 0x4e639b
cmp esi, ebp
jne 0x4e636a
push 8
mov edi, str.D3DX_r_n
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4e6342
cmp dword [edx + 8], ebp
jne 0x4e6342
cmp dword [edx + 0x14], 0x10
jne 0x4e6342
mov eax, dword [edx + 0x18]
cmp eax, 0x28
jb 0x4e6342
cmp eax, dword [ebx + 0x110]
jbe 0x4e6362
mov ecx, dword [ebx + 0x110]
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x14], 1
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x4e6399
mov eax, dword [str.D3DX_r_n]
mov dword [edx], eax
mov eax, dword [0x541d94]
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
mov dword [edx + 0x10], ebp
mov dword [edx + 0x14], 0x10
mov dword [edx + 0x18], 0x28
mov dword [edx + 0x1c], ebp
mov dword [edx + 0x20], ebp
mov dword [edx + 0x24], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4