joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c17
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x413664]
mov eax, dword [0x410eec]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x408ddd
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x413680]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x408ddd
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x408c81
xor eax, eax
jmp 0x408df1
test al, 0x20
je 0x408c92
push 2
push edi
push edi
push ecx
call fcn.004094f8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x408d67
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x408dae
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x408cf4
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x408ce5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x408cc7
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408d34
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x408d40
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x408cbb
jmp 0x408d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x408dd8
cmp dword [ebp + 0x3a4], edi
je 0x408dae
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x408da0
mov dword [0x412108], eax
jmp 0x408de4
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408d92
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x408d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x408d42
push dword [ebp + 0x3a4]
call fcn.004093e3
pop ecx
jmp 0x408dee
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x408dc6
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x408c7a
mov dword [0x412104], 0x1c
mov dword [0x412108], edi
jmp 0x408dee
sub eax, dword [ebp - 0x7c]
jmp 0x408df1
and dword [0x412108], 0
mov dword [0x412104], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403dff
add ebp, 0x39c
leave
ret
Function at 0x100075c0
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x100ccf64], 0
jne 0x1000760b
push str.OPENSSL_ia32cap
mov dword [0x100ccf64], 1
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_geten
add esp, 4
test eax, eax
je 0x100075fc
push 0
push 0
push eax
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_strto
add esp, 0xc
or eax, 0x400
mov dword [0x100ccf60], eax
ret
call fcn.10018b10
or eax, 0x400
mov dword [0x100ccf60], eax
ret

Function at 0x100076f0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.1008ca50
mov eax, dword [0x100c94f0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp._CKERNEL.DLL_GetStdHandle]
test eax, eax
je 0x10007755
push eax
call dword [sym.imp._CKERNEL.DLL_GetFileType]
test eax, eax
je 0x10007755
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll___iob
add eax, 0x40
push eax
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_vfpri
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1008c6e8
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll__vsnp
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp._CKERNEL.DLL_GetVersion]
cmp eax, 0x80000000
jae 0x100077e4
call fcn.10007610
test eax, eax
je 0x100077e4
push esi
push str.OPENSSL
push 0
call dword [sym.imp._CADVAPI.DLL_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp._CADVAPI.DLL_ReportEventA]
push esi
call dword [sym.imp._CADVAPI.DLL_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1008c6e8
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp._CUSER.DLL_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1008c6e8
add esp, 0x108
ret
Function at 0x1000d700
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000d796
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp._CKERNEL.DLL_GetLastError]
push eax
push 1
push 2
call fcn.10005760
push 0x1009bf30
push esi
push 0x1009bf2c
push ebx
push str.fopen_
push 5
call fcn.10005ac0
add esp, 0x2c
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll__errn
cmp dword [eax], 2
jne 0x1000d778
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10005760
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10005760
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x100c5fec
call fcn.10007290
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000d7b8
push edi
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_fclos
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.10006b80
push edi
push 1
push 0x6a
push esi
call fcn.10006f40
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x100120f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x10012139
mov al, byte [edx]
test al, al
je 0x10012139
push edi
mov edi, pe_nt_image_headers32
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
add edx, 1
xor esi, ecx
test al, al
jne 0x10012107
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1004c3c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.1008ca50
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x1004c3da
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x1004c45c
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1004c428
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
call fcn.10012320
add esp, 8
test eax, eax
jne 0x1004c449
push edi
mov edi, 0x100a9598
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
jne 0x1004c428
push ebx
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_geten
add esp, 4
test eax, eax
jne 0x1004c44c
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], ebx
call fcn.10012320
add esp, 8
test eax, eax
je 0x1004c453
mov eax, dword [eax + 8]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_geten
add esp, 4
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10054430
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.1008ca50
push ebx
push ebp
push esi
lea eax, [ecx + 0x54]
lea esi, [ecx + 0x14]
mov ecx, dword [esi + 0x3c]
push edi
lea ebp, [esp + 0x58]
lea edi, [esp + 0x98]
xor ebx, ebx
sub ebp, eax
sub edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
sub esi, eax
mov edx, dword [eax]
mov ecx, dword [esp + 0xdc]
movzx ecx, byte [ebx + ecx]
mov dword [eax + ebp - 0x40], edx
xor edx, ecx
mov dword [eax + ebp], ecx
xor ecx, dword [esp + 0x10]
mov dword [edi + eax], edx
mov edx, dword [ecx*4 + str._.C]
xor dword [esi + eax], edx
mov ecx, dword [esi + eax]
add ebx, 1
add eax, 4
cmp ebx, 0x10
mov dword [esp + 0x10], ecx
jl 0x10054462
xor ecx, ecx
xor edx, edx
nop
xor eax, eax
jmp 0x100544b0
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + eax*4 + 0x18]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x1c], ecx
mov ecx, dword [esp + eax*4 + 0x1c]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x20], ecx
mov ecx, dword [esp + eax*4 + 0x20]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x24], ecx
mov ecx, dword [esp + eax*4 + 0x24]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x28], ecx
mov ecx, dword [esp + eax*4 + 0x28]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x2c], ecx
mov ecx, dword [esp + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x30], ecx
mov ecx, dword [esp + eax*4 + 0x30]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x34], ecx
mov ecx, dword [esp + eax*4 + 0x34]
add eax, 8
cmp eax, 0x30
jl 0x100544b0
add ecx, edx
add edx, 1
and ecx, 0xff
cmp edx, 0x12
jl 0x100544a0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x1c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.10025130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
Function at 0x100548a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xe4
call fcn.1008ca50
mov eax, dword [0x100c94f0]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf0]
push ebx
push ebp
mov ebp, dword [esp + 0x108]
push esi
push edi
mov edi, dword [esp + 0xf8]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, 1
call fcn.100689b0
mov esi, dword [esp + 0x110]
add esp, 4
test edi, edi
mov dword [esp + 0x18], esi
jne 0x10054903
mov dword [esp + 0xfc], edi
jmp 0x10054924
cmp dword [esp + 0xfc], 0xffffffff
jne 0x10054924
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10054912
sub eax, edx
mov dword [esp + 0xfc], eax
test esi, esi
je 0x10054a46
jmp 0x10054934
mov esi, dword [esp + 0x18]
cmp esi, 0x14
jle 0x1005493e
mov esi, 0x14
mov eax, ebx
mov ecx, ebx
mov edx, ebx
shr eax, 0x18
shr ecx, 0x10
shr edx, 8
push 0
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], bl
call fcn.100251d0
push eax
mov eax, dword [esp + 0x104]
push eax
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.10068760
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10068920
push 4
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.10068920
push 0
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.10068930
push esi
lea eax, [esp + 0x118]
push eax
push ebp
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_memcp
mov eax, dword [esp + 0x14c]
add esp, 0x44
cmp eax, 1
jle 0x10054a2f
add eax, 0xffffffff
mov dword [esp + 0x10], eax
lea esp, [esp]
mov eax, dword [esp + 0xfc]
push 0
lea ecx, [esp + 0xe0]
push ecx
push 0x14
mov edx, ecx
push edx
push eax
push edi
call fcn.100251d0
push eax
call fcn.10068aa0
add esp, 0x1c
test esi, esi
jle 0x10054a28
lea ecx, [esp + 0xdc]
mov eax, ebp
sub ecx, ebp
mov edi, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub edi, 1
jne 0x10054a17
mov edi, dword [esp + 0x20]
sub dword [esp + 0x10], 1
jne 0x100549e0
mov eax, dword [esp + 0x18]
sub eax, esi
add ebx, 1
add ebp, esi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10054930
lea eax, [esp + 0x24]
push eax
call fcn.100689e0
mov ecx, dword [esp + 0xf4]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1008c6e8
add esp, 0xe4
ret
Function at 0x100551d0
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x100551f0
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x10055ce8
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ebx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, ah
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ecx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8]
movzx ecx, ch
xor edx, dword [ebp + ecx*8 + 3]
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
shr eax, 0x18
xor edx, dword [ebp + eax*8 + 1]
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x10055d08
mov esi, eax
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, dh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ebx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, ah
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ecx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, bh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, eax
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
movzx edx, byte [ebp + edx + 0x800]
movzx ecx, ch
movzx ecx, byte [ebp + ecx + 0x800]
shl ecx, 8
xor edx, ecx
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
movzx ebx, byte [ebp + ebx + 0x800]
shl ebx, 0x10
xor edx, ebx
mov ebx, dword [esp + 8]
shr eax, 0x18
movzx eax, byte [ebp + eax + 0x800]
shl eax, 0x18
xor edx, eax
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x10057039
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.10056d5a
add esp, 0xc
cmp eax, 0
je 0x1005706d
ret
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xf0]
lea ecx, [ecx*4]
lea edi, [esi + ecx*4]
nop
nop
nop
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
add esi, 0x10
sub edi, 0x10
cmp esi, edi
jne 0x10057088
call 0x100570cd
pop ebp
lea edi, [ebp - 0x117d]
lea ebp, [ebp - 0x1c7d]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xf0]
dec ecx
nop
nop
nop
add esi, 0x10
mov eax, dword [esi]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi + 0xc], eax
dec ecx
jne 0x100570e8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret