joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f27e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6ae4c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6f83c4]
push ebx
cmp eax, 0xe00e0804
je 0x4f29ae
cmp eax, 0xe0090404
je 0x4f29ae
mov ebx, dword [0x6f8478]
test ebx, ebx
je 0x4f29ae
xor cl, cl
mov edx, 0x404
mov byte [ebp - 0x109], cl
cmp ax, dx
jne 0x4f299d
movups xmm0, xmmword [str.softwaremicrosoftwindowscurrentversion_]
mov ax, word [0x62d89c]
and ebx, 0xffff0000
mov word [ebp - 0xe0], ax
cmp ebx, 0x5010000
mov al, byte [0x62d89e]
mov edx, str.MSTCIPH
movups xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xde], al
mov eax, str.TINTLGNT
movups xmm0, xmmword [0x62d884]
push esi
cmovb edx, eax
movups xmmword [ebp - 0xf8], xmm0
mov esi, edx
movq xmm0, qword [0x62d894]
push edi
movq qword [ebp - 0xe8], xmm0
mov al, byte [edx]
inc edx
test al, al
jne 0x4f2894
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4f28a4
mov ecx, edx
lea eax, [ebp - 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
mov ecx, edx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x4f2988
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 4
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push str.Keyboard_Mapping
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f2965
mov eax, dword [ebp - 0x118]
cmp ebx, 0x5000000
ja 0x4f2930
cmp al, 0x22
je 0x4f2946
cmp al, 0x23
je 0x4f2946
cmp ebx, 0x5010000
je 0x4f2940
cmp ebx, 0x5020000
jne 0x4f2965
sub al, 0x22
cmp al, 2
ja 0x4f2965
push dword [ebp - 0x110]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x110]
mov bl, byte [ebp - 0x109]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x109]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
Function at 0x4f34b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61d870
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x6ae4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x838], eax
cmp byte [eax + 0x20], 0
je 0x4f36b8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f36b8
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [ebp - 0x834], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x818], 0
mov esi, edi
mov dword [ebp - 0x830], edi
xorps xmm0, xmm0
mov dword [ebp - 0x814], 0
movups xmmword [ebp - 0x828], xmm0
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4f3540
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x4f36d3
mov dword [ebp - 0x814], 0xf
cmp esi, 0xf
ja 0x4f3585
push esi
lea eax, [ebp - 0x828]
mov dword [ebp - 0x818], esi
push edi
push eax
call fcn.005b7840
mov byte [ebp + esi - 0x828], 0
jmp 0x4f3606
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4f35a7
mov eax, closesocket
mov edi, closesocket
push eax
call fcn.0043d7f0
add esp, 4
jmp 0x4f35d7
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x4f35c6
push eax
call fcn.0043d7f0
add esp, 4
jmp 0x4f35d7
test eax, eax
je 0x4f35d5
push eax
call fcn.0057bdf6
add esp, 4
jmp 0x4f35d7
xor eax, eax
push esi
push dword [ebp - 0x830]
mov dword [ebp - 0x82c], eax
push eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], edi
call fcn.005b7840
mov eax, dword [ebp - 0x82c]
mov byte [eax + esi], 0
add esp, 0xc
push dword [ebp - 0x834]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x4f3682
cmp dword [ebp - 0x814], 0xf
lea edx, [ebp - 0x828]
push 0x400
cmova edx, dword [ebp - 0x828]
lea ecx, [ebp - 0x810]
push ecx
add eax, edx
sub eax, edx
push eax
push edx
push 0
push dword [0x6fa0bc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004f2e70
mov ecx, dword [0x6f98a0]
test ecx, ecx
je 0x4f3682
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xf
jbe 0x4f36b8
mov edx, dword [ebp - 0x828]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4f36ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f36d8
push ecx
push edx
call fcn.0057bde8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
call fcn.0043d6d0
call fcn.005c1e70
int3
Function at 0x4f9230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61da20
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6ae4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0057bdf6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f98f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d2370
Function at 0x4fabb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61dbc5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6ae4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
lea ecx, [ebx + 0x10]
cmp byte [eax + 0xd], 0
jne 0x4fac53
mov esi, eax
mov eax, dword [ecx]
mov dword [ebp + 0xc], eax
cmp dword [ebx + 0x14], 0xf
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, ebx
jbe 0x4fac14
mov ecx, dword [ebx]
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x4fac1f
mov eax, dword [eax]
push dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.00449a20
add esp, 0x10
test eax, eax
je 0x4fac3f
jns 0x4fac3f
mov esi, dword [esi + 8]
mov dword [ebp - 0x10], 0
jmp 0x4fac4a
mov edi, esi
mov dword [ebp - 0x10], 1
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x4fac04
lea ecx, [ebx + 0x10]
cmp byte [edi + 0xd], 0
jne 0x4faca2
cmp dword [edi + 0x24], 0xf
lea eax, [edi + 0x10]
mov esi, dword [eax + 0x10]
jbe 0x4fac67
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0xf
mov edx, dword [ecx]
mov ecx, ebx
jbe 0x4fac73
mov ecx, dword [ebx]
push esi
push eax
push edx
push ecx
call fcn.00449a20
add esp, 0x10
test eax, eax
je 0x4fac85
js 0x4faca2
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 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 8
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0x4ec4ec4
je 0x4fad48
mov dword [ebp - 0x24], eax
push 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.0057bdf6
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
push ebx
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 1
call fcn.00449f60
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x20]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x2c], ecx
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x10]
mov dword [edi + 0x30], edx
push dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.00446d50
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 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 8
call fcn.00446f90
int3

Function at 0x4ff750
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x4ff769
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x505870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e395
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6ae4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov edx, edi
cmp dword [edi + 0x14], 0xf
jbe 0x5058a7
mov edx, dword [edi]
mov ecx, dword [edi + 0x10]
xor esi, esi
add ecx, edx
cmp edx, ecx
jae 0x5058c2
movzx eax, byte [edx]
inc edx
imul esi, esi, 0x1000193
xor esi, eax
cmp edx, ecx
jb 0x5058b2
push esi
push edi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00505650
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5058f3
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 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 8
cmp dword [ebx + 8], 0x71c71c7
je 0x505a4e
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
push 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.0057bdf6
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00449f60
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x20], ecx
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x66db00]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x66db00]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x5059f0
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.005d2070
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0057c840
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x5059d4
cmp eax, 0x200
jae 0x5059d2
shl eax, 3
cmp eax, ecx
jae 0x5059d4
mov eax, ecx
push eax
mov ecx, ebx
call fcn.005073c0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00505650
mov edx, dword [eax]
jmp 0x5059f3
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x505a1b
mov dword [ecx + eax*8], edi
jmp 0x505a2d
cmp esi, edx
jne 0x505a24
mov dword [ecx + eax*8], edi
jmp 0x505a31
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x505a31
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 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 8
push str.unordered_map_set_too_long
call fcn.0057a74d
int3
Function at 0x5090b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e925
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6ae4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x30], esi
push 0x40
movups xmmword [ebp - 0x28], xmm0
call fcn.0057bdf6
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov ecx, eax
mov dword [ebp - 0x18], 0x37
add esp, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x62ef50]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x62ef60]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x62ef70]
mov dword [ecx + 0x30], eax
mov ax, word [0x62ef74]
mov word [ecx + 0x34], ax
mov al, byte [0x62ef76]
mov byte [ecx + 0x36], al
mov byte [ecx + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 0
call fcn.00449f60
mov ecx, dword [ebp - 0x14]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
cmp ecx, 0xf
jbe 0x5091a5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x50919b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5091c7
push ecx
push edx
call fcn.0057bde8
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
call fcn.005c1e70
int3
Function at 0x509260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e925
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6ae4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x30], esi
push 0x40
movups xmmword [ebp - 0x28], xmm0
call fcn.0057bdf6
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov ecx, eax
mov dword [ebp - 0x18], 0x37
add esp, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x62ef50]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x62ef60]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x62ef70]
mov dword [ecx + 0x30], eax
mov ax, word [0x62ef74]
mov word [ecx + 0x34], ax
mov al, byte [0x62ef76]
mov byte [ecx + 0x36], al
mov byte [ecx + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 0
call fcn.00449f60
mov ecx, dword [ebp - 0x14]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
cmp ecx, 0xf
jbe 0x509355
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x50934b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509377
push ecx
push edx
call fcn.0057bde8
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::Filter_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret
call fcn.005c1e70
int3

Function at 0x50c020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x13f4], 0x20
je 0x50c036
xor al, al
pop esi
pop ebp
ret 4
cmp byte [esi + 0x365], 0
jne 0x50c075
cmp dword [esi + 0x13f8], 0xf
push edi
lea edi, [esi + 0x13e4]
jbe 0x50c051
mov edi, dword [edi]
mov edx, dword [ebp + 8]
xor ecx, ecx
xor dword [edi + ecx*4], edx
inc ecx
mov eax, dword [esi + 0x13f4]
add edx, 0x1000193
shr eax, 2
cmp ecx, eax
jne 0x50c056
pop edi
mov byte [esi + 0x365], 1
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x50efa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f04d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6ae4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0057bdf6
mov edi, eax
add esp, 4
test edi, edi
je 0x50f03d
push 1
mov dword [ebp - 4], 0
call fcn.0057b315
add esp, 4
mov dword [edi + 4], eax
jmp 0x50f03f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.005081e0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ebx, ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x50f09b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x50f09b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x50f0b8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x50f0db
cmp byte [ebp + 0xc], 0
je 0x50f0c7
push esi
call fcn.0057b8ee
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x50f0e7
mov esi, str.ios_base::badbit_set
jmp 0x50f0f7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0050f120
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0050a350
push 0x686170
lea eax, [ebp - 0x28]
push eax
call fcn.005b77c7
int3
Function at 0x511c90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f385
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6ae4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00449f60
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.004d5400
lea eax, [ebp - 0x40]
push eax
call fcn.004d5400
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00511ad0
add esp, 0x10
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmova eax, esi
add edi, eax
mov byte [ebp - 4], 1
xor edx, edx
cmp eax, edi
jae 0x511d30
movzx ecx, byte [eax]
inc eax
imul edx, edx, 0x1000193
xor edx, ecx
cmp eax, edi
jb 0x511d20
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], edx
push eax
call fcn.00505800
mov ecx, dword [ebp - 0x4c]
add esp, 4
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.005055e0
mov edi, dword [eax + 4]
test edi, edi
je 0x511dc6
mov eax, dword [ebp - 0x4c]
cmp edi, dword [eax + 4]
je 0x511dc6
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.004d2370
mov esi, eax
mov byte [ebp - 0x41], 1
mov eax, 0xaaaaaaab
add esp, 8
mul esi
movd xmm0, esi
pshufd xmm2, xmm0, 0
movaps xmm1, xmm2
mov eax, dword [ebp - 0x50]
shr edx, 1
lea ecx, [edx + edx*2]
sub esi, ecx
mov ecx, dword [ebp - 0x58]
mov dword [eax], esi
movups xmm0, xmmword [edi + 0xc]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x28]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x1c]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax]
xorps xmm1, xmm0
movups xmmword [eax], xmm1
movups xmm0, xmmword [ecx]
xorps xmm2, xmm0
movups xmmword [ecx], xmm2
jmp 0x511dca
mov byte [ebp - 0x41], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x511df9
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x511def
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511e5b
push ecx
push esi
call fcn.0057bde8
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x511e3b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x511e31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511e5b
push ecx
push edx
call fcn.0057bde8
add esp, 8
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret 0x10
call fcn.005c1e70
int3
Function at 0x511e70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c28d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6ae4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00449f60
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004d5400
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add esp, 4
cmp dword [ebp - 0x14], 0xf
cmova ecx, esi
xor edx, edx
add edi, ecx
cmp ecx, edi
jae 0x511ef0
nop
movzx eax, byte [ecx]
inc ecx
imul edx, edx, 0x1000193
xor edx, eax
cmp ecx, edi
jb 0x511ee0
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], edx
call fcn.00505800
add esp, 4
lea ecx, [edi + 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.005055e0
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x511f1d
mov ecx, dword [edi + 0x24]
mov eax, edi
cmp ecx, dword [eax + 0x24]
je 0x511f39
mov eax, dword [ecx + 0x28]
mov edx, dword [ebp - 0x34]
sub eax, dword [ecx + 0x24]
mov dword [edx], eax
test eax, eax
jg 0x511f62
mov dword [ebx], 0
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x511f75
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x511f6b
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511f95
jmp 0x511f6b
mov eax, dword [ecx + 0x24]
mov dword [ebx], eax
mov bl, 1
jmp 0x511f3b
push ecx
push esi
call fcn.0057bde8
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057bdda
mov esp, ebp
pop ebp
ret 0xc
call fcn.005c1e70
int3