joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fb38
Capabilities:
Get token privileges

Disassembly:
push 0xc4
mov eax, 0x59228b
call fcn.005692da
mov dword [ebp - 0xcc], edx
mov edi, ecx
lea eax, [ebp - 0xc8]
xor ebx, ebx
push eax
push ebx
push ebx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x49fb8b
push ecx
lea ecx, [ebp - 0xc4]
call fcn.004957df
push 0x5fa010
lea eax, [ebp - 0xc4]
push eax
call fcn.005491a6
push dword [ebp - 0xc8]
call fcn.0053eb1f
mov esi, eax
pop ecx
mov dword [ebp - 0xd0], esi
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0xc8]
push esi
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x49fbd0
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004957df
push 0x5fa010
lea eax, [ebp - 0x6c]
jmp 0x49fb85
mov edx, ebx
cmp dword [esi], edx
jbe 0x49fbf8
mov edi, dword [ebp - 0xcc]
lea ecx, [esi + 4]
mov eax, dword [edi + 4]
cmp dword [ecx + 4], eax
jne 0x49fbf0
mov eax, dword [ecx]
cmp eax, dword [edi]
je 0x49fc07
mov eax, dword [edi + 4]
inc edx
add ecx, 0xc
cmp edx, dword [esi]
jb 0x49fbe2
push esi
call fcn.0053e195
xor al, al
pop ecx
call fcn.00569289
ret
test byte [ecx + 8], 3
jne 0x49fc16
test dword [ecx + 8], 0x80000000
je 0x49fc18
mov bl, 1
push esi
call fcn.0053e195
mov al, bl
jmp 0x49fc00

Function at 0x4a017c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov ecx, edi
mov dword [ebp - 4], edi
mov edx, dword [esi + 8]
sub edx, dword [esi + 0x14]
cmp ebx, dword [esi + 0x14]
jb 0x4a0213
mov dword [ebp - 8], edi
cmp dword [esi + 0x14], edi
jbe 0x4a01de
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
sub edi, eax
mov dword [ebp - 0xc], edi
add eax, ecx
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea ecx, [eax + edi]
mov eax, dword [esi + 0x10]
add eax, edi
mov al, byte [eax + edx]
xor al, byte [ebx + ecx]
inc edi
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edi, dword [esi + 0x14]
jb 0x4a01bd
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov ecx, dword [ebp - 4]
sub ebx, dword [esi + 0x14]
add ecx, dword [esi + 0x14]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov eax, dword [esi + 0xc]
dec ecx
inc byte [ecx + eax]
je 0x4a01ed
mov ecx, dword [esi + 4]
push dword [esi + 0x10]
push dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 8]
mov edx, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x14], eax
cmp ebx, eax
jae 0x4a019f
test ebx, ebx
je 0x4a0240
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
add eax, ecx
mov dword [ebp + 0xc], eax
lea ecx, [eax + edi]
mov eax, dword [esi + 0x10]
mov esi, dword [ebp + 8]
add eax, edi
mov al, byte [eax + edx]
xor al, byte [esi + ecx]
inc edi
mov esi, dword [ebp - 0x14]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
cmp edi, ebx
jb 0x4a0222
sub dword [esi + 0x14], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a03c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x4a0455
mov ecx, dword [esi + 8]
mov eax, edi
sub ecx, dword [esi + 0xc]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
cmp ebx, dword [esi + 0xc]
jbe 0x4a0432
mov edx, edi
cmp dword [esi + 0xc], edi
jbe 0x4a0407
mov ebx, dword [ebp + 8]
add ecx, esi
add ebx, eax
xor edi, edi
mov al, byte [ebx + edx]
xor byte [ecx + edx + 0x28], al
inc edx
cmp edx, dword [esi + 0xc]
jb 0x4a03f7
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
lea edx, [esi + 0x28]
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov ecx, edi
add eax, dword [esi + 0xc]
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
cmp ebx, eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], ebx
ja 0x4a03e7
test ebx, ebx
je 0x4a0449
mov edx, dword [ebp + 8]
add edx, eax
add ecx, esi
mov al, byte [edx + edi]
xor byte [ecx + edi + 0x28], al
inc edi
cmp edi, ebx
jb 0x4a043d
sub dword [esi + 0xc], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5fa37c
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], str.OMAC_computation_not_initialized
push eax
call fcn.005491a6
int3

Function at 0x4a046b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4a0538
cmp dword [esi + 0xc], 0
jbe 0x4a04eb
mov eax, dword [esi + 8]
push ebx
push edi
lea edi, [esi + 0x18]
movzx ebx, byte [edi]
and ebx, 0x80
mov dword [ebp - 8], ebx
dec eax
je 0x4a04c0
push 0xffffffffffffffe8
pop eax
sub eax, esi
mov ebx, eax
mov al, byte [edi]
mov cl, byte [edi + 1]
add al, al
shr cl, 7
or cl, al
mov byte [edi], cl
lea edi, [edi + 1]
mov eax, dword [esi + 8]
lea ecx, [ebx + edi]
dec eax
cmp ecx, eax
jb 0x4a04a1
mov ebx, dword [ebp - 8]
pop edi
test ebx, ebx
pop ebx
je 0x4a04cb
mov edx, dword [esi + 0x10]
jmp 0x4a04cd
xor edx, edx
mov ecx, dword [esi + 8]
mov al, byte [ecx + esi + 0x17]
add al, al
xor al, dl
mov byte [ecx + esi + 0x17], al
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
xor byte [eax + esi + 0x28], 0x80
and dword [esi + 0xc], 0
cmp dword [esi + 8], 0
jbe 0x4a0507
push 0xffffffffffffffd8
pop edx
lea ecx, [esi + 0x28]
sub edx, esi
mov al, byte [ecx - 0x10]
xor byte [ecx], al
inc ecx
lea eax, [edx + ecx]
cmp eax, dword [esi + 8]
jb 0x4a04f9
mov ecx, dword [esi + 4]
lea eax, [esi + 0x28]
push eax
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
and dword [esi + 4], 0
mov dword [esi + 0x14], 1
push dword [esi + 8]
lea eax, [esi + 0x28]
push eax
push dword [ebp + 8]
call fcn.005406f0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 0
jne 0x4a051f
push 0x5fa37c
lea eax, [ebp + 8]
mov dword [ebp + 8], str.OMAC_computation_not_initialized
push eax
call fcn.005491a6
int3
Function at 0x4a1c55
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x24], 0
and dword [ecx + 0x28], 0
mov dword [ecx + 4], 0x6a09e667
mov dword [ecx + 8], 0xbb67ae85
mov dword [ecx + 0xc], 0x3c6ef372
mov dword [ecx + 0x10], 0xa54ff53a
mov dword [ecx + 0x14], 0x510e527f
mov dword [ecx + 0x18], 0x9b05688c
mov dword [ecx + 0x1c], 0x1f83d9ab
mov dword [ecx + 0x20], 0x5be0cd19
ret
Function at 0x4a359d
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
push 0x40
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x28]
mov edx, ebx
pop ecx
mov eax, dword [edx + 0x34]
xor eax, dword [edx + 0x20]
xor eax, dword [edx + 8]
xor eax, dword [edx]
lea edx, [edx + 4]
rol eax, 1
mov dword [edx + 0x3c], eax
dec ecx
jne 0x4a35b3
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x10]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x18]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], 0x14
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, esi
rol ecx, 5
xor eax, edi
mov dword [ebp - 8], esi
and eax, dword [ebp - 4]
add edx, 0x5a827999
xor eax, esi
mov esi, edi
mov edi, dword [ebp - 4]
add ecx, eax
add ecx, dword [ebx]
lea ebx, [ebx + 4]
add edx, ecx
ror edi, 2
dec dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
jne 0x4a35f1
mov eax, dword [ebp - 0x10]
mov ebx, esi
add eax, 0x78
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0x14
mov eax, ebx
rol edx, 5
xor eax, edi
add esi, 0x6ed9eba1
xor eax, ecx
add edx, eax
mov eax, dword [ebp - 0x18]
add edx, dword [eax]
add eax, 4
add edx, esi
mov dword [ebp - 0x18], eax
mov esi, ebx
mov ebx, edi
mov edi, ecx
mov ecx, dword [ebp - 0xc]
ror edi, 2
dec dword [ebp - 4]
mov dword [ebp - 0xc], edx
jne 0x4a3644
mov eax, dword [ebp - 0x10]
add eax, 0xc8
mov dword [ebp - 8], esi
mov dword [ebp - 4], ecx
mov esi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x14
mov ecx, edi
rol edx, 5
or ecx, esi
mov eax, edi
and eax, esi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 0x18]
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, edi
mov edi, esi
mov esi, dword [ebp - 0xc]
add edx, dword [eax]
add eax, 4
add edx, ecx
ror edi, 2
dec dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
jne 0x4a3690
mov eax, dword [ebp - 0x10]
mov ecx, esi
add eax, 0x118
mov dword [ebp - 4], esi
push 0x14
mov dword [ebp - 0x14], eax
pop esi
mov eax, ebx
rol edx, 5
xor eax, edi
add edx, 0xca62c1d6
add edx, dword [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x14], 4
mov dword [ebp - 8], ebx
mov ebx, edi
mov edi, dword [ebp - 4]
add eax, dword [ecx]
mov ecx, dword [ebp - 0xc]
add edx, eax
ror edi, 2
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
dec esi
jne 0x4a36dd
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, edx
add dword [esi + 0x10], edi
add dword [esi + 0x14], ebx
add dword [esi + 0xc], ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
add dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3732
Capabilities:
Hash data using sha1

Disassembly:
mov edx, ecx
xor eax, eax
push edi
push 0x50
pop ecx
lea edi, [edx + 0x28]
rep stosd dword es:[edi], eax
and dword [edx + 4], eax
and dword [edx], eax
mov dword [edx + 8], 0x67452301
mov dword [edx + 0xc], 0xefcdab89
mov dword [edx + 0x10], 0x98badcfe
mov dword [edx + 0x14], 0x10325476
mov dword [edx + 0x18], 0xc3d2e1f0
pop edi
ret

Function at 0x4a3769
Capabilities:
Encode data using xor
Hash data using sha1
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, dword [ecx]
shr edi, 5
and edi, 0xf
movzx eax, dl
mov esi, dword [ecx + edi*4 + 0x28]
shl esi, 8
or esi, eax
mov dword [ecx + edi*4 + 0x28], esi
add dword [ecx], 8
pop edi
pop esi
jne 0x4a3790
inc dword [ecx + 4]
and dword [ecx], 0
test dword [ecx], 0x1ff
je fcn.004a359d
ret
Function at 0x4a52e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [ebp + 0xc], 0xa
mov edi, ecx
neg ebx
sub edi, esi
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
dec dword [ebp + 0xc]
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x4a52f9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a59a2
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push edi
push 0x20
push edx
push eax
mov edi, ecx
call fcn.005406f0
mov al, byte [ebp - 9]
lea ecx, [ebp - 0x174]
and byte [ebp - 0x28], 0xf8
and al, 0x3f
add esp, 0xc
or al, 0x40
mov edx, esi
mov byte [ebp - 9], al
call fcn.004a4971
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x124]
call fcn.004a5323
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0xd4]
call fcn.004a564a
lea eax, [ebp - 0xd4]
push eax
lea edx, [ebp - 0x124]
lea ecx, [ebp - 0x84]
call fcn.004a44bb
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.004a4383
lea edx, [ebp - 0x84]
mov ecx, edi
call fcn.004a4ccd
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053cd12
mov esp, ebp
pop ebp
ret

Function at 0x4a7e90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x4a7eb5
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x4a7ea6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x4a8030
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4a8094
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4a8094
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
call fcn.0053f66f
add eax, 0x40
push eax
call fcn.0053f74b
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0053cd12
add esp, 0x108
ret
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
lea eax, [esp + 0xc]
push 0xff
push eax
call fcn.0053f879
add esp, 0x10
mov byte [esp + 0x103], 0
call fcn.004a7ef0
test eax, eax
jle 0x4a8115
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0053cd12
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0053cd12
add esp, 0x108
ret
Function at 0x4b1280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b12a5
push 0
sub ecx, edx
mov dword [ebp - 0x18], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x4b1310
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4b1303
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x4b1310
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x4b138c
lea eax, [esi + esi]
call fcn.0053f940
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x18]
push 0xfde9
call esi
test eax, eax
je 0x4b13eb
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b1340
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x4b13eb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.00542282
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b139e
call fcn.00542395
cmp dword [eax], 2
je 0x4b138e
call fcn.00542395
cmp dword [eax], 9
jne 0x4b13eb
push ebx
push edi
call fcn.005418ce
mov esi, eax
add esp, 8
test esi, esi
je 0x4b13eb
push 0x5fd314
call fcn.004aa8b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4b13bf
push esi
call fcn.005413f4
add esp, 4
jmp 0x4b1453
push 0
push edi
call fcn.004aa4c0
push esi
push 1
push 0x6a
push edi
call fcn.004aa4f0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004a91e0
push 0x5a4ee0
push ebx
push 0x5a4ee4
push edi
push str.fopen_
push 5
call fcn.004a8800
add esp, 0x2c
call fcn.00542395
cmp dword [eax], 2
jne 0x4b143b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x4b1447
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004a91e0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x4d26d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.004b38a0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.004b3700
add esp, 0xc
test eax, eax
je 0x4d27d2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004b33f0
add esp, 0xc
test eax, eax
je 0x4d27d2
lea eax, [esp + 0x20]
push eax
call fcn.004b3640
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x4d27f0
push edi
call fcn.004ac7f0
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.004c5fe0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4d27d2
push esi
call fcn.00502340
add esp, 4
test eax, eax
jle 0x4d27d2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.004c5d90
add esp, 0x18
test eax, eax
jle 0x4d27d2
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.00502260
add esp, 0x14
test eax, eax
jle 0x4d27d2
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.004c5f80
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0053cd12
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x4d2808
cmp dword [edi], edx
je 0x4d2832
inc eax
add ecx, 4
cmp eax, 4
jl 0x4d27f5
push 0x7f
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004a91e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0053cd12
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4d2866
push 0x85
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004a91e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0053cd12
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053cd12
add esp, 0x6c
ret
Function at 0x4f1cc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x90
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0xa4]
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edx
test edi, edi
je 0x4f1d0f
mov eax, 1
mov dword [esi], edi
jmp 0x4f1d11
mov edi, dword [esi]
test ebp, ebp
je 0x4f1e99
push edi
call fcn.004cc9b0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4f1d45
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.004a8140
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [esp + 0xac]
cmp eax, ebx
jge 0x4f1d9d
push dword [esp + 0x10]
lea ebp, [esi + 4]
push edi
push ebp
call fcn.004b3490
add esp, 0xc
test eax, eax
je 0x4f1e95
push ebx
push dword [esp + 0x1c]
push ebp
call fcn.004b3630
add esp, 0xc
test eax, eax
je 0x4f1e95
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 4]
push eax
call fcn.004b33f0
add esp, 0xc
test eax, eax
je 0x4f1e95
jmp 0x4f1dd1
test ebx, ebx
js 0x4f1da9
cmp ebx, 0x80
jle 0x4f1dbd
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.004a8140
add esp, 0xc
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.005406f0
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x4f1df4
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.00540250
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x4f1e00
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.004b3490
add esp, 0xc
test eax, eax
je 0x4f1e95
push edi
call fcn.004cc9b0
push eax
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.004b3630
add esp, 0x10
test eax, eax
je 0x4f1e95
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x4f1e40
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.004b3490
add esp, 0xc
test eax, eax
je 0x4f1e95
push edi
call fcn.004cc9b0
push eax
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.004b3630
add esp, 0x10
test eax, eax
je 0x4f1e95
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.004b3700
add esp, 8
test eax, eax
jne 0x4f1ea2
xor eax, eax
jmp 0x4f1ea7
test eax, eax
je 0x4f1e81
jmp 0x4f1df8
mov eax, 1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053cd12
add esp, 0x90
ret
Function at 0x510740
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x510757
mov edi, ecx
jmp 0x51075b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x51076b
mov eax, ebx
jmp 0x510775
push eax
push ebx
call fcn.004c12a0
add esp, 8
test eax, eax
jne 0x51077d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x51079b
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x510785
cmp esi, dword [edi + 4]
jge 0x5107b0
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x5107a0
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x5107d4
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x5107d1
dec ecx
test ecx, ecx
jg 0x5107c3
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret