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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x44f455
mov ecx, dword [esi]
xor eax, eax
push ebx
push ebp
push edi
mov byte [ecx + 0x16], al
xor edi, edi
mov ecx, dword [esi]
mov byte [ecx + 0x17], al
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x44f40b
mov ebp, dword [esi]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4e3e98]
cmp edi, ebx
jl 0x44f3f1
mov ebx, dword [esi + 0xc]
xor edi, edi
test ebx, ebx
jle 0x44f431
mov ebp, dword [esi + 8]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4e3e98]
cmp edi, ebx
jl 0x44f417
mov ecx, dword [esi]
mov edx, eax
shr edx, 8
pop edi
pop ebp
mov byte [ecx + 0x16], al
mov ecx, dword [esi]
pop ebx
mov byte [ecx + 0x17], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 0x18], dl
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
pop esi
ret

Function at 0x454a70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push edi
mov edi, dword [eax + 0x14]
test edi, edi
je 0x454ad3
mov edx, dword [eax + 0x10]
mov ecx, dword [eax]
push ebp
push esi
mov esi, dword [eax + 0x1c]
mov ebp, dword [ecx + edx*4]
cmp esi, edi
jae 0x454acb
push ebx
mov ebx, dword [eax + 0x18]
mov ecx, 0x18
mov edx, ebp
sub ecx, esi
add esi, 8
shr edx, cl
mov ecx, ebx
and edx, 0xff
shr ecx, 8
xor edx, ecx
movzx ebx, bl
shl ebx, 8
xor ebx, dword [edx*4 + 0x776650]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], esi
cmp esi, edi
jb 0x454a91
mov ax, bx
pop ebx
pop esi
pop ebp
pop edi
ret
mov ax, word [eax + 0x18]
pop esi
pop ebp
pop edi
ret
mov ax, word [eax + 0x18]
pop edi
ret
Function at 0x455750
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x455788
mov ecx, dword [edi]
xor eax, eax
cmp dword [edi + 0xc], eax
setne al
sub eax, esi
add eax, dword [edi + 8]
shl eax, 2
push eax
lea eax, [ecx + esi*4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov dword [edi + 0x10], 0
sub dword [edi + 8], esi
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
sub eax, edx
mov ecx, dword [edi + 0xc]
shl eax, 2
sub eax, ecx
mov dword [esp + 0xc], eax
jne 0x4557a3
pop edi
xor eax, eax
pop esi
ret
push ebx
push ebp
mov ebp, dword [edi]
lea ebx, [edx*4]
lea esi, [ebx + ebp]
add esi, ecx
test ecx, ecx
je 0x4557d7
mov ecx, dword [ebx + ebp]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [ebx + ebp], edx
push dword [edi + 0x24]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x20]
push esi
call eax
add esp, 0xc
test eax, eax
jne 0x4557f1
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebx, dword [edi + 8]
mov edx, dword [esp + 0x14]
mov ebp, dword [edi + 0xc]
add ebp, 3
lea ecx, [edx + ebx*4]
add ebp, ecx
shr ebp, 2
cmp ebx, ebp
jae 0x45583d
lea ebx, [ebx]
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
lea esi, [eax + ebx*4]
mov edx, ecx
mov eax, ecx
shr edx, 8
inc ebx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [esi], edx
cmp ebx, ebp
jb 0x455810
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 8]
pop ebp
pop ebx
lea ecx, [edx + eax*4]
add ecx, dword [edi + 0xc]
mov eax, ecx
and ecx, 3
shr eax, 2
mov dword [edi + 8], eax
mov eax, 1
mov dword [edi + 0xc], ecx
pop edi
pop esi
ret

Function at 0x455e10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x77d358], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
ret

Function at 0x456af0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x456b15
push esi
mov esi, dword [esp + 8]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx eax, al
xor ecx, eax
mov al, byte [ecx + 0x4e5340]
dec edx
jne 0x456b00
pop esi
ret
Function at 0x487a60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x487a80
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x487a80
mov eax, dword [eax + 0x44]
test eax, eax
je 0x487a80
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4a5570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov eax, 1
mov edx, dword [esp + 0x18]
shl eax, cl
mov ecx, eax
sar ecx, 1
or ecx, eax
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp], ecx
cmp dword [edx + 0x18], ecx
jle 0x4a5776
push ebx
push ebp
push esi
push edi
mov edi, edi
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [edx + 0x14], ebx
jle 0x4a5762
nop
lea eax, [ecx + 4]
mov ebp, ecx
cmp ecx, eax
jge 0x4a5754
lea ecx, [ecx]
mov ecx, dword [edx + 0x18]
cmp ebp, ecx
jge 0x4a5750
test byte [esp + 0x38], 8
je 0x4a55e5
dec eax
cmp ebp, eax
je 0x4a55de
lea eax, [ecx - 1]
cmp ebp, eax
jne 0x4a55e5
mov esi, 1
jmp 0x4a55e7
xor esi, esi
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0xc]
mov edi, dword [edx + 0x24]
imul ecx, ebp
inc ebp
imul edi, ebp
add ecx, ebx
add edi, ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x20], ebx
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x10]
add eax, 2
test esi, esi
movsx esi, word [eax + edi*2]
lea edi, [eax + edi*2]
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], eax
je 0x4a5627
and esi, 0xfffffbb9
mov ecx, esi
and ecx, 0xff
je 0x4a573b
test esi, 0x5000
jne 0x4a573b
cmp byte [esp + 0x34], 1
jne 0x4a566b
push eax
call fcn.004a8450
add esp, 4
test eax, eax
je 0x4a572f
push dword [esp + 0x1c]
call fcn.004a8450
mov esi, eax
add esp, 4
test esi, esi
jmp 0x4a56c7
mov eax, dword [esp + 0x30]
shl eax, 8
or eax, ecx
push ebx
movsx eax, byte [eax + 0x7771f8]
add eax, 6
lea eax, [ebx + eax*4]
mov dword [ebx + 0x64], eax
call fcn.004a7df0
add esp, 4
test eax, eax
je 0x4a572f
push dword [esp + 0x20]
sar esi, 4
and esi, 0xff
movsx eax, byte [esi + 0x7775f8]
add eax, 6
lea eax, [ebx + eax*4]
mov dword [ebx + 0x64], eax
mov bl, byte [esi + 0x7776f8]
call fcn.004a7df0
mov esi, eax
movsx ecx, bl
add esp, 4
xor esi, ecx
mov ecx, dword [esp + 0x2c]
je 0x4a56cf
neg ecx
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, edi
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
add eax, eax
sub ecx, eax
lea edx, [eax + edi]
movzx eax, word [esi*2 + 0x50ae3c]
or word [ecx], ax
or word [ecx - 2], 2
or word [ecx + 2], 4
movzx eax, word [esi*2 + 0x50ae40]
or word [edi - 2], ax
mov eax, 0x1000
or word [edi], ax
movzx eax, word [esi*2 + 0x50ae44]
or word [edi + 2], ax
movzx eax, word [esi*2 + 0x50ae48]
or word [edx - 2], 1
or word [edx], ax
or word [edx + 2], 8
mov edx, dword [esp + 0x28]
mov eax, 0x4000
or word [edi], ax
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 4]
cmp ebp, eax
jl 0x4a55c0
jmp 0x4a5754
mov ecx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [edx + 0x14]
jl 0x4a55b0
add ecx, 4
mov dword [esp + 0x10], ecx
cmp ecx, dword [edx + 0x18]
jl 0x4a55a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a8f00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4a8f2f
push esi
call fcn.004a90e0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4a8f28
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 0x4a8fb2
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4a8f9d
mov eax, dword [esi + 8]
test eax, eax
je 0x4a8f55
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x4a8f98
cmp eax, 2
je 0x4a8f9d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8f46
cmp eax, 3
je 0x4a8f7d
cmp eax, 1
jne 0x4a8f46
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4a8f46
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4a8f46
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004a8fe0
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x4a8fd4
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.004a8fe0
add esp, 4
pop edi
pop esi
ret

Function at 0x4a8fe0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4a900c
mov eax, dword [esi + 0x190]
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 + 0x190]
cmp byte [eax + 8], 0
je 0x4a9092
lea ebx, [esi + 0x78]
jmp 0x4a9020
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4a9066
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a9045
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 + 0x194]
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 0x4a90a8
cmp eax, dword [esi + 0x60]
jb 0x4a9027
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
jne 0x4a9020
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 0x4acf50
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.004b7d20
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.004b7d00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4acf97
push edi
call fcn.004b7d30
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.004acbe0
mov dword [esi + 4], fcn.004aca70
mov dword [esi + 8], fcn.004acb40
mov dword [esi + 0xc], fcn.004ac9c0
mov dword [esi + 0x10], 0x4ad2b0
mov dword [esi + 0x14], 0x4ad240
mov dword [esi + 0x18], 0x4ad0a0
mov dword [esi + 0x1c], 0x4ac870
mov dword [esi + 0x20], 0x4ac720
mov dword [esi + 0x24], 0x4ace50
mov dword [esi + 0x28], 0x4ad320
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4ad07a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4ad07a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x4ad069
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x4ad071
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4ae4a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1b8]
mov dword [esp + 0x1c], ebx
jne 0x4ae4c5
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x4ae4cb
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 + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x4ae5e0
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4ae51d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x4ae576
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x4ae560
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4ae540
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4ae5c1
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x4ae5a0
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x4ae5a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x4ae500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4d7ef0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 0x48]
mov eax, dword [edi + 0x18]
cmp eax, 0xc
jle 0x4d7f0d
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
push ebp
push esi
cmp dword [edi + 0x2c], eax
jge 0x4d7fd1
lea esi, [edi + 0x44]
jmp 0x4d7f20
mov dl, byte [esi]
test dl, dl
jne 0x4d7fa5
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4d7f3b
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x4d7f4c
push dword [ecx + 0x38]
push 1
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4d802c
mov al, byte [esi]
test al, al
je 0x4d801e
mov edx, dword [ebx + 0x48]
lea ebp, [esi + 1]
movzx eax, al
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4d7f79
push eax
push ebp
push ebx
call ecx
add esp, 0xc
jmp 0x4d7f89
push dword [edx + 0x38]
push eax
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov cl, byte [esi]
mov edx, eax
movzx eax, cl
cmp edx, eax
jne 0x4d802c
mov al, byte [ebp]
dec cl
mov byte [ebp], 2
mov byte [esi], cl
jmp 0x4d7fb7
mov cl, byte [esi + 1]
movzx eax, cl
inc cl
dec dl
mov al, byte [eax + esi]
mov byte [esi + 1], cl
mov byte [esi], dl
mov ecx, dword [edi + 0x2c]
movzx eax, al
shl eax, cl
or dword [edi + 0x30], eax
lea eax, [ecx + 8]
mov dword [edi + 0x2c], eax
cmp eax, dword [edi + 0x18]
jl 0x4d7f20
mov eax, dword [edi + 0x18]
movzx ecx, word [eax*2 + 0x50d4d0]
mov eax, dword [esp + 0x18]
and ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov ecx, dword [edi + 0x18]
shr dword [edi + 0x30], cl
sub dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x14]
cmp eax, 0x1001
jge 0x4d8014
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x4d8014
cmp ecx, 0xc
jge 0x4d8014
lea eax, [edx + edx]
mov dword [edi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [edi + 0x18], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop esi
pop ebp
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
pop esi
pop ebp
pop edi
mov dword [ebx + 0x40], 0x66
xor eax, eax
pop ebx
ret
Function at 0x4d8300
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4d831f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4d8334
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4d838b
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4d8397
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4d8368
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4d8380
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4d83ac
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov byte [edi + 0x44], 0
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop esi
ret

Function at 0x4d83c0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4d83df
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4d83f4
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4d844b
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4d8457
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4d8428
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4d8440
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4d8461
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4d87b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4d87c8
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4d87de
push 1
lea eax, [esp + 0xc]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4d87f3
push dword [eax + 0x38]
lea eax, [esp + 0xc]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4d8803
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov al, byte [esp + 8]
cmp al, 0x21
je 0x4d8846
cmp al, 0x2c
je 0x4d8835
cmp al, 0x3b
mov eax, dword [esp + 0xc]
je 0x4d8828
mov dword [eax], 0
xor eax, eax
mov dword [esi + 0x40], 0x6b
pop esi
ret
mov dword [eax], 4
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 2
mov eax, 1
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 3
mov eax, 1
ret
Function at 0x4d8860
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4d8878
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.004d8a10
add esp, 8
test eax, eax
je 0x4d8874
lea eax, [esi + 4]
push eax
push esi
call fcn.004d8a10
add esp, 8
test eax, eax
je 0x4d8874
mov ecx, dword [esi + 0x48]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4d88b7
push 3
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4d88c8
push dword [ecx + 0x38]
lea eax, [esp + 0x10]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
je 0x4d88eb
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.004d92c0
add esp, 4
mov dword [esi + 0x14], 0
xor eax, eax
pop ebp
pop esi
ret
mov dl, byte [esp + 0xc]
movzx ecx, dl
mov eax, ecx
and ecx, 7
shr eax, 4
inc ecx
and eax, 7
inc eax
push ebx
mov dword [esi + 8], eax
mov bl, dl
movzx eax, byte [esp + 0x11]
shr bl, 3
mov dword [esi + 0xc], eax
and bl, 1
mov al, byte [esp + 0x12]
mov byte [esi + 0x10], al
push edi
test dl, dl
jns 0x4d89f0
mov eax, 1
shl eax, cl
push 0
push eax
call fcn.004d9370
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4d8948
pop edi
pop ebx
pop ebp
mov dword [esi + 0x40], 0x6d
pop esi
ret
mov byte [eax + 8], bl
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x4d89f7
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4d8979
push 3
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4d898a
push dword [ecx + 0x38]
lea eax, [esp + 0x18]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
jne 0x4d89d0
mov eax, dword [esi + 0x14]
inc ebx
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x14]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x15]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x16]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x4d8960
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
ret
push dword [esi + 0x14]
call fcn.004d92c0
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
ret
mov dword [esi + 0x14], 0
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
ret

Function at 0x4d8a10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4d8a2e
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4d8a43
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 2
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x4d8a53
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov ax, word [esp + 8]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov eax, 1
ret