joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d15eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00722ce0
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x800
lea eax, [ebp - 0x1004]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5d167f
push esi
lea edx, [ebp - 0x1004]
lea ecx, [ebp - 0x2004]
call fcn.005cc069
lea ecx, [ebp - 0x2004]
call fcn.005cc871
push esi
mov edx, str.Crypt32.dll
call fcn.005cc097
pop ecx
pop ecx
lea eax, [ebp - 0x1004]
mov edx, 0x7ff
lea esi, [ebp - 0x2004]
mov ecx, eax
sub esi, ecx
movzx ecx, word [esi + eax]
test cx, cx
je 0x5d166d
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x5d1659
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006f3e28
leave
ret

Function at 0x5d168c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5d16ef
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret
Function at 0x5d28b1
Capabilities:
Delete file

Disassembly:
cmp dword [ecx + 4], 0xffffffff
mov dword [ecx], 0xeac2d8
je 0x5d28d2
cmp byte [ecx + 0x10], 0
jne 0x5d28d2
cmp byte [ecx + 0x12], 0
jne fcn.005d2c4c
jmp fcn.005d2bd3
ret

Function at 0x5d2c4c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x5d2c6f
cmp dword [esi + 4], 0xffffffff
je 0x5d2c60
mov eax, dword [esi]
call dword [eax + 8]
cmp byte [esi + 0x13], 0
je 0x5d2c6f
lea ecx, [esi + 0x1e]
pop esi
jmp fcn.005d371e
xor al, al
pop esi
ret

Function at 0x5d2c73
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x5d2c8a
mov al, 1
jmp 0x5d2d31
cmp dword [esi + 0xc], 1
lea edi, [esi + 4]
jne 0x5d2c9d
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi], eax
and dword [ebp - 8], 0
xor bl, bl
cmp dword [esi + 0xc], 0
je 0x5d2cf2
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [ebp + 0xc], edx
jbe 0x5d2d13
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0
push eax
sub ecx, edx
mov eax, 0x4000
cmp ecx, eax
cmovb eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, edx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x5d2d0f
mov edx, dword [ebp - 4]
add edx, 0x4000
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 0xc]
jb 0x5d2cb3
jmp 0x5d2d0f
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x5d2d2b
cmp byte [esi + 0x14], 0
je 0x5d2d2b
cmp dword [esi + 0xc], 0
jne 0x5d2d2b
push 5
mov ecx, 0xef8e90
call fcn.005d102d
mov byte [esi + 8], 1
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5d2dfc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 1
jne 0x5d2e16
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d2e87
mov ecx, esi
call fcn.005d30d5
test al, al
je 0x5d2e51
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x5d2e51
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.005d2dfc
jmp 0x5d2e8a
cmp dword [esi + 0xc], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x5d2e68
call edi
cmp eax, 0x6d
jne 0x5d2e68
xor eax, eax
jmp 0x5d2e8a
cmp dword [esi + 0xc], 0
jne 0x5d2e82
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x5d2e82
call edi
cmp eax, 0x21
jne 0x5d2e82
push ebx
jmp 0x5d2e45
or eax, 0xffffffff
jmp 0x5d2e8a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5d3155
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1268
call fcn.00722ce0
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x125c]
push edi
mov edi, edx
mov dword [ebp - 0x1260], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x1264], ebx
cmp ebx, 0xffffffff
jne 0x5d31ec
push ecx
lea edx, [ebp - 0x100c]
mov ecx, edi
call fcn.005ccd22
pop ecx
test al, al
je 0x5d31c6
lea eax, [ebp - 0x125c]
push eax
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1264], eax
cmp eax, ebx
jne 0x5d31ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5d31df
cmp eax, 3
je 0x5d31df
cmp eax, 0x12
je 0x5d31df
mov al, 1
jmp 0x5d31e1
xor al, al
mov byte [esi + 0x1044], al
jmp 0x5d32dc
push 0x800
mov edx, edi
mov ecx, esi
call fcn.005cc069
lea edx, [ebp - 0x1230]
mov ecx, esi
call fcn.005cc7bc
mov edi, dword [ebp - 0x1254]
xor eax, eax
add eax, dword [ebp - 0x123c]
mov ebx, dword [ebp - 0x1258]
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x125c]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x1250]
pop ecx
mov ecx, dword [ebp - 0x1240]
adc ecx, 0
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x124c]
mov dword [esi + 0x1004], ecx
mov ecx, dword [ebp - 0x1260]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x1244]
push 0x64
mov dword [ecx + 0x103c], eax
mov dword [esi + 0x102c], edi
mov dword [esi + 0x1028], ebx
mov esi, dword [ebp - 0x1248]
mov dword [ecx + 0x1038], esi
pop ecx
mul ecx
push 0x64
mov ecx, eax
mov eax, esi
mov esi, dword [ebp - 0x1260]
pop edx
mul edx
push 0x64
mov dword [esi + 0x1010], eax
add ecx, edx
mov eax, edi
mov dword [esi + 0x1014], ecx
pop edi
mul edi
mov ecx, eax
mov eax, ebx
mul edi
mov dword [esi + 0x1018], eax
add ecx, edx
mov eax, dword [ebp - 0x124c]
mul edi
mov dword [esi + 0x101c], ecx
mov ecx, eax
mov eax, dword [ebp - 0x1250]
mul edi
add ecx, edx
mov dword [esi + 0x1020], eax
mov dword [esi + 0x1024], ecx
and dword [esi + 0x1040], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1264]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006f3e28
leave
ret
Function at 0x5d32f8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00722ce0
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, dl
mov esi, ecx
call fcn.005cc61e
movzx eax, word [eax]
cmp eax, 0x2e
je 0x5d3334
cmp eax, 0x20
je 0x5d3334
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5d3366
mov ecx, esi
call fcn.005d3655
cmp eax, 0xffffffff
jne 0x5d3378
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.005ccd22
pop ecx
test al, al
je 0x5d3378
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x5d3378
test bl, bl
je 0x5d3374
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.005d36b0
xor eax, eax
jmp 0x5d3390
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x5d3390
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret

Function at 0x5d3655
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00722ce0
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d36a0
push ecx
lea edx, [ebp - 0x1004]
mov ecx, ebx
call fcn.005ccd22
pop ecx
test al, al
je 0x5d36a0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret

Function at 0x5d36b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00722ce0
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov eax, ecx
push esi
push eax
mov dword [ebp - 0x1008], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x5d370e
push ecx
mov ecx, dword [ebp - 0x1008]
lea edx, [ebp - 0x1004]
call fcn.005ccd22
pop ecx
test al, al
je 0x5d370e
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret
Function at 0x5dcdb2
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x502c
call fcn.00722ce0
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x800
lea eax, [ebp - 0x3004]
push ebx
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x5dcf7b
cmp eax, ebx
jae 0x5dcf7b
push ebx
lea eax, [ebp - 0x4004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x5dcf7b
cmp eax, ebx
jae 0x5dcf7b
lea ecx, [ebp - 0x3004]
call fcn.005cc5cd
lea ecx, [ebp - 0x4004]
mov dword [ebp - 0x502c], eax
call fcn.005cc5cd
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x5dcf7b
mov ecx, dword [ebp - 0x502c]
mov edx, edi
call fcn.005ca293
test eax, eax
je 0x5dcf7b
mov ecx, esi
call fcn.005cc5cd
mov edx, edi
mov ecx, eax
call fcn.005ca293
test eax, eax
jne 0x5dcf7b
mov word [ebp - 0x1004], ax
mov edi, ebx
test ax, ax
jne 0x5dcedd
push 0x800
mov edx, esi
lea ecx, [ebp - 0x1004]
call fcn.005cc069
pop ecx
push edi
push 0xeac59c
push 0x800
lea ecx, [ebp - 0x1004]
call fcn.005cc5cd
push eax
call fcn.005cc0c7
add esp, 0x10
lea ecx, [ebp - 0x1004]
call fcn.005d3655
cmp eax, 0xffffffff
je 0x5dcec2
xor eax, eax
mov word [ebp - 0x1004], ax
jmp 0x5dcec9
mov ax, word [ebp - 0x1004]
add edi, 0x7b
cmp edi, 0x2710
jl 0x5dce70
test ax, ax
je 0x5dcf7b
push 0x800
mov edx, esi
lea ecx, [ebp - 0x2004]
call fcn.005cc069
mov edx, dword [ebp - 0x502c]
lea ecx, [ebp - 0x2004]
call fcn.005cc7bc
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1004]
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
call edi
test eax, eax
je 0x5dcf7b
lea ecx, [ebp - 0x5028]
call fcn.005d285a
mov ecx, esi
call fcn.005d3655
cmp eax, 0xffffffff
jne 0x5dcf42
push 0x12
push esi
lea ecx, [ebp - 0x5028]
call fcn.005d2a7c
mov bl, al
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call edi
test bl, bl
je 0x5dcf6c
lea ecx, [ebp - 0x5028]
call fcn.005d2bd3
lea ecx, [ebp - 0x5028]
call fcn.005d2c4c
lea ecx, [ebp - 0x5028]
call fcn.005d28b1
mov al, 1
jmp 0x5dcf7d
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret

Function at 0x5dd163
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x5dd1d9
push edi
lea edi, [esi + 4]
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x5dd1dd
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5dd1b6
push str.CreateThread_failed
push 0xef8e90
call fcn.005d0f6a
pop ecx
pop ecx
push 2
mov ecx, 0xef8e90
call fcn.005d102d
mov eax, dword [ebp - 4]
mov dword [edi], eax
inc dword [esi + 0x104]
mov eax, dword [0xefcc14]
test eax, eax
je 0x5dd1d0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x5dd176
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5dd30b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [ebx + 4], esi
jne 0x5dd34d
push edi
push 8
mov edi, esi
pop ebx
mov edx, edi
mov ecx, edi
shr edx, 1
mov eax, edx
mov edi, edx
xor eax, 0xedb88320
test cl, 1
cmovne edi, eax
sub ebx, 1
jne 0x5dd323
mov ebx, dword [ebp - 4]
mov dword [ebx + esi*4], edi
inc esi
cmp esi, 0x100
jb 0x5dd31e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5dd351
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], edx
test esi, esi
je 0x5dd383
test dl, 7
je 0x5dd380
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0xf08d28]
inc edx
sub esi, 1
jne 0x5dd363
mov dword [ebp - 4], edx
cmp esi, 8
jb 0x5dd413
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0xf09128]
xor ecx, dword [eax*4 + 0xf09528]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0xf0a128]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0xf0a528]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0xf08d28]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0xf09d28]
movzx eax, dl
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0xf09928]
movzx eax, bl
xor ecx, dword [eax*4 + 0xf0a928]
mov ebx, ecx
sub edi, 1
jne 0x5dd392
pop edi
test esi, esi
je 0x5dd42f
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0xf08d28]
inc edx
sub esi, 1
jne 0x5dd417
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x5dd435
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ecx + 0x10b5], ax
mov byte [ecx + 0x10b4], al
mov bl, byte [esi]
test bl, bl
je 0x5dd477
mov dh, al
mov dl, al
add dl, bl
add al, bl
xor dh, bl
rol dl, 1
inc esi
mov byte [ecx + 0x10b4], al
mov byte [ecx + 0x10b5], dh
mov byte [ecx + 0x10b6], dl
mov bl, byte [esi]
test bl, bl
jne 0x5dd456
pop esi
pop ebx
pop ebp
ret 4
Function at 0x5dd47d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xba4]
call fcn.005dd30b
mov edi, dword [ebp + 8]
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x5dd497
sub edx, ecx
or ecx, 0xffffffff
push edx
mov edx, edi
call fcn.005dd351
mov word [esi + 0x10b8], ax
shr eax, 0x10
mov word [esi + 0x10ba], ax
xor eax, eax
mov dword [esi + 0x10bc], eax
mov al, byte [edi]
pop ecx
test al, al
je 0x5dd513
push ebx
xor ebx, ebx
mov dword [ebp + 8], ebx
movzx ecx, al
movzx eax, al
mov dx, word [esi + ecx*4 + 0xba4]
xor dx, ax
xor dx, bx
mov word [esi + 0x10bc], dx
mov cx, word [esi + ecx*4 + 0xba6]
add cx, ax
movzx ebx, dx
add cx, word [ebp + 8]
inc edi
mov word [esi + 0x10be], cx
movzx ecx, cx
mov dword [ebp + 8], ecx
mov al, byte [edi]
test al, al
jne 0x5dd4d1
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x5dd519
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test eax, eax
je 0x5dd5c0
push esi
push edi
dec eax
mov ecx, 0x1234
add cx, word [ebx + 0x10b8]
mov dword [ebp + 0xc], eax
movzx eax, cx
mov word [ebx + 0x10b8], ax
movzx edi, cx
mov eax, edi
shr eax, 1
movzx ecx, al
mov ax, word [ebx + ecx*4 + 0xba4]
xor word [ebx + 0x10ba], ax
mov ax, word [ebx + ecx*4 + 0xba6]
xor ecx, ecx
sub word [ebx + 0x10bc], ax
inc ecx
mov ax, word [ebx + 0x10be]
movzx edx, word [ebx + 0x10ba]
movzx esi, word [ebx + 0x10bc]
ror ax, cl
xor ax, dx
ror ax, cl
mov ecx, dword [ebp + 8]
movzx eax, ax
mov word [ebx + 0x10be], ax
xor eax, esi
xor eax, edi
movzx eax, ax
mov word [ebx + 0x10b8], ax
shr eax, 8
xor byte [ecx], al
inc ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
test eax, eax
jne 0x5dd52c
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5dd910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax]
lea edi, [ebp - 0x14]
mov ebx, ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [eax + 4]
mov esi, eax
push 0x1f
xor ecx, dword [ebx + 0x10a8]
xor edx, dword [ebx + 0x10a4]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [ebx + 0x10ac]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0xc]
xor ecx, dword [ebx + 0x10b0]
movsd dword es:[edi], dword [esi]
pop eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
movsd dword es:[edi], dword [esi]
mov edi, edx
and eax, 3
rol ecx, 0xb
add ecx, dword [ebp - 0x18]
mov edx, dword [ebx + eax*4 + 0x10a4]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + ebx + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0xfa4]
shl eax, 8
or esi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + ebx + 0xfa4]
or esi, eax
movzx eax, cl
shl esi, 8
movzx eax, byte [eax + ebx + 0xfa4]
or esi, eax
xor esi, edi
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x18], esi
ror ecx, 0xf
xor ecx, dword [ebp - 0x1c]
add ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + ebx + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0xfa4]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + ebx + 0xfa4]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + ebx + 0xfa4]
or edx, eax
mov eax, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov ecx, edx
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
jns 0x5dd968
mov eax, dword [ebx + 0x10a4]
mov ecx, dword [ebp - 0x30]
xor eax, esi
mov dword [ecx], eax
mov eax, dword [ebx + 0x10a8]
xor eax, edx
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x10ac]
xor eax, edi
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x10b0]
xor eax, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.005dda82
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret 4
Function at 0x5dda82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x10b0]
add edx, 2
push ebx
mov ebx, dword [ecx + 0x10ac]
push esi
mov esi, dword [ecx + 0x10a4]
push edi
mov edi, dword [ecx + 0x10a8]
mov dword [ebp - 4], eax
mov dword [ebp + 8], 4
movzx eax, byte [edx - 2]
xor esi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a4], esi
movzx eax, byte [edx - 1]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
xor edi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a8], edi
movzx eax, byte [edx]
lea edx, [edx + 4]
xor ebx, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10ac], ebx
movzx eax, byte [edx - 3]
xor esi, dword [ecx + eax*4 + 0xba4]
sub dword [ebp + 8], 1
mov eax, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov dword [ecx + 0x10b0], eax
jne 0x5ddab2
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5dde3d
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x110], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xfc], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0x104], ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x108], edi
cmp ebx, 0x40
jbe 0x5ddecc
lea ecx, [ebp - 0xf4]
call fcn.005deeeb
push ebx
mov edx, eax
call fcn.005df16c
pop ecx
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0xf4]
call fcn.005df1d4
mov edx, dword [ebp - 0xf8]
lea eax, [ebp - 0x6c]
push 0x20
mov dword [ebp - 0x100], eax
pop ebx
test edi, edi
je 0x5ddeea
cmp byte [edx], 0
je 0x5ddeea
mov esi, edi
lea edi, [ebp - 0xf4]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x108]
jmp 0x5ddf43
xor edx, edx
test ebx, ebx
je 0x5ddf08
mov esi, eax
lea eax, [ebp - 0x4c]
sub esi, eax
lea ecx, [ebp - 0x4c]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x5ddef7
cmp ebx, 0x40
jae 0x5ddf23
push 0x40
pop eax
sub eax, ebx
push eax
lea eax, [ebp - 0x4c]
add eax, ebx
push 0x36
push eax
call fcn.006f59b0
add esp, 0xc
lea ecx, [ebp - 0xf4]
call fcn.005deeeb
push 0x40
lea edx, [ebp - 0x4c]
call fcn.005df16c
pop ecx
test edi, edi
je 0x5ddf56
mov edx, dword [ebp - 0xf8]
cmp byte [edx], 0
jne 0x5ddf56
push 0x1a
pop ecx
lea esi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x10c]
lea ecx, [ebp - 0xf4]
call fcn.005df16c
pop ecx
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xf4]
call fcn.005df1d4
mov edi, dword [ebp - 0xfc]
test edi, edi
je 0x5ddfa6
mov eax, dword [ebp - 0x104]
cmp byte [eax], 0
je 0x5ddfa6
mov esi, edi
lea edi, [ebp - 0xf4]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xfc]
jmp 0x5de003
test ebx, ebx
je 0x5ddfc8
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0x4c]
sub esi, eax
xor edx, edx
lea ecx, [ebp - 0x4c]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x5ddfb7
cmp ebx, 0x40
jae 0x5ddfe3
push 0x40
pop eax
sub eax, ebx
push eax
lea eax, [ebp - 0x4c]
add eax, ebx
push 0x5c
push eax
call fcn.006f59b0
add esp, 0xc
lea ecx, [ebp - 0xf4]
call fcn.005deeeb
push 0x40
lea edx, [ebp - 0x4c]
call fcn.005df16c
pop ecx
test edi, edi
je 0x5de016
mov eax, dword [ebp - 0x104]
cmp byte [eax], 0
jne 0x5de016
push 0x1a
pop ecx
lea esi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xf4]
call fcn.005df16c
mov edx, dword [ebp - 0x110]
pop ecx
lea ecx, [ebp - 0xf4]
call fcn.005df1d4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret