joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462d20
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
push eax
push ebp
push esi
call fcn.00465710
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x462d7f
movzx ecx, word [ebp]
push ecx
push esi
call fcn.0045e560
add esp, 8
test eax, eax
je 0x462d60
mov eax, dword [eax + 0x1c]
jmp 0x462d65
mov eax, str.unknown_tagname
push 0
push eax
push str.TIFFFetchStripThing
push ebx
push esi
call fcn.00465df0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 0xc], 0
ja 0x462e7b
jb 0x462d94
cmp dword [ebp + 8], edi
jae 0x462e7b
movzx eax, word [ebp]
push eax
push esi
call fcn.0045e560
push str.LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0xc
mov ebx, 0xf4240
test eax, eax
je 0x462dc6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x462dd3
mov ecx, dword [eax + 0x1c]
jmp 0x462dd8
mov ecx, str.unknown_tagname
push ecx
cmp edi, ebx
jbe 0x462df4
push str.Incorrect_count_for___s_
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.0045e4b0
jmp 0x462e09
push str.Incorrect_count_for___s___tag_ignored
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.0045dcc0
add esp, 0x10
cmp edi, ebx
jbe 0x462e24
push dword [esp + 0x20]
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.for_strip_array
push 8
push edi
push esi
call fcn.0045fc60
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x462e10
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
shl eax, 3
push eax
push esi
push ebx
call fcn.00454000
mov eax, dword [ebp + 8]
sub edi, eax
shl edi, 3
push edi
push 0
lea eax, [ebx + eax*8]
push eax
call fcn.00454010
push esi
call sub.MSVCRT.dll_free
mov eax, dword [esp + 0x40]
add esp, 0x1c
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret

Function at 0x46d030
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x290]
mov dword [eax], 0x46ce40
push str.LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER
mov dword [esi + 8], eax
mov dword [esi + 0x340], 0x64
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x46d072
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x340], eax
lea eax, [esi + 0x250]
push 0
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 8
test eax, eax
je 0x46d08c
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
call fcn.004ce9b0
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4a5730
Capabilities:
Query environment variable

Disassembly:
push edi
push str.OPJ_NUM_THREADS
call sub.MSVCRT.dll_getenv
mov edi, eax
add esp, 4
test edi, edi
je 0x4a57b0
call fcn.004b5050
test eax, eax
je 0x4a57b0
push esi
call fcn.004b5040
mov esi, eax
mov ecx, str.ALL_CPUS
mov edx, edi
push ebx
lea ecx, [ecx]
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x4a5780
test bl, bl
je 0x4a577c
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4a5780
add edx, 2
add ecx, 2
test al, al
jne 0x4a5760
xor eax, eax
jmp 0x4a5785
sbb eax, eax
or eax, 1
pop ebx
test eax, eax
je 0x4a57ab
test esi, esi
jne 0x4a5793
mov esi, 0x20
push edi
call sub.MSVCRT.dll_atoi
add esp, 4
test eax, eax
jns 0x4a57a5
xor eax, eax
pop esi
pop edi
ret
add esi, esi
cmp eax, esi
jle 0x4a57a2
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x4cac20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, 6
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, 1
shl ebp, cl
xor ecx, ecx
mov dword [eax], 0
mov dword [esp + 0x14], ebp
test dword [edi + 0x80], 0xfffffffc
mov dword [esp + 0x10], ecx
jbe 0x4cad98
lea ecx, [ecx]
mov eax, dword [edi + 0x7c]
xor ebx, ebx
test eax, eax
je 0x4cad80
shr ecx, 2
mov dword [esp + 0x1c], ecx
lea edx, [ecx + 1]
mov dword [esp + 0x20], edx
jmp 0x4cac80
lea ecx, [eax + 2]
mov eax, dword [edi + 0x78]
imul ecx, edx
xor edx, edx
add ecx, ebx
cmp dword [eax + ecx*4 + 4], edx
sete dl
xor esi, esi
mov dword [esp + 0x18], edx
test edx, edx
je 0x4cad1c
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x74]
mov edi, dword [esp + 0x14]
lea ebp, [eax*4]
imul eax, dword [esp + 0x10]
add eax, ebx
lea ecx, [ecx + eax*4]
lea esp, [esp]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
test edi, eax
jne 0x4cacd3
inc esi
add ecx, ebp
cmp esi, 4
jb 0x4cacc0
mov edi, dword [esp + 0x28]
lea eax, [edi + 0x60]
mov dword [edi + 0x68], eax
xor eax, eax
cmp esi, 4
setne al
push eax
push edi
call fcn.004cd9d0
add esp, 8
cmp esi, 4
je 0x4cad68
lea eax, [edi + 0x64]
mov dword [edi + 0x68], eax
mov eax, esi
shr eax, 1
push eax
push edi
call fcn.004cd9d0
mov eax, esi
and eax, 1
push eax
push edi
call fcn.004cd9d0
mov edx, dword [esp + 0x28]
add esp, 0x10
mov ebp, dword [esp + 0x14]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x74]
add ecx, esi
imul ecx, dword [edi + 0x8c]
push 4
push esi
push edx
push dword [esp + 0x40]
add ecx, ebx
push ebp
push dword [esp + 0x44]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 0x7c]
push eax
mov eax, dword [esp + 0x3c]
add ecx, 2
inc eax
imul ecx, eax
mov eax, dword [edi + 0x78]
add ecx, ebx
lea eax, [eax + ecx*4]
add eax, 4
push eax
push edi
call fcn.004cae20
add esp, 0x28
jmp 0x4cad6c
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
inc ebx
mov edx, dword [esp + 0x20]
cmp ebx, eax
jb 0x4cac80
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x80]
add ecx, 4
and eax, 0xfffffffc
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x4cac60
cmp ecx, dword [edi + 0x80]
jae 0x4cae13
mov edx, dword [edi + 0x7c]
xor esi, esi
test edx, edx
je 0x4cae13
mov eax, ecx
shr eax, 2
lea ebx, [eax*4 + 4]
jmp 0x4cadc0
push dword [esp + 0x34]
mov eax, dword [edi + 0x80]
sub eax, ecx
mov ecx, dword [edi + 0x8c]
imul ecx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x74]
push 0
push 0
push dword [esp + 0x40]
add ecx, esi
push ebp
push dword [esp + 0x44]
lea eax, [eax + ecx*4]
push eax
lea eax, [edx + 2]
imul eax, ebx
lea eax, [eax + esi*4]
add eax, 4
add eax, dword [edi + 0x78]
push eax
push edi
call fcn.004cae20
mov edx, dword [edi + 0x7c]
inc esi
mov ecx, dword [esp + 0x38]
add esp, 0x28
cmp esi, edx
jb 0x4cadc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4ce9b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4ce9df
push esi
call fcn.004ceb90
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4ce9d8
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 0x4cea62
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x4cea4d
mov eax, dword [esi + 8]
test eax, eax
je 0x4cea05
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 0x4cea48
cmp eax, 2
je 0x4cea4d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ce9f6
cmp eax, 3
je 0x4cea2d
cmp eax, 1
jne 0x4ce9f6
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4ce9f6
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4ce9f6
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004cea90
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x4cea84
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.004cea90
add esp, 4
pop edi
pop esi
ret

Function at 0x4cea90
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4ceabc
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 0x4ceb42
lea ebx, [esi + 0x78]
jmp 0x4cead0
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4ceb16
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ceaf5
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 0x4ceb58
cmp eax, dword [esi + 0x60]
jb 0x4cead7
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 0x4cead0
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 0x4d3310
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.004dece0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.004decb0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d3357
push edi
call fcn.004decf0
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.004d2fa0
mov dword [esi + 4], fcn.004d2e30
mov dword [esi + 8], fcn.004d2f00
mov dword [esi + 0xc], fcn.004d2d80
mov dword [esi + 0x10], 0x4d3670
mov dword [esi + 0x14], 0x4d3600
mov dword [esi + 0x18], 0x4d3460
mov dword [esi + 0x1c], 0x4d2c30
mov dword [esi + 0x20], 0x4d2ae0
mov dword [esi + 0x24], 0x4d3210
mov dword [esi + 0x28], 0x4d36e0
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 0x4d343a
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 0x4d343a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x4d3429
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x4d3431
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4d4870
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 + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x4d4895
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x4d489b
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 0x4d49b0
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 0x4d48ed
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 0x4d4946
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 0x4d4930
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4d4910
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4d4991
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x4d4970
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 0x4d4970
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 0x4d48d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4fecd0
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 0x4feced
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
push ebp
push esi
cmp dword [edi + 0x2c], eax
jge 0x4fedb1
lea esi, [edi + 0x44]
jmp 0x4fed00
mov dl, byte [esi]
test dl, dl
jne 0x4fed85
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4fed1b
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x4fed2c
push dword [ecx + 0x38]
push 1
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4fee0c
mov al, byte [esi]
test al, al
je 0x4fedfe
mov edx, dword [ebx + 0x48]
lea ebp, [esi + 1]
movzx eax, al
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4fed59
push eax
push ebp
push ebx
call ecx
add esp, 0xc
jmp 0x4fed69
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 0x4fee0c
mov al, byte [ebp]
dec cl
mov byte [ebp], 2
mov byte [esi], cl
jmp 0x4fed97
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 0x4fed00
mov eax, dword [edi + 0x18]
movzx ecx, word [eax*2 + 0x54e478]
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 0x4fedf4
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x4fedf4
cmp ecx, 0xc
jge 0x4fedf4
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 0x4ff0e0
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 0x4ff0ff
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ff114
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 0x4ff16b
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4ff177
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 0x4ff148
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4ff160
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 0x4ff18c
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 0x4ff1a0
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 0x4ff1bf
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ff1d4
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 0x4ff22b
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4ff237
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 0x4ff208
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4ff220
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 0x4ff241
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 0x4ff590
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4ff5a8
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4ff5be
push 1
lea eax, [esp + 0xc]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4ff5d3
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 0x4ff5e3
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov al, byte [esp + 8]
cmp al, 0x21
je 0x4ff626
cmp al, 0x2c
je 0x4ff615
cmp al, 0x3b
mov eax, dword [esp + 0xc]
je 0x4ff608
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 0x4ff640
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4ff658
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.004ff7f0
add esp, 8
test eax, eax
je 0x4ff654
lea eax, [esi + 4]
push eax
push esi
call fcn.004ff7f0
add esp, 8
test eax, eax
je 0x4ff654
mov ecx, dword [esi + 0x48]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4ff697
push 3
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ff6a8
push dword [ecx + 0x38]
lea eax, [esp + 0x10]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
je 0x4ff6cb
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.005000a0
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 0x4ff7d0
mov eax, 1
shl eax, cl
push 0
push eax
call fcn.00500150
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4ff728
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 0x4ff7d7
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4ff759
push 3
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ff76a
push dword [ecx + 0x38]
lea eax, [esp + 0x18]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
jne 0x4ff7b0
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 0x4ff740
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
ret
push dword [esi + 0x14]
call fcn.005000a0
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 0x4ff7f0
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 0x4ff80e
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ff823
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 0x4ff833
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
Function at 0x4ff850
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push edi
push 0x4c
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4ff87a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ff873
mov dword [eax], 0x6d
xor eax, eax
pop edi
add esp, 8
ret
push esi
push 0x4c
push 0
push edi
call sub.MSVCRT.dll_memset
push 0x614c
push 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4ff8c9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ff8b7
mov dword [eax], 0x6d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop edi
add esp, 8
ret
push 0x614c
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [edi + 0x48], esi
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 0x38], 0
mov dword [esi], 8
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4ff917
push 6
lea ecx, [esp + 0xc]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x4ff92c
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 6
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 6
je 0x4ff941
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ff96d
mov dword [eax], 0x66
jmp 0x4ff96d
push 3
lea eax, [esp + 0xc]
mov byte [esp + 0x12], 0
push eax
push str.GIFVER
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4ff984
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ff96d
mov dword [eax], 0x67
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
add esp, 8
xor eax, eax
pop esi
pop edi
add esp, 8
ret
push edi
call fcn.004ff640
add esp, 4
test eax, eax
jne 0x4ff9b6
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4ff9ae
mov dword [eax], 0x68
pop esi
xor eax, eax
pop edi
add esp, 8
ret
mov dword [edi + 0x40], 0
cmp byte [esp + 0xb], 0x39
sete al
mov byte [esi + 0x6148], al
mov eax, edi
pop esi
pop edi
add esp, 8
ret

Function at 0x4ffc00
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 0x4ffc1f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ffc34
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
jb 0x4ffc4a
movzx ecx, byte [esp + 0xc]
cmp ecx, 8
jle 0x4ffc4f
mov dword [esi + 0x40], 0x66
pop edi
xor eax, eax
pop esi
ret
mov eax, 1
mov dword [edi + 8], ecx
shl eax, cl
inc ecx
mov dword [edi + 0xc], eax
inc eax
mov dword [edi + 0x10], eax
inc eax
mov dword [edi + 0x14], eax
mov eax, 1
shl eax, cl
mov dword [edi + 0x1c], eax
mov eax, 0x1002
mov dword [edi + 0x18], ecx
mov ecx, 0x1000
mov byte [edi + 0x44], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0x1002
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
add edi, 0x2144
rep stosd dword es:[edi], eax
pop edi
mov eax, 1
pop esi
ret