joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f0a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
sar eax, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
cmp edi, eax
jge 0x1003f107
lea esi, [edx + edx]
lea eax, [esi + 2]
imul eax, eax, 0x18
add eax, ebx
push eax
add eax, 0xffffffe8
push eax
call fcn.10039816
movzx edx, al
mov eax, dword [ebp - 0x10]
xor edx, 1
inc edx
imul edi, edi, 0x18
add edx, esi
imul esi, edx, 0x18
push 6
pop ecx
add edi, ebx
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, edx
cmp edx, eax
jl 0x1003f0ce
mov ecx, dword [ebp - 0x14]
mov esi, edx
cmp edx, eax
jne 0x1003f127
test cl, 1
jne 0x1003f127
imul esi, ecx, 0x18
imul edi, edx, 0x18
push 6
pop ecx
add esi, 0xffffffe8
add esi, ebx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], esi
jge 0x1003f15f
lea ebx, [esi - 1]
sar ebx, 1
imul eax, ebx, 0x18
add eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call fcn.10039816
test al, al
je 0x1003f15c
imul edi, esi, 0x18
mov esi, dword [ebp - 8]
push 6
pop ecx
add edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
cmp dword [ebp - 0xc], ebx
jl 0x1003f12c
mov ebx, dword [ebp - 4]
imul edi, esi, 0x18
mov esi, dword [ebp + 0xc]
push 6
pop ecx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003f171
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
lea eax, [ecx - 1]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
sar eax, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], eax
cmp edi, eax
jge 0x1003f1d8
lea esi, [edx + edx]
lea eax, [esi + 2]
imul ecx, eax, 0x18
add ecx, ebx
lea eax, [ecx - 0x18]
push eax
push ecx
call fcn.100397a9
movzx edx, al
mov eax, dword [ebp - 0x14]
xor edx, 1
inc edx
imul edi, edi, 0x18
add edx, esi
imul esi, edx, 0x18
push 6
pop ecx
add edi, ebx
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, edx
cmp edx, eax
jl 0x1003f19f
mov ecx, dword [ebp - 0x18]
mov esi, edx
cmp edx, eax
jne 0x1003f1f8
test cl, 1
jne 0x1003f1f8
imul esi, ecx, 0x18
imul edi, edx, 0x18
push 6
pop ecx
add esi, 0xffffffe8
add esi, ebx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], esi
jge 0x1003f230
push dword [ebp - 0x10]
lea ebx, [esi - 1]
sar ebx, 1
imul eax, ebx, 0x18
add eax, dword [ebp - 4]
push eax
mov dword [ebp - 8], eax
call fcn.100397a9
test al, al
je 0x1003f22d
imul edi, esi, 0x18
mov esi, dword [ebp - 8]
push 6
pop ecx
add edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
cmp dword [ebp - 0xc], ebx
jl 0x1003f1fd
mov ebx, dword [ebp - 4]
imul edi, esi, 0x18
mov esi, dword [ebp - 0x10]
push 6
pop ecx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003f242
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
lea eax, [ecx - 1]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
sar eax, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], eax
cmp edi, eax
jge 0x1003f2a9
lea esi, [edx + edx]
lea eax, [esi + 2]
imul eax, eax, 0x18
add eax, ebx
push eax
add eax, 0xffffffe8
push eax
call fcn.100397a9
movzx edx, al
mov eax, dword [ebp - 0x14]
xor edx, 1
inc edx
imul edi, edi, 0x18
add edx, esi
imul esi, edx, 0x18
push 6
pop ecx
add edi, ebx
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, edx
cmp edx, eax
jl 0x1003f270
mov ecx, dword [ebp - 0x18]
mov esi, edx
cmp edx, eax
jne 0x1003f2c9
test cl, 1
jne 0x1003f2c9
imul esi, ecx, 0x18
imul edi, edx, 0x18
push 6
pop ecx
add esi, 0xffffffe8
add esi, ebx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], esi
jge 0x1003f301
lea ebx, [esi - 1]
sar ebx, 1
imul eax, ebx, 0x18
add eax, dword [ebp - 4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.100397a9
test al, al
je 0x1003f2fe
imul edi, esi, 0x18
mov esi, dword [ebp - 8]
push 6
pop ecx
add edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
cmp dword [ebp - 0xc], ebx
jl 0x1003f2ce
mov ebx, dword [ebp - 4]
imul edi, esi, 0x18
mov esi, dword [ebp - 0x10]
push 6
pop ecx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003f313
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
sar eax, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
cmp edi, eax
jge 0x1003f374
lea esi, [edx + edx]
lea eax, [esi + 2]
imul ecx, eax, 0x18
add ecx, ebx
lea eax, [ecx - 0x18]
push eax
push ecx
call fcn.10039742
movzx edx, al
mov eax, dword [ebp - 0x10]
xor edx, 1
inc edx
imul edi, edi, 0x18
add edx, esi
imul esi, edx, 0x18
push 6
pop ecx
add edi, ebx
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, edx
cmp edx, eax
jl 0x1003f33b
mov ecx, dword [ebp - 0x14]
mov esi, edx
cmp edx, eax
jne 0x1003f394
test cl, 1
jne 0x1003f394
imul esi, ecx, 0x18
imul edi, edx, 0x18
push 6
pop ecx
add esi, 0xffffffe8
add esi, ebx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], esi
jge 0x1003f3cc
push dword [ebp + 0xc]
lea ebx, [esi - 1]
sar ebx, 1
imul eax, ebx, 0x18
add eax, dword [ebp - 4]
push eax
mov dword [ebp - 8], eax
call fcn.10039742
test al, al
je 0x1003f3c9
imul edi, esi, 0x18
mov esi, dword [ebp - 8]
push 6
pop ecx
add edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
cmp dword [ebp - 0xc], ebx
jl 0x1003f399
mov ebx, dword [ebp - 4]
imul edi, esi, 0x18
mov esi, dword [ebp + 0xc]
push 6
pop ecx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003f3de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
sar eax, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
cmp edi, eax
jge 0x1003f43f
lea esi, [edx + edx]
lea eax, [esi + 2]
imul eax, eax, 0x18
add eax, ebx
push eax
add eax, 0xffffffe8
push eax
call fcn.10039742
movzx edx, al
mov eax, dword [ebp - 0x10]
xor edx, 1
inc edx
imul edi, edi, 0x18
add edx, esi
imul esi, edx, 0x18
push 6
pop ecx
add edi, ebx
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, edx
cmp edx, eax
jl 0x1003f406
mov ecx, dword [ebp - 0x14]
mov esi, edx
cmp edx, eax
jne 0x1003f45f
test cl, 1
jne 0x1003f45f
imul esi, ecx, 0x18
imul edi, edx, 0x18
push 6
pop ecx
add esi, 0xffffffe8
add esi, ebx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], esi
jge 0x1003f497
lea ebx, [esi - 1]
sar ebx, 1
imul eax, ebx, 0x18
add eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call fcn.10039742
test al, al
je 0x1003f494
imul edi, esi, 0x18
mov esi, dword [ebp - 8]
push 6
pop ecx
add edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
cmp dword [ebp - 0xc], ebx
jl 0x1003f464
mov ebx, dword [ebp - 4]
imul edi, esi, 0x18
mov esi, dword [ebp + 0xc]
push 6
pop ecx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004043e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
lea eax, [ebx - 1]
mov dword [ebp - 0x10], ebx
sar eax, 1
mov ecx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edx, eax
jge 0x1004049f
mov ebx, eax
lea esi, [ecx + ecx]
lea ecx, [edi + 0x10]
lea ecx, [ecx + esi*8]
lea eax, [ecx - 8]
push eax
push ecx
call fcn.10040401
mov edx, dword [ebp - 4]
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov dword [ebp - 4], ecx
mov eax, dword [edi + ecx*8]
mov dword [edi + edx*8], eax
mov eax, dword [edi + ecx*8 + 4]
mov dword [edi + edx*8 + 4], eax
cmp ecx, ebx
jl 0x10040465
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, ecx
cmp ecx, eax
jne 0x100404bc
test bl, 1
jne 0x100404bc
mov eax, dword [edi + ebx*8 - 8]
lea esi, [ebx - 1]
mov dword [edi + ecx*8], eax
mov eax, dword [edi + ebx*8 - 4]
mov dword [edi + ecx*8 + 4], eax
cmp dword [ebp - 0xc], esi
jge 0x100404eb
push dword [ebp + 0xc]
lea ebx, [esi - 1]
sar ebx, 1
lea eax, [edi + ebx*8]
push eax
call fcn.10040401
test al, al
je 0x100404eb
mov eax, dword [edi + ebx*8]
mov dword [edi + esi*8], eax
mov eax, dword [edi + ebx*8 + 4]
mov dword [edi + esi*8 + 4], eax
mov esi, ebx
cmp dword [ebp - 0xc], ebx
jl 0x100404c1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edi + esi*8], eax
mov eax, dword [ecx + 4]
mov dword [edi + esi*8 + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004f830
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021d399
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push ebx
push esi
push edi
mov eax, dword [0x104fb780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.10059410
push 0xa0
mov dword [ebp - 4], 0
mov dword [esi], vtable.Imf_3_2::OutputFile.0
call fcn.1011fa0f
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1004f899
push dword [ebp + 0x10]
mov ecx, eax
call fcn.1004f580
jmp 0x1004f89b
xor eax, eax
push 0x40
mov byte [ebp - 4], 0
mov dword [esi + 4], eax
call fcn.1011fa0f
mov edi, eax
add esp, 4
test edi, edi
je 0x1004f8ca
push 0x40
push 0
push edi
call fcn.10122460
add esp, 0xc
mov ecx, edi
call fcn.1004fae0
mov ecx, eax
jmp 0x1004f8cc
xor ecx, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0xc]
push 0
push 0
mov dword [eax + 0x98], ecx
mov ecx, edi
mov eax, dword [esi + 4]
mov byte [ebp - 4], 2
mov byte [eax + 0x9c], 1
call fcn.100532d0
push 0x24
call fcn.1011fa0f
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1004f914
push dword [ebp + 8]
mov ecx, eax
call fcn.10057f40
mov ecx, eax
jmp 0x1004f916
xor ecx, ecx
mov eax, dword [esi + 4]
push edi
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x98]
mov dword [eax + 0x30], ecx
mov ecx, esi
mov eax, dword [esi + 4]
mov byte [eax + 0xc], 0
call fcn.10050690
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x98]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov ecx, esi
mov eax, dword [esi + 4]
push eax
mov eax, dword [eax + 0x98]
push dword [eax + 0x30]
call fcn.10059460
mov ecx, dword [esi + 4]
push 0
mov eax, dword [ecx + 0x98]
push dword [eax + 0x30]
call fcn.100543b0
mov ecx, dword [esi + 4]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi + 4]
lea eax, [ecx + 0x44]
push eax
mov eax, dword [ecx + 0x98]
push dword [eax + 0x30]
call fcn.10050dc0
mov ecx, dword [esi + 4]
add esp, 8
mov dword [ecx + 0x78], eax
mov eax, esi
mov dword [ecx + 0x7c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10062b10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021e4c9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x104fb780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.10059510
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [edi], vtable.Imf_3_2::DwaCompressor.0
mov dword [edi + 0x10], eax
call fcn.10052720
push eax
lea ecx, [edi + 0x24]
call fcn.1005aad0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov ecx, esi
mov byte [ebp - 4], 4
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0xb8], 0
call fcn.100545f0
mov ecx, esi
mov dword [edi + 0xbc], eax
call fcn.10052930
mov ecx, esi
fstp dword [edi + 0xc0]
call fcn.10052910
mov ecx, esi
mov eax, dword [eax]
mov dword [edi + 0x14], eax
call fcn.10052910
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [edi + 0x18], eax
call fcn.10052910
mov ecx, esi
mov eax, dword [eax + 8]
mov dword [edi + 0x1c], eax
call fcn.10052910
mov eax, dword [eax + 0xc]
mov dword [edi + 0x20], eax
mov eax, edi
mov dword [edi + 0x90], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100783f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, 0x40
push esi
mov esi, dword [esp + 0x14]
sub ecx, ebx
push edi
mov eax, dword [esi]
mov edx, dword [esi + 4]
call fcn.101209a0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
or dword [ecx], eax
or dword [ecx + 4], edx
mov eax, dword [edi]
cmp eax, ebx
jge 0x10078552
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
push ebp
cmp dword [ebx], 0x40
jl 0x100784d2
mov ebp, dword [esp + 0x24]
mov ecx, dword [ebp]
movzx eax, byte [ecx]
cdq
mov edi, eax
mov ebx, edx
movzx eax, byte [ecx + 1]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 2]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 3]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 4]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 5]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 6]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 7]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov edi, dword [esp + 0x20]
mov dword [edi], 0x40
add dword [ebp], 8
add dword [eax], 0xffffffc0
jmp 0x10078533
mov dword [esi], 0
mov ebp, 0x38
mov dword [esi + 4], 0
mov dword [edi], 0x40
mov eax, dword [ebx]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x1007852b
mov edi, dword [esp + 0x24]
nop dword [eax]
mov eax, dword [edi]
mov ecx, ebp
movzx eax, byte [eax]
cdq
call fcn.10120980
or dword [esi], eax
or dword [esi + 4], edx
inc dword [edi]
add ebp, 0xfffffff8
mov eax, dword [ebx]
adc dword [esp + 0x28], 0xffffffff
add eax, 0xfffffff8
mov dword [ebx], eax
test eax, eax
jg 0x10078500
mov edi, dword [esp + 0x20]
jns 0x10078533
mov dword [ebx], 0
mov ebx, dword [esp + 0x18]
mov ecx, 0x40
mov eax, dword [esi]
sub ecx, ebx
mov edx, dword [esi + 4]
call fcn.101209a0
mov ecx, dword [esp + 0x14]
pop ebp
or dword [ecx], eax
or dword [ecx + 4], edx
cmp dword [edi], ebx
jg 0x1007856b
mov dword [esi], 0
mov dword [esi + 4], 0
sub dword [edi], ebx
pop edi
pop esi
pop ebx
ret 0x18
mov eax, dword [esi]
mov ecx, ebx
mov edx, dword [esi + 4]
call fcn.10120980
mov dword [esi], eax
mov dword [esi + 4], edx
sub dword [edi], ebx
pop edi
pop esi
pop ebx
ret 0x18
Function at 0x1007e0c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x104fb780]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x130]
push ebx
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x138]
push ebp
mov dword [esp + 0x18], eax
xor ebp, ebp
mov eax, dword [esp + 0x140]
push esi
mov dword [esp + 0x20], eax
xor esi, esi
mov eax, dword [esp + 0x148]
push edi
mov dword [esp + 0x14], eax
xor edi, edi
lea eax, [esp + 0x18]
push eax
push 0x10407160
push ebx
call fcn.1007e760
add esp, 0xc
cmp eax, 1
jne 0x1007e279
mov eax, dword [esp + 0x18]
cmp eax, 5
jne 0x1007e13b
lea eax, [edi + 1]
jmp 0x1007e149
cmp eax, 6
jne 0x1007e279
mov eax, 3
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
nop
push ebx
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.10131509
add esp, 0x10
test eax, eax
je 0x1007e279
movsx eax, byte [esp + 0x13]
push eax
call fcn.1013a4c0
add esp, 4
test eax, eax
je 0x1007e218
test ebp, ebp
je 0x1007e26b
xor ebp, ebp
cmp esi, 0x100
jae 0x1007e294
lea eax, [esp + 0x34]
mov byte [esp + esi + 0x34], 0
push eax
call fcn.10136ded
mov dword [esp + edi*4 + 0x2c], eax
add esp, 4
inc edi
xor esi, esi
cmp edi, 3
jne 0x1007e26b
cmp dword [esp + 0x30], 0xff
jg 0x1007e279
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
mov eax, dword [eax]
imul eax, edi
imul eax, esi
push eax
call fcn.1007e6f0
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], edi
mov eax, dword [esp + 0x28]
mov dword [eax], esi
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
sub eax, ecx
push eax
push 1
push ecx
call fcn.10131509
mov ecx, dword [ebp + 4]
add esp, 0x10
sub ecx, dword [ebp]
cmp eax, ecx
jne 0x1007e279
mov eax, 1
jmp 0x1007e27b
movsx eax, byte [esp + 0x13]
push eax
call fcn.1013a3a0
add esp, 4
test eax, eax
je 0x1007e240
mov al, byte [esp + 0x13]
mov ebp, 1
mov byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x100
jmp 0x1007e269
cmp byte [esp + 0x13], 0x23
jne 0x1007e279
push ebx
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.10131509
add esp, 0x10
cmp eax, 1
jne 0x1007e267
cmp byte [esp + 0x13], 0xa
jne 0x1007e247
jmp 0x1007e26b
test eax, eax
je 0x1007e279
cmp edi, 3
jl 0x1007e150
jmp 0x1007e1c6
xor eax, eax
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011f88a
add esp, 0x128
ret
call fcn.10120c4e
int3
Function at 0x1007ead0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [esi + 0x38]
call fcn.1008b680
push eax
push esi
call fcn.1008b7f0
push 0x108
push 0
push edi
call fcn.10089270
mov ebp, 1
mov dword [edi + 0x34], 0x10001
mov dword [edi + 0x2c], 0x10001
mov eax, 2
mov word [edi + 0x54], ax
add esp, 0x14
mov dword [edi + 0x38], 0x10001
xor eax, eax
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0xd8], 0x20002
mov word [edi + 0xdc], bp
mov dword [esi + 0x334], fcn.10025670
mov dword [esi + 0x340], 0
mov dword [esi + 0x344], 0x1007f850
mov dword [esi + 0x348], 0x1007efb0
mov dword [esi + 0x34c], 0
mov word [edi + 0x56], bp
mov word [edi + 0x30], bp
mov dword [edi + 0x28], 0
mov dword [edi + 0x40], 0x10000
mov word [edi + 0x74], ax
mov dword [edi + 0x78], eax
cmp dword [esi + 0x358], eax
jbe 0x1007ebed
push ebx
xor edi, edi
xor ebx, ebx
mov eax, dword [esi + 0x354]
cmp dword [ebx + eax + 4], 0
je 0x1007ebbd
push dword [ebx + eax + 0xc]
push esi
call fcn.1008c430
add esp, 8
inc edi
add ebx, 0x10
cmp edi, dword [esi + 0x358]
jb 0x1007eba3
pop ebx
push dword [esi + 0x354]
push esi
call fcn.1008c430
add esp, 8
mov dword [esi + 0x358], 0
mov dword [esi + 0x354], 0
mov eax, dword [0x1050224c]
test eax, eax
je 0x1007ebfc
push esi
call eax
add esp, 4
push 1
push 0x103
push esi
call fcn.1007eec0
and dword [esi + 0xc], 0xfffffbf7
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
ret
Function at 0x10082fd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
movzx eax, word [esi + 0x20]
cmp eax, 6
ja case.0x10082fe8.12
jmp dword [eax*4 + 0x100831b8]
cmp word [esi + 0x18], 8
je case.0x10082fe8.12
movzx eax, word [esi + 0x18]
mov edi, 1
mov cl, al
shl edi, cl
mov ecx, 0xff
dec edi
cmp eax, 0x10
cmove edi, ecx
lea eax, [edi + 1]
push eax
push dword [esi]
call fcn.1008c4a0
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x1008304c
push str.No_space_for_photometric_conversion_table
push dword [esi]
call fcn.1008b170
add esp, 4
push eax
push dword [esi]
call fcn.10094900
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor ebx, ebx
cmp word [esi + 0x20], bx
jne 0x10083078
test edi, edi
js 0x10083096
imul ebp, edi, 0xff
nop
mov eax, ebp
mov ecx, dword [esi + 0x38]
cdq
sub ebp, 0xff
idiv edi
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jle 0x10083060
jmp 0x10083096
test edi, edi
js 0x10083096
xor ebp, ebp
nop
mov eax, ebp
mov ecx, dword [esi + 0x38]
cdq
add ebp, 0xff
idiv edi
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jle 0x10083080
cmp word [esi + 0x18], 0x10
ja case.0x10082fe8.12
movzx eax, word [esi + 0x20]
cmp eax, 1
je 0x100830ab
test ax, ax
jne case.0x10082fe8.12
push esi
call fcn.10084270
add esp, 4
test eax, eax
jne 0x100830c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [esi + 0x38]
push dword [esi]
call fcn.1008c430
add esp, 8
mov dword [esi + 0x38], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov cl, byte [esi + 0x18]
mov eax, 1
mov ebp, dword [esi + 0x24]
mov edx, ebp
mov ebx, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
shl eax, cl
mov ecx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x1008313c
mov dword [esp + 0x1c], 0x100
nop dword [eax]
mov ax, word [edx]
lea edx, [edx + 2]
dec ecx
cmp ax, word [esp + 0x1c]
jae 0x10083178
mov ax, word [edi]
add edi, 2
cmp ax, word [esp + 0x1c]
jae 0x10083178
mov ax, word [ebx]
add ebx, 2
cmp ax, word [esp + 0x1c]
jae 0x10083178
test ecx, ecx
jg 0x10083110
push str.Assuming_8_bit_colormap
push dword [esi]
call fcn.1008b170
add esp, 4
push eax
push dword [esi]
call fcn.10094830
add esp, 0xc
cmp word [esi + 0x18], 8
ja case.0x10082fe8.12
push esi
call fcn.10084510
add esp, 4
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
add edx, 0xffffffff
js 0x10083156
mov eax, dword [esi + 0x28]
sub ebp, eax
mov ebx, dword [esp + 0x14]
sub ebx, eax
lea ecx, [eax + edx*2]
nop
sub edx, 1
movzx eax, byte [ecx + ebp + 1]
mov word [ecx + ebp], ax
lea ecx, [ecx - 2]
movzx eax, byte [ecx + 3]
mov word [ecx + 2], ax
movzx eax, byte [ebx + ecx + 3]
mov word [ebx + ecx + 2], ax
jns 0x10083190
jmp 0x10083156