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

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
push edi
mov edi, ecx
test esi, esi
jle 0x1003d60d
nop
mov ecx, edi
add eax, eax
xor ecx, edx
sar edi, 1
and ecx, 1
dec esi
or ecx, eax
mov eax, edx
add ecx, ecx
sar edx, 1
and eax, 1
or eax, ecx
test esi, esi
jg 0x1003d5f0
pop edi
pop esi
ret

Function at 0x10045dc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 0x44], 0
jne 0x10045e6e
cmp dword [edi + 0x28], 0x20
jbe 0x10045e6e
mov eax, dword [edi + 0x24]
push ebx
lea ebx, [edi + 0x24]
push ebp
mov eax, dword [eax + 4]
push esi
push 0
mov ebp, dword [eax + 8]
imul eax, dword [ebp], 0xfff8
push eax
push dword [edi]
call fcn.101e7f28
push dword [edi]
push 1
push 0xfff8
push dword [ebp + 8]
call fcn.101e817b
push dword [ebp + 8]
call fcn.101dc696
mov dword [ebp + 8], 0
lea esi, [edi + 0x2c]
mov eax, dword [ebx]
add esp, 0x20
mov ecx, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [ecx]
cmp eax, dword [ebx]
je 0x10045e47
mov edx, dword [eax]
cmp esi, ebx
jne 0x10045e3b
cmp ecx, eax
je 0x10045e47
cmp ecx, edx
je 0x10045e47
push ecx
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.10046720
mov eax, dword [ebp]
lea ecx, [edi + 0x34]
mov esi, dword [esi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov esi, dword [esi]
push eax
call fcn.10046a10
mov eax, dword [esp + 0x14]
mov dword [eax + 0x14], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret

Function at 0x10045f60
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
jne 0x1004603d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x34]
call fcn.100462f0
mov esi, dword [esp + 0xc]
cmp esi, dword [edi + 0x34]
je 0x1004603d
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov dword [edi + 0x40], eax
cmp dword [eax + 8], 0
jne 0x1004602a
push ebp
push 0xfff8
call fcn.101dc69b
mov ecx, dword [edi + 0x40]
push 0
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x40]
imul eax, dword [eax], 0xfff8
push eax
push dword [edi]
call fcn.101e7f28
push dword [edi]
mov eax, dword [edi + 0x40]
push 1
push 0xfff8
push dword [eax + 8]
call fcn.101e839f
mov ecx, dword [edi + 0x24]
lea ebp, [edi + 0x24]
mov eax, dword [esi + 0x14]
add esp, 0x20
lea esi, [edi + 0x2c]
mov ecx, dword [ecx]
cmp eax, dword [esi]
je 0x1004600b
mov edx, dword [eax]
cmp ebp, esi
jne 0x10045fff
cmp ecx, eax
je 0x1004600b
cmp ecx, edx
je 0x1004600b
push ecx
push edx
push eax
push esi
push ecx
mov ecx, ebp
call fcn.10046720
mov esi, dword [ebp]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
mov esi, dword [esi]
lea ecx, [edi + 0x34]
call fcn.10046a10
mov eax, dword [esp + 0x10]
pop ebp
mov dword [eax + 0x14], esi
mov ecx, edi
call fcn.10045dc0
mov eax, dword [edi + 0x40]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x1005f980
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x3c]
movss xmm2, dword [0x1039c01c]
dec eax
movaps xmm1, xmm2
mov dword [esp + 0x14], ecx
push esi
push edi
movd xmm0, eax
mov esi, edx
cvtdq2ps xmm0, xmm0
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], eax
divss xmm1, xmm0
mulss xmm1, xmm1
divss xmm2, xmm1
movss dword [esp + 0x30], xmm2
call sym.FreeImage.dll__FreeImage_GetPitch_4
mov edi, eax
push esi
shr edi, 2
call sym.FreeImage.dll__FreeImage_GetPitch_4
push dword [esp + 0x40]
mov esi, eax
shr esi, 2
call sym.FreeImage.dll__FreeImage_GetPitch_4
push dword [esp + 0x1c]
shr eax, 2
mov dword [esp + 0x28], eax
call sym.FreeImage.dll__FreeImage_GetBits_4
push dword [esp + 0x20]
lea ecx, [edi*4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
lea edi, [ecx + eax]
lea eax, [esi*4]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
call sym.FreeImage.dll__FreeImage_GetBits_4
push dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x28]
add esi, dword [esp + 0x3c]
shl eax, 2
mov dword [esp + 0x2c], eax
call sym.FreeImage.dll__FreeImage_GetBits_4
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
cmp ecx, 1
jle 0x1005fb05
movss xmm2, dword [0x1039ccd0]
dec ecx
movss xmm3, dword [0x1039c448]
movss xmm4, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
nop
mov edx, dword [esp + 0x38]
lea ecx, [edi + 4]
sub eax, dword [esp + 0x34]
add edx, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
lea edi, [edx + 4]
mov dword [esp + 0x14], ecx
mov edx, esi
sub edx, dword [esp + 0x38]
add edx, 4
dec eax
mov dword [esp + 0x2c], eax
nop
movss xmm1, dword [edx]
lea eax, [esi + 4]
addss xmm1, dword [edi]
movss xmm0, dword [eax]
add edx, 4
mulss xmm0, xmm3
add edi, 4
addss xmm1, dword [esi + 8]
addss xmm1, dword [esi]
mov esi, dword [esp + 0x10]
subss xmm1, xmm0
mulss xmm1, xmm4
xorps xmm1, xmm2
movss dword [ecx], xmm1
movss xmm0, dword [esi + ecx]
mov esi, eax
addss xmm0, xmm1
movss dword [ecx], xmm0
add ecx, 4
sub dword [esp + 0x2c], 1
jne 0x1005fa90
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
add edi, dword [esp + 0x18]
add eax, dword [esp + 0x28]
sub dword [esp + 0x20], 1
mov esi, dword [esp + 0xc]
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
jne 0x1005fa60
mov esi, dword [esp + 0x1c]
push esi
call sym.FreeImage.dll__FreeImage_GetPitch_4
push eax
push 0
push 0
push esi
call sym.FreeImage.dll__FreeImage_GetScanLine_8
push eax
call fcn.101dfee0
add esp, 0xc
push esi
call sym.FreeImage.dll__FreeImage_GetPitch_4
push eax
push 0
push dword [esp + 0x38]
push esi
call sym.FreeImage.dll__FreeImage_GetScanLine_8
push eax
call fcn.101dfee0
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov eax, dword [esp + 8]
lea edx, [ecx - 1]
lea edx, [eax + edx*4]
test ecx, ecx
jle 0x1005fb74
mov esi, dword [esp + 0x18]
sub edx, eax
nop word [eax + eax]
mov dword [eax], 0
mov dword [edx + eax], 0
add eax, esi
sub ecx, 1
jne 0x1005fb60
pop edi
pop esi
add esp, 0x34
ret
Function at 0x10067fd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x10067fff
push esi
call fcn.10070250
add esp, 4
cmp byte [esi + 0x40], 0
je 0x10067ff8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x10068082
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x1006806d
mov eax, dword [esi + 8]
test eax, eax
je 0x10068025
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x10068068
cmp eax, 2
je 0x1006806d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10068016
cmp eax, 3
je 0x1006804d
cmp eax, 1
jne 0x10068016
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x10068016
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x10068016
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.10068320
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x100680a4
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.10068320
add esp, 4
pop edi
pop esi
ret

Function at 0x10068320
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x1006834c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x100683d2
lea ebx, [esi + 0x78]
nop dword [eax + eax]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x100683a6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10068385
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x100683e8
cmp eax, dword [esi + 0x60]
jb 0x10068367
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x10068360
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x1006c240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
xor edx, edx
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x24], 0
mov ecx, dword [ebp + 0x108]
imul ecx, dword [ebp + 0x100]
div ecx
cmp dword [ebp + 0x4c], 0
mov edi, eax
mov dword [esp + 0x3c], edi
jle 0x1006c413
mov edx, dword [esp + 0x54]
xor ecx, ecx
sub dword [esp + 0x58], edx
mov dword [esp + 0x28], ecx
push esi
nop dword [eax]
mov esi, dword [ebp + 0x54]
add esi, ecx
mov dword [esp + 0x34], esi
mov eax, dword [esi + 8]
mov ebp, eax
imul eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
imul ebp, edi
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
mov eax, ecx
imul eax, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], eax
cmp dword [esi + 0x20], edi
jbe 0x1006c3e6
add edx, dword [esp + 0x5c]
mov dword [esp + 0x3c], edx
mov eax, dword [ebx + 4]
push 1
push ecx
push edi
push dword [edx]
mov eax, dword [eax + 0x20]
push ebx
call eax
mov ecx, dword [esp + 0x44]
mov ebx, eax
mov edx, dword [esp + 0x5c]
add ecx, edi
push 0
push dword [esi + 0xc]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x78]
mov eax, dword [eax + 0x20]
push dword [ecx]
push edx
call eax
xor ecx, ecx
mov dword [esp + 0x48], eax
add esp, 0x28
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0xc], ecx
jle 0x1006c3c8
sub ebx, eax
mov dword [esp + 0x38], ebx
nop
mov edi, dword [ebx + eax]
xor ebx, ebx
mov eax, dword [eax]
cmp dword [esi + 0x1c], ebx
jbe 0x1006c3a7
mov edx, dword [esp + 0x14]
sub ebp, edx
mov ecx, edx
dec ebp
shl ecx, 7
add ecx, eax
shl ebp, 7
mov dword [esp + 0x10], ecx
add ebp, eax
lea eax, [ebx + edx]
cmp eax, dword [esp + 0x18]
jae 0x1006c378
mov edx, edi
mov eax, ebp
mov esi, 0x20
movzx ecx, word [eax]
lea edx, [edx + 4]
mov word [edx - 4], cx
lea eax, [eax + 4]
movzx ecx, word [eax - 2]
neg cx
mov word [edx - 2], cx
sub esi, 1
jne 0x1006c355
mov esi, dword [esp + 0x34]
jmp 0x1006c384
push 1
push edi
push ecx
call fcn.10071380
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc ebx
mov edx, dword [esp + 0x14]
sub ecx, 0xffffff80
add ebp, 0xffffff80
mov dword [esp + 0x10], ecx
sub edi, 0xffffff80
cmp ebx, dword [esi + 0x1c]
jb 0x1006c343
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc ecx
mov ebx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp ecx, dword [esi + 0xc]
jl 0x1006c320
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
add edi, ecx
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], edi
cmp edi, dword [esi + 0x20]
jb 0x1006c2d3
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
add edx, 4
mov ebp, dword [esp + 0x4c]
inc eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
add ecx, 0x58
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], edx
cmp eax, dword [ebp + 0x4c]
jl 0x1006c290
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x1007b930
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x1007b956
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x1007b95c
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], esi
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [ebp + 0x64], edi
jle 0x1007ba52
nop dword [eax]
mov ecx, dword [ebx + edi*4 + 0x20]
cdq
idiv ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test esi, esi
je 0x1007b9ad
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [esp + 0x10], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push ebp
call fcn.1007bc30
add esp, 0x10
mov edx, eax
xor esi, esi
nop dword [eax]
cmp esi, edx
jle 0x1007b9ec
mov eax, dword [esp + 0x18]
inc ebx
dec eax
push eax
push ebx
push edi
push ebp
call fcn.1007bc30
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x1007b9d4
mov ecx, dword [esp + 0x14]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [esp + 0x10]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x1007b9d0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1007ba40
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax + eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x1007ba20
mov eax, dword [esp + 0x14]
inc edi
mov ebx, dword [esp + 0x1c]
cmp edi, dword [ebp + 0x64]
jl 0x1007b990
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100a33e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp dword [esi + 0x68], 0
jne 0x100a3402
mov eax, dword [esi + 0x4088]
add eax, dword [esi + 0x84]
je 0x100a3407
mov eax, 1
push esi
mov dword [esi + 0x8560], eax
call fcn.100a1880
add esp, 4
test eax, eax
je 0x100a3425
or eax, 0xffffffff
pop esi
add esp, 0x104
ret
push ebx
push ebp
push edi
push dword [esi + 0x7c]
push dword [esi + 0x85c8]
call fcn.100a1af0
mov eax, dword [esi + 0x85fc]
add esp, 8
test eax, eax
je 0x100a35c1
shl eax, 2
push eax
call fcn.101e30cd
mov ecx, eax
add esp, 4
mov dword [esi + 0x8868], ecx
test ecx, ecx
je 0x100a35ce
mov eax, dword [esi + 0x85fc]
shl eax, 2
push eax
push 0
push ecx
call fcn.101dfee0
mov eax, dword [esi + 0x861c]
add esp, 0xc
imul eax, dword [esi + 0x8620]
imul eax, dword [esi + 0x6c]
cmp eax, 0x4000000
jb 0x100a34c7
mov eax, dword [esi + 0x85fc]
shl eax, 2
push eax
call fcn.101e30cd
mov ecx, eax
add esp, 4
mov dword [esi + 0x886c], ecx
test ecx, ecx
je 0x100a35ce
mov eax, dword [esi + 0x85fc]
shl eax, 2
push eax
push 0
push ecx
call fcn.101dfee0
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 0x85fc], ebx
jbe 0x100a35c1
nop word [eax + eax]
mov eax, dword [esi + 0x861c]
lea edi, [ebx*4]
imul eax, dword [esi + 0x8620]
imul eax, dword [esi + 0x6c]
cmp eax, 0x4000000
jb 0x100a3585
push 0x104
call fcn.101e30cd
mov ecx, dword [esi + 0x886c]
add esp, 4
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x886c]
mov ebp, dword [edi + eax]
test ebp, ebp
je 0x100a35ce
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x100a35ce
cmp eax, 0x104
jae 0x100a35ce
mov eax, dword [esi + 0x886c]
push dword [eax + edi]
lea eax, [esp + 0x14]
push 0
push 0x103be86c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x100a35ce
mov eax, dword [esi + 0x8868]
push 0x103be8d8
add eax, edi
push ebp
push eax
call fcn.100a13e0
add esp, 0xc
jmp 0x100a3596
mov eax, dword [esi + 0x8868]
add eax, edi
push eax
call fcn.100a1440
add esp, 4
test eax, eax
jne 0x100a35ce
mov eax, dword [esi + 0x8868]
push dword [eax + edi]
mov eax, dword [esi + 0x85f8]
push dword [eax + edi]
call fcn.100a1af0
inc ebx
add esp, 8
cmp ebx, dword [esi + 0x85fc]
jb 0x100a34e0
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x104
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 0x104
ret
Function at 0x100db9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, 1
shl eax, cl
mov ecx, eax
sar ecx, 1
or ecx, eax
push ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x14], ecx
jbe 0x100dbb34
push ebp
push esi
push edi
nop
xor ebp, ebp
mov dword [esp + 0x10], ebp
cmp dword [ebx + 0x10], ebp
jbe 0x100dbb21
nop
lea eax, [ecx + 4]
mov esi, ecx
cmp ecx, eax
jae 0x100dbb13
nop dword [eax]
mov ecx, dword [ebx + 0x14]
cmp esi, ecx
jae 0x100dbb0f
dec eax
cmp esi, eax
je 0x100dba2b
lea eax, [ecx - 1]
cmp esi, eax
je 0x100dba2b
xor edx, edx
jmp 0x100dba30
mov edx, 1
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov edi, dword [ebx]
imul ecx, esi
inc esi
mov dword [esp + 0x14], edi
add ecx, ebp
inc ebp
lea eax, [eax + ecx*4]
mov ecx, dword [ebx + 0x20]
imul ecx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc]
add ebp, ecx
movsx ebx, word [eax + ebp*2]
lea ebp, [eax + ebp*2]
test edx, edx
je 0x100dba66
and ebx, 0xfffffbb9
movzx ecx, bl
test bl, bl
je 0x100dbaf6
test ebx, 0x5000
jne 0x100dbaf6
mov eax, dword [esp + 0x2c]
shl eax, 8
or eax, ecx
push edi
movzx eax, byte [eax + 0x103becf8]
add eax, 6
lea eax, [edi + eax*4]
mov dword [edi + 0x64], eax
call fcn.100de8c0
add esp, 4
test eax, eax
je 0x100dbaed
push ebx
call fcn.100dc910
movzx eax, al
add eax, 6
push ebx
lea eax, [edi + eax*4]
mov dword [edi + 0x64], eax
call fcn.100dc990
push dword [esp + 0x1c]
movzx edi, al
call fcn.100de8c0
mov ecx, dword [esp + 0x28]
xor edi, eax
mov eax, dword [esp + 0x24]
neg eax
test edi, edi
cmove eax, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x20]
push edi
push ebp
call fcn.100dca50
add esp, 0x18
mov eax, 0x4000
or word [ebp], ax
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
lea eax, [ecx + 4]
cmp esi, eax
jb 0x100dba10
jmp 0x100dbb13
mov ecx, dword [esp + 0x28]
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [ebx + 0x10]
jb 0x100dba00
add ecx, 4
mov dword [esp + 0x28], ecx
cmp ecx, dword [ebx + 0x14]
jb 0x100db9f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100efba0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100efbc0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100efbc0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100efbc0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100fd9b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x74]
test al, 1
je 0x100fdb6c
test al, 6
je 0x100fd9e4
push dword [esp + 0x50]
push esi
call fcn.100fc440
push str.out_of_place
push esi
call fcn.100efd80
add esp, 0x10
pop esi
add esp, 0x40
ret
mov eax, dword [esp + 0x50]
cmp eax, 0x20
je 0x100fda07
push eax
push esi
call fcn.100fc440
push str.invalid
push esi
call fcn.100efd80
add esp, 0x10
pop esi
add esp, 0x40
ret
push 0x20
lea eax, [esp + 0x28]
push eax
push esi
call fcn.100fc410
push 0
push esi
call fcn.100fc440
add esp, 0x14
test eax, eax
jne 0x100fdb67
lea eax, [esp + 0x24]
push eax
push 0
call fcn.100ffe70
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push 0
call fcn.100ffe70
mov dword [esp + 0x30], eax
lea eax, [esp + 0x3c]
push eax
push 0
call fcn.100ffe70
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
push eax
push 0
call fcn.100ffe70
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
push eax
push 0
call fcn.100ffe70
mov dword [esp + 0x34], eax
lea eax, [esp + 0x60]
push eax
push 0
call fcn.100ffe70
mov dword [esp + 0x40], eax
lea eax, [esp + 0x6c]
push eax
push 0
call fcn.100ffe70
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x78]
push eax
push 0
call fcn.100ffe70
add esp, 0x40
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0xffffffff
je 0x100fdb59
cmp dword [esp + 0x20], 0xffffffff
je 0x100fdb59
cmp dword [esp + 4], 0xffffffff
je 0x100fdb59
cmp dword [esp + 8], 0xffffffff
je 0x100fdb59
cmp dword [esp + 0xc], 0xffffffff
je 0x100fdb59
cmp dword [esp + 0x10], 0xffffffff
je 0x100fdb59
cmp dword [esp + 0x14], 0xffffffff
je 0x100fdb59
cmp eax, 0xffffffff
je 0x100fdb59
movzx eax, word [esi + 0x326]
test ax, ax
js 0x100fdb67
test al, 0x10
je 0x100fdb29
push dword [esp + 0x4c]
or eax, 0x8000
push esi
mov word [esi + 0x326], ax
call fcn.100f5dd0
push str.duplicate
push esi
call fcn.100efd80
add esp, 0x10
pop esi
add esp, 0x40
ret
or eax, 0x10
mov word [esi + 0x326], ax
lea eax, [esp + 4]
push 1
push eax
lea eax, [esi + 0x2dc]
push eax
push esi
call fcn.100f5e30
push dword [esp + 0x5c]
push esi
call fcn.100f5dd0
add esp, 0x18
pop esi
add esp, 0x40
ret
push str.invalid_values
push esi
call fcn.100efd80
add esp, 8
pop esi
add esp, 0x40
ret
push str.missing_IHDR
push esi
call fcn.100efc30
int3

Function at 0x101017f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
je 0x1010181b
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x10101803
mov eax, dword [ecx]
jmp dword [eax + 8]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.101e839f
add esp, 0x10
ret 0xc
push 0x103aec5c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
call fcn.101e00bb
int3
Function at 0x10101c80
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x14
push esi
push 0
push 0
push 0
push 2
push 0
push dword [esp + 0x30]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x14], eax
test eax, eax
je 0x10101cd8
push ebx
lea ebx, [esi + 0x20]
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10101d1f
push dword [ebx]
push 0
push 0
push 4
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x18], eax
test eax, eax
je 0x10101d66
pop ebx
pop esi
add esp, 0x14
ret 4
lea eax, [esp + 0x10]
mov dword [esp + 0xc], vtable.std::exception.0
push eax
lea eax, [esp + 8]
mov dword [esp + 8], str.failed_to_create_file_mapping
xorps xmm0, xmm0
mov byte [esp + 0xc], 1
push eax
movq qword [esp + 0x18], xmm0
call fcn.101df437
add esp, 8
mov dword [esp + 0xc], vtable.std::runtime_error.0
lea eax, [esp + 0xc]
push 0x103baba4
push eax
call fcn.101e00bb
lea eax, [esp + 0x14]
mov dword [esp + 0x10], vtable.std::exception.0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.failed_to_get_the_file_size
xorps xmm0, xmm0
mov byte [esp + 0x10], 1
push eax
movq qword [esp + 0x1c], xmm0
call fcn.101df437
add esp, 8
mov dword [esp + 0x10], vtable.std::runtime_error.0
lea eax, [esp + 0x10]
push 0x103baba4
push eax
call fcn.101e00bb
lea eax, [esp + 0x14]
mov dword [esp + 0x10], vtable.std::exception.0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.failed_to_map_the_file
xorps xmm0, xmm0
mov byte [esp + 0x10], 1
push eax
movq qword [esp + 0x1c], xmm0
call fcn.101df437
add esp, 8
mov dword [esp + 0x10], vtable.std::runtime_error.0
lea eax, [esp + 0x10]
push 0x103baba4
push eax
call fcn.101e00bb
int3