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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00488660
test eax, eax
je 0x4887f2
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.004881cc
xor eax, eax
inc eax
jmp 0x4888ef
push esi
push dword [ebx + 4]
call fcn.00485876
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x48889c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x48889c
cmp edi, 0x25
je 0x48882c
cmp edi, 0x27
je 0x48883a
cmp edi, 0x26
je 0x48882c
cmp edi, 0x28
jne 0x48889c
cmp edi, 0x27
je 0x48883a
cmp edi, 0x28
je 0x48883a
push 2
jmp 0x48883c
push 3
pop edi
jmp 0x48884a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x488886
push edi
mov ecx, esi
call fcn.00473d9b
mov esi, eax
test esi, esi
jne 0x48883f
mov ecx, dword [ebp - 4]
cmp edi, 3
setne al
push eax
call fcn.00473a9c
mov ecx, eax
jmp 0x488879
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x488886
push edi
mov ecx, esi
call fcn.00473d9b
mov esi, eax
test esi, esi
jne 0x48886b
jmp 0x488897
push 1
mov ecx, esi
call fcn.004a0ec8
push eax
mov ecx, ebx
call fcn.00488bae
xor eax, eax
inc eax
jmp 0x4888ee
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.0048988c
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00488943
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.00401160
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48c53f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x48c562
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x48c5ff
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.0048c14b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48c585
push ebx
call fcn.004b5aa8
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x48c5db
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x575214]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x48c5b0
call fcn.004b5aa8
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x48c5db
push esi
push 1
push eax
call fcn.004b5e85
push ebx
mov esi, eax
call fcn.004b5aa8
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x48c5e4
push dword [ebp - 4]
call dword [0x575218]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x48c5fe
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0048c4ea
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493b57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x493b77
xor eax, eax
jmp 0x493bd6
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x493b73
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x493b73
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x493b73
push edi
mov ecx, ebx
call fcn.004936a8
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.0049368a
mov ecx, ebx
mov dword [ebx], esi
call fcn.00493c32
test eax, eax
jne 0x493bd5
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
or dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x493e6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0xc
pop edi
mov eax, dword [esi]
sub eax, edi
mov dword [ebp - 4], ebx
push eax
call fcn.0046a114
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x493ee2
cmp dword [esi], edi
jbe 0x493ecc
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebp - 4]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr ebx, 8
xor bl, byte [eax + edi]
mov byte [ebp - 8], bl
push dword [ebp - 8]
call fcn.00493fff
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x493e95
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.00469c9f
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor eax, eax
add dword [esi], 0xfffffff4
inc eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x493f2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jae 0x493f4e
xor eax, eax
jmp 0x493f96
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
xor esi, esi
push ebx
movzx eax, word [ecx + 0x18]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp + esi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.00493fff
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x493f59
mov ecx, dword [ebp + 0x10]
xor eax, eax
shr ecx, 0x18
cmp byte [ebp - 5], cl
pop ebx
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x493fff
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x10]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi + 0x10], eax
movzx eax, al
add eax, dword [edi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x496599
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4ca991
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca810

Function at 0x4cda47
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cd707
Function at 0x4d6fe5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4d6ff2
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004d6ffe

Function at 0x4d8f23
Capabilities:
Terminate process

Disassembly:
push edi
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x4d8e5f
sub eax, 1
je 0x4d8e58
sub eax, 1
je 0x4d8e45
sub eax, 1
je 0x4d8dfb
dec eax
sub eax, 1
jne 0x4d8e66
cmp byte [esi], al
setne al
jmp 0x4d8e61
mov edx, 0x80000000
xor ecx, ecx
call fcn.004d50f0
movsd xmm1, qword [esi]
comisd xmm1, xmm0
jb 0x4d8e32
mov edx, 0x7fffffff
or ecx, 0xffffffff
call fcn.004d50f0
movsd xmm1, qword [esi]
comisd xmm0, xmm1
jb 0x4d8e32
movaps xmm0, xmm1
pop esi
pop edi
jmp fcn.004d4f9f
push 6
pop ecx
mov esi, str.double_out_of_Int64_range
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x4d8e78
call fcn.004d9625
test al, al
jne 0x4d8e58
push 7
pop ecx
mov esi, str.LargestUInt_out_of_Int64_range
jmp 0x4d8e6e
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4d8e63
xor eax, eax
xor edx, edx
pop esi
pop edi
ret
push 8
pop ecx
mov esi, str.Value_is_not_convertible_to_Int64.
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x7b
call fcn.004b5102
int3
jmp 0x4d8dce

Function at 0x4d8f28
Capabilities:
Terminate process

Disassembly:
jmp 0x4d8fd9
push edi
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x4d9059
sub eax, 1
je 0x4d903f
sub eax, 1
je 0x4d9052
sub eax, 1
je 0x4d9002
dec eax
sub eax, 1
jne 0x4d9060
cmp byte [esi], al
setne al
jmp 0x4d905b
movsd xmm0, qword [esi]
comisd xmm0, xmmword [0x568e58]
jb 0x4d902b
or ecx, 0xffffffff
mov edx, ecx
call fcn.004d50b0
comisd xmm0, xmmword [esi]
jb 0x4d902b
movsd xmm0, qword [esi]
pop esi
pop edi
jmp fcn.004d4f90
push 6
pop ecx
mov esi, str.double_out_of_UInt64_range
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4d906f
call fcn.004d9734
test al, al
jne 0x4d9052
push 7
pop ecx
mov esi, str.LargestInt_out_of_UInt64_range
jmp 0x4d9033
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4d905d
xor eax, eax
xor edx, edx
pop esi
pop edi
ret
push 9
pop ecx
mov esi, str.Value_is_not_convertible_to_UInt64.
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
call fcn.004b5102
int3
Function at 0x4d8f2d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ecx + 8]
push esi
push edi
sub eax, 0
je 0x4d8faa
sub eax, 1
je 0x4d8f9b
sub eax, 1
je 0x4d8f8c
sub eax, 1
je 0x4d8f74
sub eax, 1
je 0x4d8f67
sub eax, 1
jne 0x4d8fc0
cmp byte [ecx], 0
mov eax, str.true
mov edx, str.false
cmove eax, edx
push eax
jmp 0x4d8faf
cmp dword [ecx], 0
mov eax, 0x560e51
cmovne eax, dword [ecx]
jmp 0x4d8f64
movsd xmm0, qword [ecx]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [ebp + 8]
call fcn.004da08a
add esp, 0xc
jmp 0x4d8fb7
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.004da18c
jmp 0x4d8f87
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.004da121
jmp 0x4d8f87
push 0x560e51
mov ecx, dword [ebp + 8]
call fcn.00402100
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 4
push 8
pop ecx
mov esi, str.Type_is_not_convertible_to_string
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
call fcn.004b5102
int3

Function at 0x4d90e4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x4d9100
mov esi, dword [ebp + 8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4d90f7
sub esi, ecx
mov eax, 0x7ffffffe
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call fcn.004b6296
mov edi, eax
pop ecx
test edi, edi
je 0x4d9135
push esi
push dword [ebp + 8]
push edi
call fcn.004abe20
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
push 9
pop ecx
mov esi, str.Failed_to_allocate_string_value_buffer
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004b5102
int3
Function at 0x4dd4cb
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0x40
jne 0x4dd4f3
push eax
pop ebx
jmp 0x4dd540
jbe 0x4dd50b
push 0x20
pop ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
call fcn.004dd75d
add esp, 0xc
lea edi, [ebp - 0x24]
jmp 0x4dd50d
mov ebx, eax
mov eax, dword [ebp - 0x28]
push 0x40
pop esi
sub esi, ebx
add eax, 0x2a0
push esi
add eax, ebx
push 0x36
push eax
call fcn.004ac860
push esi
mov esi, dword [ebp - 0x28]
push 0x5c
lea eax, [esi + 0x2e0]
add eax, ebx
push eax
call fcn.004ac860
add esp, 0x18
test ebx, ebx
jle 0x4dd55a
lea ecx, [esi + 0x2e0]
mov al, byte [edi]
xor al, 0x36
mov byte [ecx - 0x40], al
mov al, byte [edi]
xor al, 0x5c
inc edi
mov byte [ecx], al
inc ecx
sub ebx, 1
jne 0x4dd546
push esi
call fcn.004dd85a
push 0x40
lea eax, [esi + 0x2a0]
push eax
push esi
call fcn.004dd888
lea ebx, [esi + 0xa8]
push ebx
call fcn.004dd85a
push 0x40
lea eax, [esi + 0x2e0]
push eax
push ebx
call fcn.004dd888
add esp, 0x20
lea edi, [esi + 0x150]
push 0x2a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x28]
mov esi, ebx
push 0x2a
pop ecx
add edi, 0x1f8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
Function at 0x4dd5b9
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
jle 0x4dd74f
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [eax + 0x88]
push esi
push edi
mov dword [ebp - 0x12c], ecx
add ebx, 2
xor edx, edx
movzx ecx, byte [ebx - 2]
movzx eax, byte [ebx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 1]
shl ecx, 8
add ebx, 4
or ecx, eax
mov dword [ebp + edx*4 - 0x124], ecx
inc edx
cmp edx, 0x10
jl 0x4dd5f0
push 0x30
mov dword [ebp - 0x130], ebx
lea edi, [ebp - 0xec]
pop ebx
mov ecx, dword [edi]
mov esi, ecx
mov edx, dword [edi - 0x34]
lea edi, [edi + 4]
mov eax, ecx
rol esi, 0xf
rol eax, 0xd
xor esi, eax
shr ecx, 0xa
xor esi, ecx
mov eax, edx
mov ecx, edx
ror eax, 7
rol ecx, 0xe
xor ecx, eax
shr edx, 3
xor ecx, edx
add esi, ecx
add esi, dword [edi - 0x3c]
add esi, dword [edi - 0x18]
mov dword [edi + 4], esi
sub ebx, 1
jne 0x4dd62d
mov esi, dword [ebp - 0x12c]
lea edi, [ebp - 0x24]
mov ebx, dword [ebp - 0x130]
xor edx, edx
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x128], edx
mov esi, edi
mov eax, edi
rol eax, 7
mov ecx, edi
ror esi, 0xb
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, edi
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 0x10]
and eax, edi
xor ecx, eax
add esi, ecx
mov ecx, dword [ebp - 0x24]
add esi, dword [edx + 0x575c58]
mov eax, ecx
add esi, dword [ebp + edx - 0x124]
mov edx, ecx
add esi, dword [ebp - 8]
rol eax, 0xa
ror edx, 0xd
xor edx, eax
mov eax, ecx
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x20]
mov ecx, eax
and eax, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x1c]
and ecx, dword [ebp - 0x24]
xor ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
add edx, ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
add edi, esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [edx + esi]
mov edx, dword [ebp - 0x128]
add edx, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x128], edx
cmp edx, 0x100
jl 0x4dd686
mov edx, dword [ebp - 0x12c]
xor ecx, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + ecx*4 - 0x24]
add dword [edx], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, 8
jl 0x4dd733
sub dword [ebp + 0x10], 1
jne 0x4dd5ee
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret

Function at 0x4dd85a
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, 0x575c38
push esi
lea esi, [ecx + 0x88]
mov eax, dword [edx]
add edx, 4
mov dword [esi], eax
lea esi, [esi + 4]
cmp edx, 0x575c58
jl 0x4dd86c
and dword [ecx + 4], 0
and dword [ecx], 0
pop esi
pop ebp
ret
Function at 0x4fa003
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp byte [edi + 0xe5], 2
jne 0x4fa086
push dword [edi + 0x14]
push dword [edi + 0x10]
push str.SELECT_1_FROM__Q.sqlite_master_WHERE_tbl_name_q_stat
call fcn.004e3a06
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x4fa083
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
push esi
push 1
push 0xffffffffffffffff
push eax
push dword [edi + 0xc]
call fcn.005184c6
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4fa078
push ebx
push dword [ebp + 8]
call fcn.004e6326
push dword [ebp + 8]
lea ebx, [eax - 0x64]
neg ebx
sbb ebx, ebx
inc ebx
call fcn.004ddf53
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fa077
mov byte [edi + 0xe5], bl
pop ebx
push dword [ebp - 4]
call fcn.004e3db5
pop ecx
jmp 0x4fa086
push 7
pop esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fa4c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebx]
mov eax, edi
mov ecx, dword [ebx + 4]
or eax, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ecx
je 0x4fa62e
mov eax, edi
xor esi, esi
and eax, 1
mov dword [ebp - 0xc], esi
or eax, esi
jne 0x4fa51b
mov ebx, ecx
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x4fa4f8
mov dword [ebp - 0xc], esi
and dword [ebp - 8], 0
xor edx, edx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
dec eax
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, dword [ebp - 4]
or edx, ecx
jne 0x4fa56c
mov ebx, dword [ebp - 4]
mov esi, eax
inc dword [ebp - 8]
xor edx, edx
dec esi
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x4fa546
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4fa62e
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
call fcn.00513d37
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4fa630
mov edi, dword [ebp - 0x14]
add edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jge 0x4fa5ec
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call dword [ebx + 0x14]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4fa5b9
push dword [ebp - 0xc]
mov eax, ebx
call dword [eax + 0x10]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 0x20]
pop ecx
test esi, esi
je 0x4fa608
cmp esi, 0x65
je 0x4fa608
mov eax, esi
jmp 0x4fa630
xor ecx, ecx
cmp esi, 0x65
sete cl
sub ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
test ecx, ecx
jle 0x4fa62e
mov esi, dword [ebp + 0x1c]
mov eax, edi
mov edx, dword [ebp - 4]
add dword [esi], ecx
call fcn.004d56f0
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x509d37
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movsx edx, word [ebx + 0x4c]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebx + edx*4 + 0x78]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov ax, word [ebx + edx*2 + 0x4e]
cmp ax, word [ecx + 0x12]
jae 0x509f0f
cmp byte [ebx + 0x49], 1
jne 0x509f0f
mov esi, dword [ebx + edx*4 + 0x78]
movzx ecx, ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x40]
movzx edi, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
shl edi, 8
or edi, eax
movzx eax, word [esi + 0x14]
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x509db7
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0050b06a
pop ecx
pop ecx
test eax, eax
jne 0x509f12
push ebx
push dword [ebx + 0x3c]
push dword [ebp - 0xc]
call fcn.00505979
add esp, 0xc
test eax, eax
jne 0x509f12
cmp dword [ebx + 0x10], eax
jne 0x509de5
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebp - 4]
call fcn.004fd715
add esp, 0x10
push dword [esi + 0x44]
call fcn.0051a7c3
pop ecx
test eax, eax
jne 0x509f12
lea eax, [ebp - 4]
push eax
push edi
push esi
call fcn.004eaf3c
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0x10]
push esi
call fcn.004eeae7
mov eax, dword [ebp - 8]
add esp, 0x1c
test eax, eax
jne 0x509f12
cmp byte [esi + 5], al
jne 0x509ebe
movsx eax, word [ebx + 0x4c]
mov edx, dword [ebx + eax*4 + 0x78]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], edx
movzx ecx, word [edx + 0x12]
mov eax, dword [ebx + eax*4 + 0x7c]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x40]
movzx ebx, byte [eax + ecx*2 - 2]
movzx eax, byte [eax + ecx*2 - 1]
shl ebx, 8
or ebx, eax
movzx eax, word [edx + 0x14]
and ebx, eax
add ebx, dword [edx + 0x38]
push ebx
push edx
call fcn.004ea505
movzx edi, ax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x50]
mov eax, dword [ebp - 4]
push dword [eax + 0x44]
call fcn.0051a7c3
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
lea eax, [edi + 4]
push esi
push eax
lea eax, [ebx - 4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.004fd4d0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
movzx eax, word [ecx + 0x12]
dec eax
push eax
push ecx
call fcn.004eeae7
mov eax, dword [ebp - 8]
add esp, 0x38
test eax, eax
jne 0x509f12
mov ebx, dword [ebp + 8]
push ebx
call fcn.004e85b0
mov edi, eax
pop ecx
test edi, edi
jne 0x509f0b
movsx ecx, word [ebx + 0x4c]
mov esi, dword [ebp - 0x14]
cmp ecx, esi
jle 0x509f04
movzx ecx, word [ebx + 0x4c]
movsx eax, cx
mov edx, dword [ebx + eax*4 + 0x78]
lea eax, [ecx - 1]
push edx
mov word [ebx + 0x4c], ax
call fcn.00504539
movsx eax, word [ebx + 0x4c]
pop ecx
cmp eax, esi
jg 0x509ed6
push ebx
call fcn.004e85b0
mov edi, eax
pop ecx
test edi, edi
jne 0x509f0b
push ebx
call fcn.004fed9e
pop ecx
mov eax, edi
jmp 0x509f12
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret