joyce8/EMBER2024-capa huggingface dataset:
Function at 0x533020
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
lea esi, [ebx + ebp]
call edx
cmp esi, eax
ja 0x533091
mov ecx, dword [esp + 0x14]
call fcn.00534610
push 0
push esi
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x53309a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00534700
push eax
push str.CREATE_FILE_MAPPING_ERROR_diskFile_s__errno_lu_
push str.EL_MappedFile::Map
push 0x4f
push str..MappedFile.cpp
push 0xffffffffffffffff
push 0x200
call fcn.00534500
add esp, 0x20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
mov ecx, dword [0x6227c8]
call fcn.004ef4e0
mov ecx, dword [edi + 0x24]
mov esi, eax
dec esi
and esi, ebx
lea eax, [esi + ebp]
push eax
sub ebx, esi
push ebx
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x533100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00534700
push eax
push str.MAP_VIEW_OF_FILE_ERROR_diskFile_s__errno_lu_
push str.EL_MappedFile::Map
push 0x60
push str..MappedFile.cpp
push 0xffffffffffffffff
push 0x200
call fcn.00534500
add esp, 0x20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
add eax, esi
mov dword [edi + 0x18], ebp
mov dword [edi + 4], eax
mov dword [edi + 0x14], 0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
Function at 0x533520
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
or eax, 0xffffffff
push esi
cmp edx, 0x10
jb 0x5336a3
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 1]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 2]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 3]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 4]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 5]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 6]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 7]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 8]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 9]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 0xa]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 0xb]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 0xc]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 0xd]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 0xe]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
movzx esi, byte [ecx + 0xf]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
add ecx, 0x10
sub edx, 0x10
cmp edx, 0x10
jae 0x533535
test edx, edx
je 0x5336cb
jmp 0x5336b0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5f2c70]
inc ecx
sub edx, 1
jne 0x5336b0
not eax
pop esi
ret
Function at 0x534150
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x664], eax
mov eax, dword [esp + 0x66c]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x67c]
push eax
push 0x5a39ac
mov dword [esp + 0x18], eax
lea eax, [esp + 0x278]
push 0x200
push eax
call fcn.0041f040
mov ebp, 0x200
add esp, 0x10
sub ebp, eax
lea ebx, [esp + eax*2 + 0x270]
push 0x5bf124
mov edx, ebp
mov ecx, ebx
call fcn.0041efa0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x53420c
test edi, edi
je 0x5341f2
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 0x45
mov ecx, edi
mov dword [esp + 0x1c], str.NO_FILES
mov dword [esp + 0x24], 0
call fcn.00533ff0
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x664]
xor ecx, esp
call fcn.0050a9d0
add esp, 0x668
ret
push esi
lea ecx, [ecx]
cmp word [esp + 0x50], 0
lea esi, [esp + 0x50]
jne 0x534223
lea esi, [esp + 0x258]
push 1
push str...
push esi
call fcn.0041ee30
add esp, 0xc
test eax, eax
jne 0x53425b
push str...
push esi
call fcn.0041eda0
add esp, 8
test eax, eax
je 0x5342b4
push 0x5bf118
push esi
call fcn.0041eda0
add esp, 8
test eax, eax
je 0x5342b4
push esi
mov edx, ebp
mov ecx, ebx
call fcn.0041efa0
test byte [esp + 0x24], 0x10
je 0x53427f
lea ecx, [esp + 0x274]
push edi
push ecx
call fcn.00534150
add esp, 8
jmp 0x5342b4
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5342b4
test edi, edi
je 0x5342b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x278]
push eax
push str.DELETE_FILE_ERROR_filePath_s__errorCode_d_
push 0x45
push edi
call fcn.005340d0
add esp, 0x14
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x534210
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x534302
test edi, edi
je 0x534302
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.REMOVE_DIRECTORY_ERROR_dir_s__errorCode_d_
push 0x45
push edi
call fcn.005340d0
add esp, 0x14
mov ecx, dword [esp + 0x674]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0050a9d0
add esp, 0x668
ret

Function at 0x534670
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x534698
xor al, al
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5346a6
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esi + 0x28]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov al, 1
pop esi
ret 0xc
Function at 0x5346c0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x28]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5346e4
xor al, al
ret 0xc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5346f2
mov edx, dword [esp + 8]
mov dword [eax], edx
mov al, 1
ret 0xc

Function at 0x5347b0
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, ecx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5347c0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esi + 0xc]
call fcn.00402756
mov ebx, dword [esp + 0x14]
movsx eax, bl
and eax, 2
or eax, 0xfffffffc
xor ecx, ecx
shl eax, 0x1d
cmp ebx, 1
setne cl
push 0
push 0x80
add ecx, 3
push ecx
push 0
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x28], eax
cmp eax, 0xffffffff
jne 0x53481f
pop edi
mov dword [esi + 0x28], 0
pop esi
xor al, al
pop ebx
ret 8
push 0
push eax
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
mov dword [esi + 8], eax
pop esi
mov al, 1
pop ebx
ret 8

Function at 0x535370
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x568633
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.00535050
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x620444
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x5bbad0
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00536220
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x53eac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
cdq
and edx, 0xf
add eax, edx
sar eax, 4
test eax, eax
jle 0x53eb71
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
sub edi, ecx
mov esi, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
jmp 0x53eaf6
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
add edi, esi
mov ebp, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [edi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x53eb03
add ecx, 4
add edi, 4
dec ebp
jne 0x53eb01
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0053d930
add esp, 0xc
lea ebp, [esp + 0x20]
mov edx, 4
mov edi, dword [ebp]
xor eax, eax
mov ecx, 0x18
mov ebx, edi
sub ecx, eax
add eax, 8
shr ebx, cl
inc esi
cmp eax, 0x20
mov byte [esi - 1], bl
jl 0x53eb45
add ebp, 4
dec edx
jne 0x53eb40
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x53eaf2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x53eb80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x48]
mov dword [esp], 0x12345678
cdq
and edx, 0xf
mov dword [esp + 4], 0x56785678
add eax, edx
mov dword [esp + 8], 0x9abc5678
sar eax, 4
test eax, eax
mov dword [esp + 0xc], 0xdeff5678
jle 0x53ec65
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
sub esi, ecx
mov edi, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], eax
jmp 0x53ebd6
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x20]
add esi, edi
mov ebp, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [esi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x53ebe3
add ecx, 4
add esi, 4
dec ebp
jne 0x53ebe1
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0053d930
add esp, 0xc
xor esi, esi
mov eax, dword [esp + esi + 0x30]
mov ecx, dword [esp + esi + 0x10]
xor eax, ecx
mov ecx, dword [esp + esi + 0x20]
mov dword [esp + esi + 0x40], eax
mov ebp, eax
mov dword [esp + esi + 0x10], ecx
xor eax, eax
mov ecx, 0x18
mov edx, ebp
sub ecx, eax
add eax, 8
shr edx, cl
inc edi
cmp eax, 0x20
mov byte [edi - 1], dl
jl 0x53ec33
add esi, 4
cmp esi, 0x10
jl 0x53ec19
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0x58], eax
jne 0x53ebd2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x541540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 8], vtable.wxConvAuto.0
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
call fcn.00484310
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.004776d0
mov eax, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00484540
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00484350
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4

Function at 0x541600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x568ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 8], vtable.wxConvAuto.0
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
call fcn.00484310
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.004776d0
fld qword [esi + 0x10]
sub esp, 8
lea ecx, [esp + 0x20]
fstp qword [esp]
call fcn.00484670
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00484350
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4

Function at 0x5416f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 8], vtable.wxConvAuto.0
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
call fcn.00484310
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.004776d0
movzx eax, byte [esi + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.004845d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00484350
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
Function at 0x5417d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 8], vtable.wxConvAuto.0
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
call fcn.00484310
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.004776d0
movzx eax, word [esi + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00484710
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00484350
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4

Function at 0x541860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 8], vtable.wxConvAuto.0
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
call fcn.00484310
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.004776d0
add esi, 0xc
push esi
lea ecx, [esp + 0x1c]
call fcn.00484af0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00484350
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4

Function at 0x541c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568b18
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x576324]
mov esi, dword [esp + 0x50]
push eax
push 0
mov edi, ecx
push 0x57db98
lea ecx, [esp + 0x18]
call fcn.0045fb60
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], vtable.wxConvAuto.0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.004847c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.004776d0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x48], 4
cmp eax, 0xffffffff
je 0x541d1b
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x541d1b
call fcn.0045ea90
lea ecx, [esp + 0x24]
call fcn.00484cf0
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
lea ecx, [esp + 0x24]
fstp qword [edi + 0x10]
mov dword [esp + 0x48], 0xffffffff
call fcn.00484370
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0050a9d0
add esp, 0x40
ret 4
Function at 0x542160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x576324]
mov esi, dword [esp + 0x50]
push eax
push 0
mov edi, ecx
push 0x57db98
lea ecx, [esp + 0x18]
call fcn.0045fb60
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], vtable.wxConvAuto.0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.004847c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.004776d0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x48], 4
cmp eax, 0xffffffff
je 0x54220b
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x54220b
call fcn.0045ea90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.00484850
lea ecx, [edi + 0xc]
push eax
mov byte [esp + 0x4c], 5
call fcn.0045f4a0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x48], 4
cmp eax, 0xffffffff
je 0x542247
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x542247
call fcn.0045ea90
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00484370
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0050a9d0
add esp, 0x40
ret 4

Function at 0x542700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568be8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x576324]
push eax
push 0
push 0x57d774
lea ecx, [esp + 0x14]
call fcn.0045fb60
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.0047e3e0
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x30], 2
cmp eax, 0xffffffff
je 0x542779
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x542779
call fcn.0045ea90
lea ecx, [esp + 0xc]
call fcn.0047e1d0
test al, al
je 0x5427da
add esi, 0xc
lea esp, [esp]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
call fcn.0047e2b0
push 1
push eax
mov ecx, esi
mov byte [esp + 0x38], 3
call fcn.0045fec0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x30], 2
cmp eax, 0xffffffff
je 0x5427cd
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5427cd
call fcn.0045ea90
lea ecx, [esp + 0xc]
call fcn.0047e1d0
test al, al
jne 0x542790
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004a4cb0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
Function at 0x547510
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x5476ba
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x547568
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x54757b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x54758f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x5475d6.3
jmp 0x5475a0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x5475ac
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x5475b1
mov esi, 1
inc eax
cmp eax, edi
jl 0x5475a0
cmp si, cx
je case.0x5475d6.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x5475d6.3
movzx eax, byte [eax + 0x5476d4]
jmp dword [eax*4 + 0x5476c0]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x5475d6.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x5475f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x5475d6.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x547630
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x5475d6.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x547656
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x5475d6.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x547680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x54dfc0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x54e04a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x54dff6
test byte [esi + 0x230], 1
jne 0x54e01e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x54e01e
push str.Invalid_background_palette_index
push esi
call fcn.0054bdb0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0050a9d0
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push str.bKGD
push esi
mov byte [esp + 0x18], dl
call fcn.0054d1a0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0050a9d0
add esp, 0xc
ret
test al, 2
je 0x54e0de
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0054c1b0
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.0054c1b0
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0054c1b0
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x54e0b8
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x54e0b8
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push esi
call fcn.0054bdb0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0050a9d0
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push str.bKGD
push esi
call fcn.0054d1a0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0050a9d0
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x54e112
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.0054bdb0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0050a9d0
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0054c1b0
push 2
lea ecx, [esp + 0x14]
push ecx
push str.bKGD
push esi
call fcn.0054d1a0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.0050a9d0
add esp, 0xc
ret