joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013e8b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [eax + 0x38]
xor ebx, ebx
push edi
mov ecx, esi
cmp dword [esi + 0x3c], ebx
je 0x1013e8d2
push 1
lea edx, [esp + 0x13]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
add esp, 0xc
jmp 0x1013e8e8
mov edx, dword [ecx + 0x38]
push edx
push 1
lea eax, [esp + 0x17]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
movzx ecx, byte [esp + 0xf]
mov eax, 1
shl eax, cl
mov dword [esi + 8], ecx
inc ecx
mov edx, 1
mov dword [esi + 0xc], eax
inc eax
mov dword [esi + 0x10], eax
inc eax
shl edx, cl
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov eax, 0x1002
mov byte [esi + 0x44], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x2144]
mov dword [esi + 0x1c], edx
mov ecx, 0x1000
rep stosd dword es:[edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x1013e970
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi], 0
push ebp
push edi
jne 0x1013ea13
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 0x3c]
mov ebp, dword [sym.imp.MSVCR90.dll_fread]
test ecx, ecx
je 0x1013e996
push 1
push esi
push ebx
call ecx
add esp, 0xc
jmp 0x1013e9a4
mov eax, dword [eax + 0x38]
push eax
push 1
push 1
push esi
call ebp
add esp, 0x10
cmp eax, 1
je 0x1013e9b8
pop edi
mov dword [0x1018612c], 0x66
xor eax, eax
pop ebp
ret
mov al, byte [esi]
test al, al
jne 0x1013e9cd
pop edi
mov dword [0x1018612c], 0x70
xor eax, eax
pop ebp
ret
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + 0x3c]
lea edi, [esi + 1]
test edx, edx
je 0x1013e9e7
movzx ecx, al
push ecx
push edi
push ebx
call edx
add esp, 0xc
jmp 0x1013e9f7
mov edx, dword [ecx + 0x38]
push edx
movzx eax, al
push eax
push 1
push edi
call ebp
add esp, 0x10
movzx ecx, byte [esi]
cmp eax, ecx
jne 0x1013e9a9
mov dl, byte [edi]
mov eax, dword [esp + 0xc]
mov byte [eax], dl
dec byte [esi]
mov byte [edi], 2
pop edi
mov eax, 1
pop ebp
ret
movzx ecx, byte [esi + 1]
mov dl, byte [ecx + esi]
mov eax, dword [esp + 0xc]
mov byte [eax], dl
inc byte [esi + 1]
dec byte [esi]
pop edi
mov eax, 1
pop ebp
ret
Function at 0x1013ea30
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
jne 0x1013ea4b
mov dword [0x1018612c], 0x6f
xor eax, eax
pop esi
ret
push esi
mov edx, esi
call fcn.1013e790
add esp, 4
test eax, eax
je 0x1013ea47
lea ecx, [esi + 4]
push ecx
mov edx, esi
call fcn.1013e790
add esp, 4
test eax, eax
je 0x1013ea47
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_fread]
push edi
xor edi, edi
cmp ecx, edi
je 0x1013ea8f
push 3
lea edx, [esp + 0x14]
push edx
push esi
call ecx
add esp, 0xc
jmp 0x1013eaa1
mov eax, dword [eax + 0x38]
push eax
push 3
lea ecx, [esp + 0x18]
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 3
je 0x1013eab6
pop edi
pop ebp
mov dword [0x1018612c], 0x66
xor eax, eax
pop esi
ret
mov dl, byte [esp + 0x10]
movzx eax, dl
mov ecx, eax
shr ecx, 4
and ecx, 7
inc ecx
mov dword [esi + 8], ecx
movzx ecx, byte [esp + 0x11]
and eax, 7
inc eax
push ebx
mov dword [esi + 0xc], ecx
test dl, dl
jns 0x1013eba8
mov ecx, eax
mov edx, 1
shl edx, cl
push edi
push edx
call fcn.101403d0
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, edi
jne 0x1013eb09
pop ebx
pop edi
pop ebp
mov dword [0x1018612c], 0x6d
xor eax, eax
pop esi
ret
xor ebx, ebx
cmp dword [eax], edi
jle 0x1013ebab
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x1013eb2c
push 3
lea eax, [esp + 0x18]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013eb3e
mov ecx, dword [eax + 0x38]
push ecx
push 3
lea edx, [esp + 0x1c]
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 3
jne 0x1013eb84
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
movzx edx, byte [esp + 0x14]
mov byte [edi + ecx], dl
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
movzx edx, byte [esp + 0x15]
mov byte [ecx + edi + 1], dl
mov eax, dword [esi + 0x10]
movzx edx, byte [esp + 0x16]
mov ecx, dword [eax + 8]
mov byte [ecx + edi + 2], dl
mov eax, dword [esi + 0x10]
inc ebx
add edi, 3
cmp ebx, dword [eax]
jl 0x1013eb13
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
ret
mov ecx, dword [esi + 0x10]
push ecx
call fcn.10140460
add esp, 4
pop ebx
pop edi
mov dword [esi + 0x10], 0
pop ebp
mov dword [0x1018612c], 0x66
xor eax, eax
pop esi
ret
mov dword [esi + 0x10], edi
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
ret
Function at 0x1013ee50
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
jne 0x1013ee6b
mov dword [0x1018612c], 0x6f
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x1013ee81
push 1
lea eax, [esp + 0xc]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013ee97
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x10]
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x1013eeaa
mov dword [0x1018612c], 0x66
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
push esi
mov dword [ecx], eax
call fcn.1013e630
add esp, 8
pop esi
ret

Function at 0x1013ef80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
push edi
push 0x3c
call esi
mov edi, eax
add esp, 4
test edi, edi
jne 0x1013efce
mov eax, dword [esp + 0x18]
push eax
mov dword [0x1018612c], 0x6d
call dword [sym.imp.MSVCR90.dll__close]
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101407ce
add esp, 0xc
ret
push 0x3c
push 0
push edi
call sub.MSVCR90.dll_memset
push 0x6148
call esi
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1013f01a
mov ecx, dword [esp + 0x18]
push ecx
mov dword [0x1018612c], 0x6d
call dword [sym.imp.MSVCR90.dll__close]
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101407ce
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push 0x8000
push ebx
call dword [sym.imp.MSVCR90.dll__setmode]
push 0x101435ac
push ebx
call dword [sym.imp.MSVCR90.dll__fdopen]
push 0x4000
push 0
mov ebp, eax
push 0
push ebp
call dword [sym.imp.MSVCR90.dll_setvbuf]
mov dword [edi + 0x38], esi
mov dword [esi + 4], ebx
xor ebx, ebx
mov dword [esi + 0x38], ebp
mov dword [esi], 8
mov dword [esi + 0x3c], ebx
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x34], ebx
mov eax, dword [ecx + 0x3c]
add esp, 0x20
cmp eax, ebx
je 0x1013f07d
push 6
lea edx, [esp + 0x14]
push edx
push edi
call eax
add esp, 0xc
jmp 0x1013f093
mov eax, dword [ecx + 0x38]
push eax
push 6
lea ecx, [esp + 0x18]
push 1
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 6
je 0x1013f0a4
mov dword [0x1018612c], 0x66
jmp 0x1013f0cb
push 3
lea edx, [esp + 0x14]
push edx
push str.GIFVER
mov byte [esp + 0x22], bl
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1013f0f6
mov dword [0x1018612c], 0x67
push ebp
call dword [sym.imp.MSVCR90.dll_fclose]
push esi
mov esi, dword [sym.imp.MSVCR90.dll_free]
call esi
push edi
call esi
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101407ce
add esp, 0xc
ret
push edi
call fcn.1013ea30
add esp, 4
test eax, eax
je 0x1013f0cb
mov ecx, dword [esp + 0x18]
pop ebp
mov dword [0x1018612c], ebx
pop ebx
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.101407ce
add esp, 0xc
ret
Function at 0x1013f640
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 1
jne 0x1013f65b
mov dword [0x1018612c], 0xa
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
test ecx, ecx
jne 0x1013f68f
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f680
push 1
lea eax, [esp + 0x18]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013f6c8
mov ecx, dword [eax + 0x38]
push ecx
push 1
push 1
lea edx, [esp + 0x20]
push edx
jmp 0x1013f6c3
mov byte [esp + 0xd], cl
mov cl, byte [esp + 0x14]
mov byte [esp + 0xc], 0x21
mov byte [esp + 0xe], cl
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f6b6
push 3
lea edx, [esp + 0x10]
push edx
push esi
call ecx
add esp, 0xc
jmp 0x1013f6c8
mov eax, dword [eax + 0x38]
push eax
push 3
push 1
lea ecx, [esp + 0x18]
push ecx
call edi
add esp, 0x10
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x40]
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x1013f6ea
mov eax, dword [esp + 0x18]
push edx
push eax
push esi
call ecx
add esp, 0xc
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x18]
push ecx
push edx
push 1
push eax
call edi
add esp, 0x10
pop edi
mov eax, 1
pop esi
ret

Function at 0x1013f710
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 1
jne 0x1013f72b
mov dword [0x1018612c], 0xa
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [esp + 0x14]
mov byte [esp + 0xc], bl
mov ecx, dword [eax + 0x40]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
test ecx, ecx
je 0x1013f751
push 1
lea eax, [esp + 0x14]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013f763
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x18]
push 1
push edx
call edi
add esp, 0x10
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f782
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
call ecx
add esp, 0xc
pop edi
pop ebx
mov eax, 1
pop esi
ret
mov ecx, dword [eax + 0x38]
mov edx, dword [esp + 0x1c]
push ecx
push ebx
push 1
push edx
call edi
add esp, 0x10
pop edi
pop ebx
mov eax, 1
pop esi
ret
Function at 0x1013f7a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 1
jne 0x1013f7bb
mov dword [0x1018612c], 0xa
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
test ebx, ebx
jle 0x1013f820
mov byte [esp + 0x10], bl
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f7e5
push 1
lea eax, [esp + 0x14]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013f7f7
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x18]
push 1
push edx
call edi
add esp, 0x10
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f80f
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013f820
mov ecx, dword [eax + 0x38]
mov edx, dword [esp + 0x1c]
push ecx
push ebx
push 1
push edx
call edi
add esp, 0x10
mov eax, dword [esi + 0x38]
mov byte [esp + 0x10], 0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f845
push 1
lea eax, [esp + 0x14]
push eax
push esi
call ecx
add esp, 0xc
pop edi
pop ebx
mov eax, 1
pop esi
ret
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x18]
push 1
push edx
call edi
add esp, 0x10
pop edi
pop ebx
mov eax, 1
pop esi
ret

Function at 0x1013f860
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 1
jne 0x1013f87b
mov dword [0x1018612c], 0xa
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
test ecx, ecx
jne 0x1013f8af
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f8a0
push 1
lea eax, [esp + 0x18]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013f8e8
mov ecx, dword [eax + 0x38]
push ecx
push 1
push 1
lea edx, [esp + 0x20]
push edx
jmp 0x1013f8e3
mov byte [esp + 0xd], cl
mov cl, byte [esp + 0x14]
mov byte [esp + 0xc], 0x21
mov byte [esp + 0xe], cl
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f8d6
push 3
lea edx, [esp + 0x10]
push edx
push esi
call ecx
add esp, 0xc
jmp 0x1013f8e8
mov eax, dword [eax + 0x38]
push eax
push 3
push 1
lea ecx, [esp + 0x18]
push ecx
call edi
add esp, 0x10
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x40]
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x1013f904
mov eax, dword [esp + 0x18]
push edx
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013f915
mov ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x18]
push ecx
push edx
push 1
push eax
call edi
add esp, 0x10
mov eax, dword [esi + 0x38]
mov byte [esp + 0xc], 0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013f939
push 1
lea edx, [esp + 0x10]
push edx
push esi
call ecx
add esp, 0xc
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [eax + 0x38]
push eax
push 1
lea ecx, [esp + 0x14]
push 1
push ecx
call edi
add esp, 0x10
pop edi
mov eax, 1
pop esi
ret
Function at 0x1013f960
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
jne 0x1013f971
pop esi
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [esi + 0x38]
test byte [edi], 1
jne 0x1013f98a
pop edi
pop esi
mov dword [0x1018612c], 0xa
xor eax, eax
pop ebx
ret
push ebp
mov ebp, dword [edi + 0x38]
mov byte [esp + 0x14], 0x3b
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x1013f9a9
push 1
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x1013f9bf
mov edx, dword [edi + 0x38]
push edx
push 1
lea eax, [esp + 0x1c]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x1013f9d2
push eax
call fcn.10140460
add esp, 4
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1013f9e5
push eax
call fcn.10140460
add esp, 4
mov dword [esi + 0x10], ebx
mov eax, dword [edi + 0x6144]
cmp eax, ebx
mov ebx, dword [sym.imp.MSVCR90.dll_free]
je 0x1013f9fb
push eax
call ebx
add esp, 4
push edi
call ebx
push esi
call ebx
add esp, 8
test ebp, ebp
je 0x1013fa27
push ebp
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
test eax, eax
je 0x1013fa27
pop ebp
pop edi
pop esi
mov dword [0x1018612c], 9
xor eax, eax
pop ebx
ret
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x1013fa40
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [edx + 0x38]
mov byte [esp], al
sar eax, 8
mov byte [esp + 1], al
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x1013fa6e
push 2
lea ecx, [esp + 4]
push ecx
push edx
call eax
xor ecx, ecx
add esp, 0xc
cmp eax, 2
sete cl
mov eax, ecx
pop ecx
ret
mov edx, dword [ecx + 0x38]
push edx
push 2
lea eax, [esp + 8]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov eax, ecx
pop ecx
ret

Function at 0x1013fa90
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
cmp ebx, 0x1000
jne 0x1013fb11
mov al, byte [esi]
mov ebx, dword [sym.imp.MSVCR90.dll_fwrite]
test al, al
je 0x1013fad8
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + 0x40]
test edx, edx
je 0x1013fabf
movzx eax, al
inc eax
push eax
push esi
push edi
call edx
add esp, 0xc
jmp 0x1013fad0
mov ecx, dword [ecx + 0x38]
movzx edx, al
push ecx
inc edx
push edx
push 1
push esi
call ebx
add esp, 0x10
movzx ecx, byte [esi]
inc ecx
cmp eax, ecx
jne 0x1013fb03
mov byte [esi], 0
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013faf0
push 1
push esi
push edi
call ecx
add esp, 0xc
jmp 0x1013fafe
mov edx, dword [eax + 0x38]
push edx
push 1
push 1
push esi
call ebx
add esp, 0x10
cmp eax, 1
je 0x1013fb56
mov dword [0x1018612c], 2
xor eax, eax
pop ebx
ret
cmp byte [esi], 0xff
jne 0x1013fb4e
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013fb2e
push 0x100
push esi
push edi
call ecx
add esp, 0xc
jmp 0x1013fb43
mov eax, dword [eax + 0x38]
push eax
push 0x100
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
movzx ecx, byte [esi]
inc ecx
cmp eax, ecx
jne 0x1013fb03
mov byte [esi], 0
inc byte [esi]
movzx edx, byte [esi]
mov byte [edx + esi], bl
mov eax, 1
pop ebx
ret
Function at 0x1013fb60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x38]
mov eax, ecx
mov dword [esp + 4], eax
mov eax, dword [eax]
test al, 2
je 0x1013fb84
mov dword [0x1018612c], 3
xor eax, eax
pop esi
pop ecx
ret
test al, 1
jne 0x1013fb97
mov dword [0x1018612c], 0xa
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [ecx + 0x40]
mov eax, str.GIF87a
push edi
lea edi, [eax + 1]
test edx, edx
je 0x1013fbc0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1013fba7
sub eax, edi
push eax
push str.GIF87a
push esi
call edx
add esp, 0xc
jmp 0x1013fbde
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1013fbc0
mov ecx, dword [ecx + 0x38]
push ecx
sub eax, edi
push eax
push 1
push str.GIF87a
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, str.GIF87a
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1013fbe6
sub ecx, edi
cmp eax, ecx
je 0x1013fc03
pop edi
mov dword [0x1018612c], 2
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esi], ebp
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
test edi, edi
je 0x1013fc4e
mov ecx, dword [edi + 8]
mov edx, dword [edi]
push ecx
push edx
call fcn.101403d0
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x1013fc55
pop ebp
pop ebx
pop edi
mov dword [0x1018612c], 7
pop esi
pop ecx
ret
mov dword [esi + 0x10], 0
mov edx, esi
mov eax, ebp
call fcn.1013fa40
mov eax, dword [esp + 0x20]
mov edx, esi
call fcn.1013fa40
test edi, edi
je 0x1013fc73
mov eax, dword [edi + 4]
dec eax
jmp 0x1013fc78
mov eax, 7
mov dl, byte [esp + 0x28]
dec bl
shl bl, 4
mov ecx, edi
neg ecx
sbb cl, cl
and cl, 0x80
or bl, cl
or bl, al
mov eax, dword [esi + 0x38]
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], 0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013fcb4
push 3
lea eax, [esp + 0x1c]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1013fcca
mov ecx, dword [eax + 0x38]
push ecx
push 3
lea edx, [esp + 0x20]
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
test edi, edi
je 0x1013fd2b
xor ebp, ebp
cmp dword [edi], ebp
jle 0x1013fd2b
xor ebx, ebx
mov eax, dword [edi + 8]
mov cl, byte [eax + ebx]
add eax, ebx
mov byte [esp + 0x18], cl
mov dl, byte [eax + 1]
mov byte [esp + 0x19], dl
mov al, byte [eax + 2]
mov byte [esp + 0x1a], al
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1013fd09
push 3
lea edx, [esp + 0x1c]
push edx
push esi
call ecx
add esp, 0xc
jmp 0x1013fd1f
mov eax, dword [eax + 0x38]
push eax
push 3
lea ecx, [esp + 0x20]
push 1
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 3
jne 0x1013fd3d
inc ebp
add ebx, eax
cmp ebp, dword [edi]
jl 0x1013fcd6
mov eax, dword [esp + 0x10]
or dword [eax], 2
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
pop ebp
pop ebx
pop edi
mov dword [0x1018612c], 2
xor eax, eax
pop esi
pop ecx
ret
Function at 0x1013fef0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [edi + 0x2c]
push ebx
push esi
mov esi, dword [edi + 0x38]
test eax, eax
jne 0x1013ff08
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1013ffba
mov ebx, dword [eax + 4]
cmp ebx, 2
jge 0x1013ff15
mov ebx, 2
mov byte [esp + 0xb], bl
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1013ff2f
push 1
lea ecx, [esp + 0xf]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x1013ff45
mov edx, dword [esi + 0x38]
push edx
push 1
lea eax, [esp + 0x13]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, ebx
mov eax, 1
shl eax, cl
lea ecx, [ebx + 1]
mov edx, 1
shl edx, cl
mov dword [esi + 0xc], eax
inc eax
mov dword [esi + 0x10], eax
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x6144]
push eax
mov byte [esi + 0x44], 0
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x24], 0x1001
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10140600
mov ecx, dword [esi + 0xc]
push ecx
mov eax, edi
call fcn.1013fe20
add esp, 8
test eax, eax
jne 0x1013ffb1
pop esi
mov dword [0x1018612c], 8
pop ebx
pop ecx
ret
pop esi
mov eax, 1
pop ebx
pop ecx
ret
pop esi
mov dword [0x1018612c], 5
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x101407ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10185cf0]
jne 0x101407d8
repz ret
jmp fcn.10140cdb

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401c90
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x419040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x108], eax
xor edi, edi
mov ebx, 0xd
xor ecx, ecx
nop word [eax + eax]
mov eax, ecx
mov byte [ebp + ecx - 0x104], cl
xor edx, edx
div ebx
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x208], al
inc ecx
cmp ecx, 0x100
jl 0x401cc0
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x208]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401d16
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jl 0x401cf0
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp + 0xc], ebx
jle 0x401da7
nop
inc esi
and esi, 0x800000ff
jns 0x401d51
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + esi - 0x104]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x401d6d
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + edi - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
mov ecx, dword [ebp - 0x108]
add eax, edx
movzx eax, al
movzx eax, byte [ebp + eax - 0x104]
xor byte [ecx + ebx], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x401d40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035f3
mov esp, ebp
pop ebp
ret

Function at 0x402050
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x419040]
xor eax, esp
mov dword [esp + 0x4c], eax
lea ecx, [esp]
mov dword [esp], 0xa
mov dword [esp + 4], 0
call fcn.00402c90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x1b7740
jb 0x4020c3
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
and eax, 0xfff00000
cmp dword [esp + 0x14], 0
ja 0x4020b4
jb 0x4020cd
cmp eax, 0xfa000000
jb 0x4020cd
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004035f3
mov esp, ebp
pop ebp
ret
mov ecx, 0x41a688
call fcn.00401f40
mov ecx, 0x41a6a0
call fcn.00401f40
int3