joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503dd0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa238
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x703600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x503e05
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x503e09
xor eax, eax
jmp 0x503e5e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00427d30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00427e10
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0x503e70
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402610
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x50fa40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x50fac3
mov dword [ebp - 8], 0
mov byte [ebp - 0xc], 0
xor edx, edx
mov byte [ebp - 0xb], dl
push 0
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jne 0x50faae
movzx ecx, byte [ebp - 0xc]
cmp ecx, 0xff
jne 0x50faae
movzx edx, byte [ebp - 0xb]
cmp edx, 0xfe
jne 0x50faae
jmp 0x50fac3
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esp, ebp
pop ebp
ret
Function at 0x50fad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0xffffffff
jne 0x50fb86
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov byte [ebp - 0xf], cl
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
jne 0x50fb3d
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
jmp 0x50fb71
cmp dword [ebp - 4], 2
jne 0x50fb67
movzx ecx, byte [ebp - 0x10]
cmp ecx, 0xff
jne 0x50fb67
movzx edx, byte [ebp - 0xf]
cmp edx, 0xfe
jne 0x50fb67
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
jmp 0x50fb71
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x521020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x521029
xor ecx, ecx
jne 0x521029
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x521070
mov eax, dword [ebp - 0xc]
jmp 0x5210cd
cmp dword [ebp - 4], 1
je 0x521083
cmp dword [ebp - 4], 2
je 0x521083
mov eax, 0xd
jmp 0x5210cd
cmp dword [ebp + 0xc], 0
je 0x5210c1
cmp dword [ebp - 8], 0
je 0x5210b9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x5210b0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x5210b7
mov eax, 0xd
jmp 0x5210cd
jmp 0x5210c1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x532560
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x42444c7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + 8], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 0xd
mov edx, dword [ebp + 8]
sub edx, ecx
mov eax, dword [ebp - 8]
mov dword [eax + 9], edx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0xd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esp, ebp
pop ebp
ret 8

Function at 0x539e80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427f20
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00427fb0
mov esp, ebp
pop ebp
ret 4

Function at 0x53a140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x53a154
xor eax, eax
jmp 0x53a16f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00565624
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x53a180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x53a194
xor eax, eax
jmp 0x53a1af
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00565aa4
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x54127f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x5412a3
cmp dword [edi + 0x54], 0
jne 0x5412a3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0054c692
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00541240
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x546da5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x546dec
call fcn.0054c692
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x546dec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x546e08
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0054691d
mov esi, eax
test edi, edi
je 0x546e06
test ebx, ebx
je 0x546e06
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x547c54
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5ad7c4
call fcn.00568f0e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x547c79
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x547cbf
lea ecx, [ebp - 0x10]
call fcn.00428110
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005474bf
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040dab0
mov eax, esi
call fcn.00568fe6
ret 8

Function at 0x54b372
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x54b3ba
call fcn.0054c692
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x54b3ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x54b3fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x54b3e6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x54b3e6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x54b3fa
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x55f617
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x703600]
jne 0x55f621
repz ret
jmp fcn.0056bfdc

Function at 0x57ac69
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x57ac9a
call fcn.00565d87
mov dword [eax], esi
call fcn.00565d74
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00560034
add esp, 0x14
push 0x16
pop eax
jmp 0x57acef
test dword [ebp + 0xc], 0xfffffff9
jne 0x57ac76
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x57acc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00565d9a
pop ecx
call fcn.00565d74
mov eax, dword [eax]
jmp 0x57acef
test al, 0x10
jne 0x57aced
test al, 1
je 0x57aced
test byte [ebp + 0xc], 2
je 0x57aced
call fcn.00565d87
mov dword [eax], 5
call fcn.00565d74
mov dword [eax], 0xd
jmp 0x57acbe
xor eax, eax
pop esi
pop ebp
ret

Function at 0x57eb20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0056ac45
and dword [ebp - 4], 0
cmp dword [0x760cb4], 0
mov ebx, eax
jne 0x57ebd1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x57ec82
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6da3d8
push edi
call esi
test eax, eax
je 0x57ec82
push eax
call fcn.0056abd3
mov dword [esp], 0x6da3c8
push edi
mov dword [0x760cb4], eax
call esi
push eax
call fcn.0056abd3
mov dword [esp], 0x6da3b4
push edi
mov dword [0x760cb8], eax
call esi
push eax
call fcn.0056abd3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x760cbc], eax
call esi
push eax
call fcn.0056abd3
pop ecx
mov dword [0x760cc4], eax
test eax, eax
je 0x57ebd1
push 0x6da380
push edi
call esi
push eax
call fcn.0056abd3
pop ecx
mov dword [0x760cc0], eax
mov eax, dword [0x760cc0]
cmp eax, ebx
je 0x57ec29
cmp dword [0x760cc4], ebx
je 0x57ec29
push eax
call fcn.0056ac4e
push dword [0x760cc4]
mov esi, eax
call fcn.0056ac4e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x57ec29
test edi, edi
je 0x57ec29
call esi
test eax, eax
je 0x57ec20
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x57ec20
test byte [ebp - 0xc], 1
jne 0x57ec29
or dword [ebp + 0x10], 0x200000
jmp 0x57ec62
mov eax, dword [0x760cb8]
cmp eax, ebx
je 0x57ec62
push eax
call fcn.0056ac4e
pop ecx
test eax, eax
je 0x57ec62
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x57ec62
mov eax, dword [0x760cbc]
cmp eax, ebx
je 0x57ec62
push eax
call fcn.0056ac4e
pop ecx
test eax, eax
je 0x57ec62
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x760cb4]
call fcn.0056ac4e
pop ecx
test eax, eax
je 0x57ec82
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x57ec84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58da80
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 0x58dc2a
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 0x58dad8
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 0x58daeb
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 0x58daff
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.0x58db46.3
jmp 0x58db10
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x58db1c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x58db21
mov esi, 1
inc eax
cmp eax, edi
jl 0x58db10
cmp si, cx
je case.0x58db46.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x58db46.3
movzx eax, byte [eax + 0x58dc44]
jmp dword [eax*4 + 0x58dc30]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x58db46.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x58db60
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.0x58db46.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 0x58dba0
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.0x58db46.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 0x58dbc6
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.0x58db46.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 0x58dbf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x593cf0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x703600]
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 0x593d7a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x593d26
test byte [esi + 0x230], 1
jne 0x593d4e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x593d4e
push str.Invalid_background_palette_index
push esi
call fcn.005872f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0055f617
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.00592ed0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0055f617
add esp, 0xc
ret
test al, 2
je 0x593e0e
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00591ee0
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.00591ee0
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00591ee0
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x593de8
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x593de8
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push esi
call fcn.005872f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0055f617
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push str.bKGD
push esi
call fcn.00592ed0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0055f617
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x593e42
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.005872f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0055f617
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00591ee0
push 2
lea ecx, [esp + 0x14]
push ecx
push str.bKGD
push esi
call fcn.00592ed0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.0055f617
add esp, 0xc
ret
Function at 0x5977c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x24]
push ebp
push esi
mov ebp, dword [edi + 0x34]
sub ebp, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x59783e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00560070
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x597811
sub eax, ebx
jmp 0x597813
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x597802
mov ecx, dword [edi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x597832
sub eax, ebx
jmp 0x597834
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x597823
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x597899
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x64]
mov ecx, ebp
add edx, dword [edi + 0x30]
push edx
call fcn.005974c0
add dword [edi + 0x6c], eax
mov edx, dword [edi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x597885
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp edx, 0x106
jae 0x597899
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x5977c6
pop esi
pop ebp
pop ebx
ret
Function at 0x598cf0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x598d0a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x598e1a
push ebp
jmp 0x598d20
mov eax, ebx
cmp ebx, 0x15b0
jb 0x598d2f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x598ddb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x598d50
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x598d50
test eax, eax
je 0x598ded
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x598de0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x598d20
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x43e950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
jmp 0x43e96a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43e971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43e960
mov eax, 1
add ebx, ebx
jne 0x43e983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43e978
jne 0x43e994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43e978
xor ecx, ecx
sub eax, 3
jb 0x43e9a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43ea1a
mov ebp, eax
add ebx, ebx
jne 0x43e9b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43e9c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43e9e4
inc ecx
add ebx, ebx
jne 0x43e9d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43e9c5
jne 0x43e9e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43e9c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43ea04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43e9f5
jmp 0x43e966
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43ea04
add edi, ecx
jmp 0x43e966
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43ea22
cmp byte [edi], 0x12
jne 0x43ea22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43ea27
lea edi, [esi + 0x3c000]
mov eax, dword [edi]
or eax, eax
je 0x43ea9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x57eb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x57f98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ea54
mov ecx, edi
jns 0x43ea83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x57fa0]
or eax, eax
je 0x43ea99
mov dword [ebx], eax
add ebx, 4
jmp 0x43ea71
call dword [esi + 0x57f9c]
mov ebp, dword [esi + 0x57fa4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43ead3
sub esp, 0xffffff80
jmp 0x41942f