joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537074
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00528307
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00528307
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5370eb
cmp word [ecx], dx
je 0x5370eb
mov eax, dword [0x6b03fc]
push edi
dec eax
push eax
push 0x6b02e8
call fcn.00537013
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x53715e
cmp word [eax], dx
je 0x53715e
mov eax, dword [edi]
test eax, eax
je 0x53710f
cmp word [eax], dx
je 0x53710f
lea eax, [ebp - 0x10]
push eax
call fcn.005369f6
jmp 0x537118
lea eax, [ebp - 0x10]
push eax
call fcn.00536a91
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x537188
mov eax, dword [0x6b02e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x6affd8
call fcn.00537013
add esp, 0xc
test al, al
je 0x537188
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x537153
cmp word [eax], di
je 0x537153
lea eax, [ebp - 0x10]
push eax
call fcn.005369f6
pop ecx
jmp 0x53718a
lea eax, [ebp - 0x10]
push eax
call fcn.00536a91
jmp 0x537150
mov eax, dword [edi]
test eax, eax
je 0x537175
cmp word [eax], dx
je 0x537175
lea eax, [ebp - 0x10]
push eax
call fcn.0053698d
pop ecx
jmp 0x537188
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x537253
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00536e98
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x537253
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x537253
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x537253
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5371e0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00529578
test ebx, ebx
je 0x53724e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00529578
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x537253
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x537253
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005402fb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x537255
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004815ec
leave
ret
Function at 0x5407a8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5407eb
call fcn.004ed8fc
mov dword [eax], 0xf
call fcn.004ed90f
mov dword [eax], 0xd
call fcn.004ed7ae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004815ec
leave
ret
test eax, eax
jne 0x5407f2
inc eax
jmp 0x5407df
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5407dd
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5407df
Function at 0x5412a9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005410cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x541418
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x541418
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5413cd
jg 0x541305
test eax, eax
je 0x5413c3
push 1
push 0x1000
call fcn.00529982
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x541328
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5413ba
push 0x8000
push ebx
call fcn.0052142a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x541351
jg 0x54134c
cmp ecx, 0x1000
jb 0x541351
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052c48d
add esp, 0x10
cmp eax, 0xffffffff
je 0x541396
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x54134c
jl 0x54137d
test ecx, ecx
jne 0x54133e
push dword [ebp - 0xc]
push ebx
call fcn.0052142a
push esi
call fcn.005299e5
add esp, 0xc
xor ebx, ebx
jmp 0x541426
cmp byte [edi + 0x24], 0
je 0x5413ad
cmp dword [edi + 0x20], 5
jne 0x5413ad
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5413b8
mov ebx, dword [edi + 0x18]
jmp 0x5413ba
xor ebx, ebx
push esi
call fcn.005299e5
pop ecx
jmp 0x541426
test ecx, ecx
jg 0x54138f
jl 0x5413cd
test eax, eax
jae 0x54138f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00527979
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5413ed
cmp byte [edi + 0x1c], 0
je 0x54138f
jmp 0x54141e
push ebx
call fcn.00534c28
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54138f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x541426
cmp byte [edi + 0x1c], 0
je 0x541423
mov ebx, dword [edi + 0x18]
jmp 0x541426
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00527979
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x543600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54362d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54362d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x545e10
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00545f20

Function at 0x5461a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5461ac
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.005466f0

Function at 0x5464e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x108], edx
test edi, edi
jg 0x54651c
jl 0x54650a
test edx, edx
jne 0x54651c
mov eax, dword [ebp + 8]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x546530
push ebx
push esi
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x546570
test al, 1
je 0x546569
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x546563
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x546550
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x5465b0
test al, 1
je 0x5465a9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x5465a3
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x546590
mov ebx, dword [ebp + 8]
nop word [eax + eax]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x546600
test al, 1
je 0x5465f9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x5465f3
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x5465e0
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x546640
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x54663e
nop
test bl, 1
je 0x546637
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x546630
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp - 0x108], edx
je 0x5466d6
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x546680
test al, 1
je 0x546679
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x546673
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x546660
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x5466c0
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x5466be
nop
test bl, 1
je 0x5466b7
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x5466b0
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov ecx, edx
or ecx, edi
mov dword [ebp - 0x108], edx
jne 0x5465d0
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.004815ec
mov esp, ebp
pop ebp
ret
Function at 0x5c8d00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x5c8d27
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
sub esi, 1
jne 0x5c8d16
pop edi
movzx eax, dl
pop esi
ret

Function at 0x5d2a90
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.00482d80
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x5d2ad8
sub eax, 2
je 0x5d2ad8
sub eax, 0x15
je 0x5d2ad8
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.005a0720
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.005d8500
cmp eax, 1
jne 0x5d2ad0
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
movups xmmword [esp + 0x20], xmm0
test esi, esi
jne 0x5d2b18
or eax, 0x400
mov dword [esp + 0x10], eax
cmp dword [esp + 0x3c], 1
jne 0x5d2b26
or eax, 1
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x5d2b7c
cmp esi, 8
je 0x5d2bc3
mov eax, dword [esp + 0x10]
test eax, 0x400
je 0x5d2b8b
and eax, 0xfffffbff
mov edi, esi
or eax, 4
push ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x5d2b44
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d6
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.005a0720
test edi, edi
cmovne esi, edi
push esi
call fcn.005d3170
push eax
push 1
call fcn.0059fdf0
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c7
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.005a0720
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x5f1fd0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00482d80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.0059cb30
mov ebx, eax
push ebx
push esi
call fcn.0059ca00
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5f2059
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5f2033
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0059ca70
push esi
call fcn.0059cc10
mov edi, eax
add esp, 0x10
test edi, edi
je 0x5f2059
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.0059cb30
mov ebx, eax
push ebx
push esi
call fcn.0059ca00
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5f20c8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5f20ae
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0059ca70
push esi
call fcn.0059cc10
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x5f2051
push esi
call fcn.0059cc10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x615800
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x615855
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x615843
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x61587a
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x6ecc70]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x615860
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x6ecc70]
mov byte [esi], cl
test edi, edi
je 0x6158c8
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x6ecc70]
mov byte [esi], cl
sub edi, 1
jne 0x6158b0
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x6158d6
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x617c70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00482d80
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x617cbd
mov edx, dword [esp + 0x30]
test esi, esi
je 0x617cbd
mov al, byte [edi + edx]
dec esi
xor al, byte [ecx]
inc edi
mov byte [ebp], al
inc ecx
inc ebp
mov dword [esp + 0x10], ecx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x617ca0
mov ebx, dword [esp + 0x2c]
movzx edx, byte [ebx + 0xc]
movzx eax, byte [ebx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xf]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x617d77
mov edi, ebx
nop
mov ebx, esi
shr ebx, 4
add edx, ebx
mov dword [esp + 0x24], edx
cmp edx, ebx
jae 0x617d07
sub ebx, edx
xor edx, edx
mov dword [esp + 0x24], edx
push edi
push dword [esp + 0x2c]
push ebx
push ebp
push ecx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x617d59
mov edx, 0xc
mov ecx, 1
movzx eax, byte [edx + edi - 1]
dec edx
add ecx, eax
mov byte [edx + edi], cl
shr ecx, 8
test edx, edx
jne 0x617d43
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
shl ebx, 4
sub esi, ebx
add ecx, ebx
add ebp, ebx
mov dword [esp + 0x10], ecx
cmp esi, 0x10
jae 0x617cf0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
test esi, esi
je 0x617de5
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push ebx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
test ecx, ecx
jne 0x617dc2
push ebx
call fcn.00617e60
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
mov edx, dword [esp + 0x10]
sub edx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub esi, 1
jne 0x617dd3
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x618750
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x38]
or eax, dword [ebx + 0x3c]
je 0x618764
mov eax, 0xfffffffe
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
add eax, dword [ebx + 0x30]
adc ecx, dword [ebx + 0x34]
cmp ecx, 0x20000000
ja 0x618819
jb 0x618789
test eax, eax
jne 0x618819
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [ebx + 0x16c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
test edi, edi
je 0x6187c9
nop
test esi, esi
je 0x6187b5
mov al, byte [ebp]
dec esi
xor byte [edi + ebx + 0x40], al
inc ebp
inc edi
and edi, 0xf
jne 0x6187a0
jmp 0x6187b9
test edi, edi
jne 0x61880c
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.00619de0
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x6187ee
push eax
push ebp
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.00619ba0
add ebp, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x61880c
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x61880c
nop word [eax + eax]
mov al, byte [ecx + ebp]
xor byte [ebx + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x618800
mov dword [ebx + 0x16c], edi
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret
Function at 0x619950
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00482d80
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x6199bc
mov eax, dword [esp + 0x20]
mov ebx, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x619b15
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], ebx
mov dword [esi + 0x4c], 0
push ebp
mov ebp, dword [esp + 0x24]
push edi
lea edi, [esi + 0x40]
cmp ebx, 0x10
jb 0x619a5c
lea eax, [esi + 0x60]
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x41]
mov eax, ebx
mov dword [esp + 0x18], ecx
shr eax, 4
mov esi, edi
mov dword [esp + 0x2c], eax
mov eax, ecx
lea edx, [ebp + 1]
mov edi, 4
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub edi, 1
jne 0x619a10
push dword [esp + 0x14]
push esi
call fcn.00619de0
mov ecx, dword [esp + 0x20]
add esp, 8
add ebp, 0x10
sub ebx, 0x10
sub dword [esp + 0x2c], 1
jne 0x619a03
mov esi, dword [esp + 0x24]
lea edi, [esi + 0x40]
test ebx, ebx
je 0x619a7e
xor ecx, ecx
test ebx, ebx
je 0x619a71
mov al, byte [ecx + ebp]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x619a66
lea eax, [esi + 0x60]
push eax
push edi
call fcn.00619de0
add esp, 8
mov ebx, dword [esp + 0x1c]
xor edx, edx
shld edx, ebx, 3
xor byte [esi + 0x4b], dl
mov eax, edx
shr eax, 0x18
xor byte [esi + 0x48], al
mov eax, edx
shr eax, 0x10
xor byte [esi + 0x49], al
mov eax, edx
shr eax, 8
xor byte [esi + 0x4a], al
mov eax, edx
shl ebx, 3
xor byte [esi + 0x4f], bl
mov ecx, ebx
shrd ecx, eax, 0x18
xor byte [esi + 0x4c], cl
mov ecx, ebx
shr eax, 0x18
mov eax, edx
shrd ecx, eax, 0x10
xor byte [esi + 0x4d], cl
shr eax, 0x10
mov eax, ebx
shrd eax, edx, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
shr edx, 8
push edi
call fcn.00619de0
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop edi
mov dword [esi + 0xc], eax
pop ebp
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebx
add esp, 0x10
ret