joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10151775
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.101516f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101518e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101518e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10151899
jg 0x101517d1
test eax, eax
je 0x1015188f
push 1
push 0x1000
call fcn.10143f93
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101517f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10151886
push 0x8000
push ebx
call fcn.10151622
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1015181d
jg 0x10151818
cmp ecx, 0x1000
jb 0x1015181d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101449f9
add esp, 0x10
cmp eax, 0xffffffff
je 0x10151862
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 0x10151818
jl 0x10151849
test ecx, ecx
jne 0x1015180a
push dword [ebp - 0xc]
push ebx
call fcn.10151622
push esi
call fcn.10140a5b
add esp, 0xc
xor ebx, ebx
jmp 0x101518f2
cmp byte [edi + 0x24], 0
je 0x10151879
cmp dword [edi + 0x20], 5
jne 0x10151879
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10151884
mov ebx, dword [edi + 0x18]
jmp 0x10151886
xor ebx, ebx
push esi
call fcn.10140a5b
pop ecx
jmp 0x101518f2
test ecx, ecx
jg 0x1015185b
jl 0x10151899
test eax, eax
jae 0x1015185b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10148bd8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101518b9
cmp byte [edi + 0x1c], 0
je 0x1015185b
jmp 0x101518ea
push ebx
call fcn.1014f3a0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1015185b
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 0x101518f2
cmp byte [edi + 0x1c], 0
je 0x101518ef
mov ebx, dword [edi + 0x18]
jmp 0x101518f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10148bd8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1017b3f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
not eax
push esi
mov esi, dword [esp + 0x10]
push edi
cmp esi, 8
jbe 0x1017b4c6
test bl, 7
je 0x1017b429
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1049cba8]
test bl, 7
jne 0x1017b410
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x1017b4c6
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [esp + 0x18], ebx
add dword [esp + 0x18], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x1049cfa8]
xor edx, dword [ecx*4 + 0x1049d3a8]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1049dfa8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1049e3a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1049cba8]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x1049dba8]
movzx ecx, bl
mov ebx, dword [esp + 0x18]
xor edx, dword [ecx*4 + 0x1049d7a8]
xor edx, dword [eax*4 + 0x1049e7a8]
mov eax, edx
cmp ebx, edi
jb 0x1017b440
test esi, esi
je 0x1017b4ea
nop word [eax + eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1049cba8]
sub esi, 1
jne 0x1017b4d0
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x10182a50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x1e4]
mov edx, dword [esi + 0xa94]
add eax, 0x355
and edx, dword [esp + 0x20]
shl eax, 4
add eax, edx
lea ecx, [esi + eax*2]
mov eax, dword [esi + 0x20]
cmp ebx, 0xffffffff
jne 0x10182bbb
mov ebx, dword [esp + 0x14]
mov dword [esi + eax*4 + 0x28], 0
mov eax, dword [esi + 0x20]
push ebp
mov dword [esi + eax*4 + 0xfc], ecx
mov ebp, dword [esi + 0x20]
inc ebp
mov dword [esi + 0x20], ebp
mov edi, dword [ebx]
mov eax, edi
mov edx, dword [ebx + 0x18]
sub eax, edx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + ecx - 1]
mov ecx, 8
sub cl, byte [esi + 0xa98]
mov eax, dword [esi + 0xa9c]
and eax, dword [esp + 0x24]
shr edx, cl
mov ecx, dword [esi + 0xa98]
shl eax, cl
add edx, eax
mov eax, edi
sub eax, dword [ebx + 0x18]
imul ecx, edx, 0x600
mov edx, dword [ebx + 0x14]
movzx edx, byte [eax + edx]
add ecx, 0xaa0
add ecx, esi
cmp dword [esi + 0x1e4], 7
mov dword [esp + 0x24], ecx
jge 0x10182b0e
push edx
push 8
push ecx
push esi
call fcn.10183cf0
add esp, 0x10
jmp 0x10182b6f
sub edi, dword [esi + 0x1e8]
sub edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x14]
mov ebx, 0x100
add edx, ebx
movzx edi, byte [edi + eax - 1]
mov eax, edx
add edi, edi
shr eax, 7
mov ecx, ebx
and eax, 1
and ecx, edi
mov dword [esi + ebp*4 + 0x28], eax
add ecx, ebx
mov eax, edx
add edx, edx
shr eax, 8
add eax, ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x20]
mov dword [esi + eax*4 + 0xfc], ecx
mov eax, edi
inc dword [esi + 0x20]
xor eax, edx
mov ebp, dword [esi + 0x20]
not eax
and ebx, eax
cmp edx, 0x10000
jb 0x10182b27
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x1e4]
pop ebp
cmp eax, 3
jg 0x10182b8e
xor eax, eax
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
cmp eax, 9
jg 0x10182ba7
add eax, 0xfffffffd
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
add eax, 0xfffffffa
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
mov edi, dword [esp + 0x1c]
mov dword [esi + eax*4 + 0x28], 1
mov eax, dword [esi + 0x20]
push edi
mov dword [esi + eax*4 + 0xfc], ecx
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x1e4]
add ecx, 0x3610
lea eax, [esi + eax*4]
lea ecx, [esi + ecx*2]
cmp ebx, 4
jae 0x10182c1a
mov dword [eax + 0x28], 1
mov eax, dword [esi + 0x20]
push ebx
push edx
push esi
mov dword [esi + eax*4 + 0xfc], ecx
inc dword [esi + 0x20]
call fcn.10184010
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret
mov dword [eax + 0x28], 0
mov eax, dword [esi + 0x20]
mov dword [esi + eax*4 + 0xfc], ecx
lea eax, [ebx - 4]
inc dword [esi + 0x20]
push eax
push edx
push esi
call fcn.10183ba0
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret
Function at 0x10182d30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push edi
mov dword [ebx], 0x4000400
test edx, edx
je 0x10182d71
lea eax, [ebx + 0x104]
mov ecx, edx
nop
movaps xmm0, xmmword [0x1049caf0]
lea eax, [eax + 0x10]
movups xmmword [eax - 0x110], xmm0
movaps xmm0, xmmword [0x1049caf0]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x10182d50
cmp byte [esp + 0x28], 0
lea edi, [ebx + 0x204]
mov ecx, 0x80
mov eax, 0x4000400
rep stosd dword es:[edi], eax
jne 0x10182f53
mov dword [esp + 0x28], 0
test edx, edx
je 0x10182f53
lea eax, [ebx + 0x404]
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x4808]
push ebp
mov dword [esp + 0x10], eax
push esi
mov edi, dword [ebx + 0x4804]
xor esi, esi
mov dword [eax], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [esp + 0x10], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x104a0ba8]
movzx edx, byte [ecx + 0x104a0ba8]
movzx ecx, word [ebx + 2]
mov dword [esp + 0x18], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x104a0ba8]
add eax, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx + 0x104a0ba8]
mov ecx, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x20], eax
test edi, edi
je 0x10182f2f
lea ebp, [ecx*8]
cmp esi, 8
jae 0x10182e7e
xor edi, edi
lea edx, [esi + 8]
lea ebp, [ecx*8]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + ebp]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x104a0ba8]
add edi, eax
cmp edx, 1
jne 0x10182e35
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add eax, edi
mov edi, dword [esp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [esp + 0x30]
cmp esi, edi
jb 0x10182e24
jmp 0x10182f2b
cmp esi, edi
jae 0x10182f2f
cmp esi, 0x10
jae 0x10182ede
xor edi, edi
mov edx, esi
nop
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + ebp]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x104a0ba8]
add edi, eax
cmp edx, 1
jne 0x10182e90
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [esp + 0x30]
lea ebp, [ecx*8]
cmp esi, dword [esp + 0x10]
jb 0x10182e86
jmp 0x10182f2f
mov ebp, dword [esp + 0x28]
xor edi, edi
lea eax, [esi + 0xf0]
nop word [eax + eax]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x104a0ba8]
add edi, ecx
cmp eax, 1
jne 0x10182ef0
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [ebp + esi*4], eax
inc esi
cmp esi, dword [esp + 0x10]
jb 0x10182ee2
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
inc ecx
add dword [esp + 0x28], 0x440
add eax, 4
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x2c]
jb 0x10182db4
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x10182f60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edi
xor esi, esi
mov edi, dword [ebx + 0x4804]
mov dword [ebx + eax*4 + 0x4808], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [esp + 0xc], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x104a0ba8]
movzx edx, byte [ecx + 0x104a0ba8]
movzx ecx, word [ebx + 2]
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x104a0ba8]
add eax, edx
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + 0x104a0ba8]
mov ecx, dword [esp + 0x28]
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, ecx, 0x440
add eax, 0x404
add eax, ebx
mov dword [esp + 0x24], eax
test edi, edi
je 0x1018310c
lea eax, [ecx*8]
push ebp
mov dword [esp + 0x1c], eax
mov ebp, eax
nop dword [eax + eax]
cmp esi, 8
jae 0x1018305d
xor edi, edi
lea edx, [esi + 8]
lea ebp, [ecx*8]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + ebp]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x104a0ba8]
add edi, eax
cmp edx, 1
jne 0x10183011
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add eax, edi
mov edi, dword [esp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [esp + 0x2c]
cmp esi, edi
jb 0x10183000
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
cmp esi, edi
jae 0x1018310b
cmp esi, 0x10
jae 0x101830bd
xor edi, edi
mov edx, esi
nop
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + ebp]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x104a0ba8]
add edi, eax
cmp edx, 1
jne 0x10183070
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [esp + 0x10]
jb 0x10183065
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov ebp, dword [esp + 0x28]
xor edi, edi
lea eax, [esi + 0xf0]
nop dword [eax]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x104a0ba8]
add edi, ecx
cmp eax, 1
jne 0x101830d0
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [ebp + esi*4], eax
inc esi
cmp esi, dword [esp + 0x10]
jb 0x101830c1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x10185e00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov edx, 0x3700
push edi
mov dword [esp + 0x24], edx
lea edi, [esi + 0x10598]
lea ebp, [esi + 0x10194]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
nop dword [eax + eax]
mov eax, dword [esi + 0x10d94]
xor ebx, ebx
test eax, eax
je 0x10185e94
nop dword [eax]
mov ebp, dword [esp + 0x24]
lea eax, [ebx + 0x40]
xor edi, edi
nop dword [eax]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
lea ecx, [eax + ebp]
and edx, 0x7f
movzx ecx, word [esi + ecx*2]
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x104a0ba8]
add edi, ecx
cmp eax, 1
jne 0x10185e50
mov ebp, dword [esp + 0x10]
mov dword [ebp + ebx*4], edi
inc ebx
mov eax, dword [esi + 0x10d94]
cmp ebx, eax
jb 0x10185e40
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ecx, 0xe
cmp eax, ecx
jbe 0x10185eb7
nop dword [eax]
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [ebp + ecx*4], eax
inc ecx
cmp ecx, dword [esi + 0x10d94]
jb 0x10185ea0
mov eax, dword [ebp]
add edx, 0x40
mov dword [edi - 4], eax
mov eax, dword [ebp + 4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
add ebp, 0x100
mov dword [edi + 8], eax
add edi, 0x200
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
cmp edx, 0x3800
jb 0x10185e30
mov edi, 4
lea ebp, [esi + 0x107a4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
nop dword [eax + eax]
movzx ebx, byte [edi + 0x104a0c28]
mov ebp, edi
mov eax, ebx
mov edx, ebx
shr eax, 1
and edx, 1
dec eax
or edx, 2
mov ecx, eax
mov dword [esp + 0x14], eax
shl edx, cl
mov eax, 1
sub ebp, edx
mov dword [esp + 0x1c], edx
xor edi, edi
mov dword [esp + 0x24], eax
nop
sub eax, ebx
mov edx, ebp
add eax, dword [esp + 0x1c]
and edx, 1
shr ebp, 1
movzx ecx, word [esi + eax*2 + 0x6ffe]
mov eax, edx
neg eax
shr ecx, 4
shr eax, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x104a0ba8]
add edi, eax
sub dword [esp + 0x14], 1
mov eax, dword [esp + 0x24]
lea eax, [edx + eax*2]
mov dword [esp + 0x24], eax
jne 0x10185f40
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebx*4 + 0x10194]
add eax, edi
mov dword [ebp - 0x200], eax
mov eax, dword [esi + ebx*4 + 0x10294]
add eax, edi
mov dword [ebp], eax
mov eax, dword [esi + ebx*4 + 0x10394]
add eax, edi
mov dword [ebp + 0x200], eax
mov eax, dword [esi + ebx*4 + 0x10494]
add eax, edi
mov edi, dword [esp + 0x10]
inc edi
mov dword [ebp + 0x400], eax
add ebp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
cmp edi, 0x80
jb 0x10185f10
pop edi
mov dword [esi + 0x10d98], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10185ff0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ecx, 8
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov edx, dword [edi + 0xa98]
lea ebp, [edi + 0xaa0]
mov eax, dword [edi + 0xa9c]
sub ecx, edx
and eax, dword [esp + 0x18]
shr esi, cl
mov ecx, edx
shl eax, cl
add esi, eax
imul eax, esi, 0x600
add ebp, eax
cmp byte [esp + 0x20], bl
jne 0x10186045
push dword [esp + 0x28]
push 8
push ebp
call fcn.101877b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x28]
mov esi, 0x100
mov edi, dword [esp + 0x24]
add edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
movzx ecx, word [ebp + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x104a0ba8]
mov ecx, edi
xor ecx, edx
add ebx, eax
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x10186054
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x101877b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0xc]
push edi
xor edi, edi
add ecx, eax
mov eax, dword [esp + 8]
push esi
nop dword [eax]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [eax + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
movzx edx, byte [edx + 0x104a0ba8]
add edi, edx
cmp ecx, 1
jne 0x101877d0
pop esi
mov eax, edi
pop edi
ret
Function at 0x1019ecc0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
test eax, eax
je 0x1019ece6
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.10131509
add esp, 0x10
mov ecx, eax
add dword [esi + 8], 2
jmp 0x1019ed0e
mov edi, dword [esi + 4]
test edi, edi
je 0x1019ed2f
push ebx
mov ebx, dword [esi + 0xc]
xor ecx, ecx
mov edx, dword [esi + 8]
cmp edx, ebx
ja 0x1019ed0d
mov al, byte [edi + edx]
mov byte [esp + ecx + 0x10], al
inc ecx
lea eax, [edx + 1]
mov dword [esi + 8], eax
cmp ecx, 2
jl 0x1019ecf3
pop ebx
test ecx, ecx
je 0x1019ed2f
movzx ecx, byte [esp + 0xd]
movzx eax, byte [esp + 0xc]
shl cx, 8
or cx, ax
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov word [eax], cx
xor eax, eax
ret
pop edi
mov eax, 6
pop esi
ret

Function at 0x1019ed40
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
push edi
test ebx, ebx
jle 0x1019edbe
mov eax, dword [esi]
test eax, eax
je 0x1019ed73
push eax
push 2
lea eax, [esp + 0x18]
push 1
push eax
call fcn.10131509
add esp, 0x10
mov edx, eax
add dword [esi + 8], 2
jmp 0x1019ed9c
mov edi, dword [esi + 4]
test edi, edi
je 0x1019edc6
mov ebx, dword [esi + 0xc]
xor edx, edx
nop
mov eax, dword [esi + 8]
cmp eax, ebx
ja 0x1019ed98
mov cl, byte [edi + eax]
inc eax
mov byte [esp + edx + 0x10], cl
inc edx
mov dword [esi + 8], eax
cmp edx, 2
jl 0x1019ed80
mov ebx, dword [esp + 0x20]
test edx, edx
je 0x1019edc6
movzx ecx, byte [esp + 0x11]
movzx eax, byte [esp + 0x10]
shl cx, 8
or cx, ax
mov eax, dword [esp + 0x1c]
mov word [eax + ebp*2], cx
inc ebp
cmp ebp, ebx
jl 0x1019ed53
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret

Function at 0x1019ee40
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
je 0x1019ee8e
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1019ee8e
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call fcn.101ad03e
push ebx
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.10131509
add esp, 0x14
cmp eax, esi
jae 0x1019ee8b
push ebx
call fcn.1013c355
add esp, 4
test eax, eax
je 0x1019ee8b
push str.Error_reading_from_file
call fcn.1018f380
add esp, 4
pop ebx
pop esi
ret
push 0x104a93c8
call fcn.1018fc70
add esp, 4
pop esi
ret
Function at 0x101aaef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101aaf1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101aaf1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x101ac4f4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x104fb780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x101ac537
call fcn.101321e1
mov dword [eax], 0xf
call fcn.101321f4
mov dword [eax], 0xd
call fcn.10131bc6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011f88a
leave
ret
test eax, eax
jne 0x101ac53e
inc eax
jmp 0x101ac52b
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 0x101ac529
xor eax, eax
cmp ecx, 1
setne al
jmp 0x101ac52b
Function at 0x101b46b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x101b46d5
push dword [edi + 0x74]
call eax
add esp, 4
push ebx
push esi
mov esi, dword [edi + 0x54]
test esi, esi
je 0x101b473b
nop
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x101b4734
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x101b4707
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x101b46f6
jmp 0x101b4734
test edx, edx
jne 0x101b4710
mov dword [ebx + 0x54], ecx
jmp 0x101b4713
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x101b4720
push esi
call eax
add esp, 4
push esi
call fcn.101b4bd0
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x101b46e0
lea eax, [edi + 0x6c]
test eax, eax
je 0x101b47be
test ebp, ebp
je 0x101b47be
mov ebx, dword [eax]
test ebx, ebx
je 0x101b47b1
nop dword [eax]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x101b4767
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x101b477b
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x101b478c
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
push esi
push ebp
call eax
mov eax, dword [ebp + 8]
push ebx
push ebp
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x101b4750
lea eax, [edi + 0x6c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x101b47d2
push edi
call eax
add esp, 4
push ebp
push edi
call fcn.101b4630
mov eax, dword [esp + 0x18]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x101b47ed
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x101b481f
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x101b480b
push esi
call eax
add esp, 4
test dword [esp + 0x20], 0x400
jne 0x101b481f
mov eax, dword [ebx + 8]
push esi
push ebx
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
pop esi
pop ebx
test eax, eax
je 0x101b4846
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebp + 8]
push edi
push ebp
call eax
add esp, 8
pop edi
pop ebp
pop ecx
ret