joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4770c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x5289ec]
push ebx
push esi
push edi
push 0x800
mov dword [esp + 0x14], eax
call fcn.0048ac32
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4770ef
pop edi
pop esi
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x1c]
push str.nesrom.lst
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 5
push 0
push 0
lea edx, [esp + 0x30]
push 0x40000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x477185
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x30]
push 0x40000000
push eax
call edi
cmp eax, esi
mov dword [esp + 0xc], eax
jne 0x477181
push ebx
call fcn.0048ace4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov esi, dword [esp + 0xc]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
mov edi, str.NNNesterJ_r_n
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [0x5289c4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.NNNesterJ_r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ebp, ebp
jle 0x4772c3
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
lea edi, [edx + 0x20c]
mov eax, dword [edi]
test al, 1
je 0x4772ae
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
je 0x477210
mov ecx, dword [edi - 0x114]
lea edx, [edi + 4]
push edx
mov edx, dword [edi + 0x108]
push ecx
push edx
push eax
push str._08X__08X__08X__s_r_n
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4772ae
mov ecx, dword [edi + 0x108]
xor edx, edx
mov dl, byte [edi - 4]
push edx
push ecx
push eax
push str._08X__08X__08X_
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
mov al, byte [edi - 4]
add esp, 0x14
xor ebp, ebp
test al, al
jbe 0x477272
lea edx, [edi - 0x10c]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
lea edx, [esi + ebx]
mov ecx, dword [eax]
push ecx
push str._08X_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x24]
add esi, eax
xor eax, eax
add esp, 0xc
mov al, byte [edi - 4]
inc ebp
add edx, 4
cmp ebp, eax
mov dword [esp + 0x18], edx
jl 0x477242
mov al, byte [edi + 4]
lea ecx, [edi + 4]
test al, al
je 0x477288
mov byte [esi + ebx], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x47727c
mov edx, dword [esp + 0x10]
mov byte [esi + ebx], 0xd
inc esi
lea ecx, [esp + 0x1c]
push 0
push ecx
mov byte [esi + ebx], 0xa
inc esi
push esi
push ebx
push edx
mov byte [esi + ebx], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 0x318
dec eax
mov dword [esp + 0x14], eax
jne 0x4771c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0048ace4
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x478a70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x618
push ebx
push esi
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edx, dword [esp + 0x628]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0
push 0x80
push 4
push 0
push 0
lea edx, [esp + 0x30]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x478ae2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x618
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x62c]
test byte [ebx + 0x20c], 2
jne 0x478b6c
lea eax, [ebx + 0xe0]
lea ecx, [ebx + 0xd0]
push eax
lea edx, [ebx + 0xc0]
push ecx
lea eax, [ebx + 0x80]
push edx
mov edx, dword [ebx + 0x204]
lea ecx, [ebx + 0xf0]
push eax
mov eax, dword [ebx + 0x200]
push ecx
push edx
xor ecx, ecx
mov cl, byte [ebx + 0x209]
xor edx, edx
mov dl, byte [ebx + 0x208]
push eax
mov eax, dword [ebx + 0xfc]
push ecx
mov ecx, dword [ebx + 0xf8]
push edx
push ebx
push eax
push ecx
lea edx, [esp + 0x254]
push str._08x__08x__s__u__u__u__u__s__s__s__s__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x38
jmp 0x478c4a
xor edx, edx
lea eax, [esp + 0x224]
mov dl, byte [ebx + 0x208]
mov esi, edx
push esi
push str._____0_0_0_0__02x_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test esi, esi
jle 0x478bfc
push ebp
lea ebp, [ebx + 0x100]
mov dword [esp + 0x10], esi
mov ecx, dword [ebp]
lea edx, [esp + 0x124]
push ecx
push str._08x_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x130]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x228]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add ebp, 4
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jne 0x478b9c
pop ebp
push ebx
lea eax, [esp + 0x124]
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x224]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
xor eax, eax
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x618
ret
Function at 0x479260
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x348
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x350]
push esi
push edi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x479278
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0xc]
push 0x4a2ad8
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4792c6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x348
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x114], 0x10
jne 0x4792fa
lea ecx, [esp + 0x140]
lea edx, [esp + 0x254]
push ecx
push ebx
push edx
call edi
lea eax, [esp + 0x254]
push eax
call fcn.00479230
add esp, 4
call fcn.00472eb0
lea ecx, [esp + 0x114]
push ecx
push esi
call ebp
test eax, eax
je 0x479317
mov eax, dword [0x528a08]
test eax, eax
je 0x4792cd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x348
ret

Function at 0x479330
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea edx, [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x454]
push esi
push edi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47934b
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x14c]
push 0x4a2ad8
lea ecx, [esp + 0x150]
push eax
push ecx
call esi
lea edx, [esp + 0xc]
lea eax, [esp + 0x14c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47939f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x44c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x10], 0x10
jne 0x4793cc
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x254]
push ecx
push ebp
push edx
call esi
lea eax, [esp + 0x254]
push eax
call fcn.00479230
jmp 0x4793f0
cmp byte [esp + 0x3c], 0x2e
je 0x4793f3
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x358]
push ecx
push ebp
push edx
call esi
lea eax, [esp + 0x358]
push eax
call fcn.00479330
add esp, 4
call fcn.00472eb0
lea ecx, [esp + 0x10]
push ecx
push edi
call ebx
test eax, eax
je 0x47940d
mov eax, dword [0x528a08]
test eax, eax
je 0x4793a6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x44c
ret
Function at 0x47d960
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
mov edx, dword [0x52f6b4]
push ebp
mov ecx, dword [eax]
push esi
mov esi, dword [0x52f6b0]
push edi
mov edi, dword [eax + 0xc]
xor ecx, esi
mov esi, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x52f6bc]
xor ecx, edx
xor edi, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [0x52f6b8]
xor esi, ecx
xor ebp, ebp
mov eax, ebp
mov edx, edi
and eax, 3
xor ebx, ebx
shl edx, 0xb
mov ecx, dword [eax*4 + 0x52f6b0]
mov eax, edi
shr eax, 0x15
or eax, edx
mov dword [esp + 0x20], ecx
add eax, esi
xor edx, edx
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cl, byte [esp + 0x12]
mov dl, byte [ecx + 0x52ee60]
mov ecx, eax
shr ecx, 0x18
mov dh, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, ah
and eax, 0xff
shl edx, 8
mov bl, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, byte [eax + 0x52ee60]
or edx, ebx
mov ebx, dword [esp + 0x14]
mov eax, esi
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x20]
xor edx, ebx
xor ebx, ebx
mov dword [esp + 0x1c], edx
mov edx, esi
shr eax, 0xf
shl edx, 0x11
or eax, edx
xor edx, edx
xor eax, edi
mov dword [esp + 0x14], esi
add eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x1c]
mov cl, byte [esp + 0x12]
mov dl, byte [ecx + 0x52ee60]
mov ecx, eax
shr ecx, 0x18
mov dh, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, ah
and eax, 0xff
shl edx, 8
mov bl, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, byte [eax + 0x52ee60]
or edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], edi
shl edx, 8
or edx, ecx
xor edx, ebx
inc ebp
mov eax, edx
cmp ebp, 0x20
mov edi, eax
jl 0x47d99f
mov edx, dword [0x52f6b0]
mov ecx, dword [esp + 0x28]
mov ebp, esi
mov edi, dword [esp + 0x14]
xor edx, ebp
mov esi, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [0x52f6b4]
xor edx, eax
mov dword [esp + 0x28], ecx
mov dword [ecx + 4], edx
mov eax, dword [0x52f6b8]
xor eax, edi
pop edi
mov dword [ecx + 8], eax
mov edx, dword [0x52f6bc]
xor edx, esi
pop esi
pop ebp
pop ebx
mov dword [ecx + 0xc], edx
add esp, 0x14
jmp fcn.0047dc60
Function at 0x47dad0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
mov edx, dword [0x52f6b8]
push ebx
push ebp
mov ecx, dword [eax + 4]
mov ebp, dword [eax]
push esi
mov esi, dword [0x52f6b4]
push edi
mov edi, dword [0x52f6b0]
xor ecx, esi
mov esi, dword [eax + 8]
xor ebp, edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x52f6bc]
xor esi, edx
xor edi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x14], 0x1f
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x14]
mov edx, edi
and eax, 3
xor ebx, ebx
shl edx, 0xb
mov ecx, dword [eax*4 + 0x52f6b0]
mov eax, edi
shr eax, 0x15
or eax, edx
mov dword [esp + 0x20], ecx
add eax, esi
xor edx, edx
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cl, byte [esp + 0x12]
mov dl, byte [ecx + 0x52ee60]
mov ecx, eax
shr ecx, 0x18
mov dh, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, ah
and eax, 0xff
shl edx, 8
mov bl, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, byte [eax + 0x52ee60]
or edx, ebx
shl edx, 8
or edx, ecx
mov eax, esi
xor edx, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, esi
shr eax, 0xf
shl edx, 0x11
or eax, edx
xor ecx, ecx
xor eax, edi
xor edx, edx
add eax, ebp
xor ebx, ebx
mov dword [esp + 0x10], eax
mov ebp, esi
mov cl, byte [esp + 0x12]
mov esi, dword [esp + 0x1c]
mov dl, byte [ecx + 0x52ee60]
mov ecx, eax
shr ecx, 0x18
mov dh, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, ah
and eax, 0xff
shl edx, 8
mov bl, byte [ecx + 0x52ee60]
xor ecx, ecx
mov cl, byte [eax + 0x52ee60]
or edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], edi
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x14]
xor edx, ebx
dec ecx
mov eax, edx
mov dword [esp + 0x14], ecx
mov edi, eax
jns 0x47db2d
mov edx, dword [0x52f6b0]
mov ecx, esi
xor edx, ecx
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [0x52f6b4]
xor edx, eax
mov dword [ecx + 4], edx
mov eax, dword [0x52f6b8]
xor eax, ebp
mov dword [ecx + 8], eax
mov edx, dword [0x52f6bc]
lea eax, [esp + 0x24]
xor edx, esi
push eax
mov dword [ecx + 0xc], edx
call fcn.0047dc60
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x47dc60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [0x52f6bc]
or edx, 0xffffffff
push esi
mov esi, dword [0x52f6b4]
push edi
mov edi, dword [0x52f6b8]
lea eax, [ecx + 1]
sub edx, ecx
mov ecx, dword [0x52f6b0]
xor ebx, ebx
mov bl, byte [eax - 1]
add eax, 4
xor ecx, dword [ebx*4 + 0x52d740]
xor ebx, ebx
mov dword [0x52f6b0], ecx
mov bl, byte [eax - 4]
xor esi, dword [ebx*4 + 0x52d740]
xor ebx, ebx
mov dword [0x52f6b4], esi
mov bl, byte [eax - 3]
xor edi, dword [ebx*4 + 0x52d740]
xor ebx, ebx
mov dword [0x52f6b8], edi
mov bl, byte [eax - 2]
xor ebp, dword [ebx*4 + 0x52d740]
lea ebx, [edx + eax]
cmp ebx, 0x10
mov dword [0x52f6bc], ebp
jl 0x47dc88
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47de40
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0xffffffffffffffff
call fcn.0047df40
mov word [0x52af70], ax
xor ecx, ecx
shr eax, 0x10
mov word [0x52af72], ax
mov word [0x52af76], cx
mov word [0x52af74], cx
mov byte [0x52f6a6], cl
mov byte [0x52f6a5], cl
mov byte [0x52f6a4], cl
mov al, byte [esi]
add esp, 0xc
cmp al, cl
mov byte [esp + 0xc], al
je 0x47df0a
push ebx
mov dl, byte [0x52f6a4]
mov bl, byte [0x52f6a5]
add dl, al
add cl, al
mov byte [0x52f6a4], dl
mov dl, cl
shr dl, 7
add cl, cl
xor bl, al
or cl, dl
mov edx, dword [esp + 0x10]
movzx ax, al
and edx, 0xff
mov byte [0x52f6a5], bl
mov ebx, dword [0x52af74]
mov edi, eax
lea edx, [edx*4 + 0x52d740]
xor edi, ebx
mov byte [0x52f6a6], cl
xor di, word [edx]
mov dx, word [edx + 2]
add dx, ax
add word [0x52af76], dx
inc esi
mov word [0x52af74], di
mov al, byte [esi]
test al, al
mov byte [esp + 0x10], al
jne 0x47de9a
pop ebx
pop edi
pop esi
ret

Function at 0x47df40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
jbe 0x47df77
push ebx
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x52d740]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x47df55
pop edi
pop ebx
pop esi
ret
Function at 0x480d40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x480d4b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x480e4e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x49ad68]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49ad68]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49ad68]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49ad68]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49ad68]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49ad68]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49ad68]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x49ad68]
xor eax, edx
inc ecx
dec edi
jne 0x480d66
pop edi
test esi, esi
je 0x480e70
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x49ad68]
xor eax, edx
inc ecx
dec esi
jne 0x480e52
pop esi
pop ebx
not eax
ret

Function at 0x483340
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
jne 0x483393
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
xor dx, dx
mov al, byte [eax]
mov dl, al
cmp dx, word [ecx + 0x118]
jbe 0x483376
push str.Invalid_background_palette_index
push ecx
call fcn.00484e20
add esp, 8
add esp, 8
ret
mov byte [esp], al
lea eax, [esp]
push 1
push eax
push str.bKGD
push ecx
call fcn.00482210
add esp, 0x10
add esp, 8
ret
test al, 2
lea edx, [esp]
je 0x4833ed
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [esi + 2]
push ecx
push edx
call fcn.004821f0
xor eax, eax
lea ecx, [esp + 0xe]
mov ax, word [esi + 4]
push eax
push ecx
call fcn.004821f0
xor edx, edx
lea eax, [esp + 0x18]
mov dx, word [esi + 6]
push edx
push eax
call fcn.004821f0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push 6
push ecx
push str.bKGD
push edx
call fcn.00482210
add esp, 0x28
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [ecx + 8]
push eax
push edx
call fcn.004821f0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 2
push eax
push str.bKGD
push ecx
call fcn.00482210
add esp, 0x18
add esp, 8
ret
Function at 0x4903fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c1d0
push 0x492194
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x52ac64]
test eax, eax
je 0x490444
mov dword [ebp - 4], 1
call eax
jmp 0x490440
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x49044d
jmp 0x493f20
push 0xa
call fcn.004922a5
push 0x16
call fcn.00495495
pop ecx
pop ecx
push 3
call fcn.00490c64

Function at 0x490452
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c1e8
push 0x492194
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.004903fc]
test eax, eax
je 0x49049a
mov dword [ebp - 4], 1
call eax
jmp 0x490496
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x4904a3
jmp fcn.004903fc

Function at 0x4922a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4aa410
cmp edx, dword [eax]
je 0x4922c7
add eax, 8
inc ecx
cmp eax, 0x4aa4a0
jl 0x4922b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4aa410]
jne 0x4923f5
mov eax, dword [0x52ac0c]
cmp eax, 1
je 0x4923cf
test eax, eax
jne 0x4922f8
cmp dword [0x4a7cc4], 1
je 0x4923cf
cmp edx, 0xfc
je 0x4923f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49232f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0048bf50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0048c740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x492372
lea eax, [ebp - 0x1a4]
push eax
call fcn.0048c740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x49c568
push edi
call fcn.0048b810
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0048bf50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0048bf60
lea eax, [ebp - 0xa0]
push 0x49c548
push eax
call fcn.0048bf60
push dword [esi + 0x4aa414]
lea eax, [ebp - 0xa0]
push eax
call fcn.0048bf60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00494b07
add esp, 0x2c
pop edi
jmp 0x4923f5
lea eax, [ebp + 8]
lea esi, [esi + 0x4aa414]
push 0
push eax
push dword [esi]
call fcn.0048c740
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10002840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10002872
jl 0x10002865
test ecx, ecx
jne 0x10002872
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10002932
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100041c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100028de
jg 0x1000289d
test esi, esi
je 0x100028de
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x100028b5
mov eax, dword [esp + 0x10]
jl 0x100028af
cmp eax, esi
jae 0x100028b5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10007600
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x100028ff
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000291b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10002884
jl 0x1000291b
test ecx, ecx
jne 0x10002884
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10002976
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10002976
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10007600
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x100029e7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000299c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x100029d2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000bf88
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x100029e7
cmp edi, eax
ja 0x100029b0
test edi, edi
je 0x100029e7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000bf88
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc