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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x4b89d3
mov edx, dword [eax + 0x3c]
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call edx
add esp, 0xc
jmp 0x4b89e8
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x14]
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 1
jne 0x4b8a3c
mov cl, byte [esp + 0xc]
test cl, cl
mov edx, dword [esp + 0x10]
jbe 0x4b8a4b
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov ecx, dword [esi + 0x38]
mov edx, dword [edx]
mov eax, dword [ecx + 0x3c]
add edx, 1
test eax, eax
je 0x4b8a1e
movzx ecx, byte [esp + 0xc]
push ecx
push edx
push esi
call eax
add esp, 0xc
jmp 0x4b8a33
mov eax, dword [ecx + 0x38]
movzx ecx, byte [esp + 0xc]
push eax
push ecx
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
movzx ecx, byte [esp + 0xc]
cmp eax, ecx
je 0x4b8a51
pop edi
mov dword [0x576afc], 0x66
xor eax, eax
pop esi
ret
mov dword [edx], 0
pop edi
mov eax, 1
pop esi
ret

Function at 0x4b8b00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4b8b1a
push 2
lea eax, [esp + 4]
push eax
push edx
call ecx
add esp, 0xc
jmp 0x4b8b2f
mov ecx, dword [eax + 0x38]
push ecx
push 2
lea edx, [esp + 8]
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 2
je 0x4b8b42
mov dword [0x576afc], 0x66
xor eax, eax
pop ecx
ret
mov ax, word [esp]
movzx ecx, ah
movzx edx, al
mov eax, dword [esp + 8]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov eax, 1
pop ecx
ret

Function at 0x4b8b60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x4b8b83
mov edx, dword [eax + 0x3c]
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call edx
add esp, 0xc
jmp 0x4b8b98
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x14]
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 1
jne 0x4b8bec
mov cl, byte [esp + 0xc]
test cl, cl
mov edx, dword [esp + 0x10]
jbe 0x4b8bfb
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov ecx, dword [esi + 0x38]
mov edx, dword [edx]
mov eax, dword [ecx + 0x3c]
add edx, 1
test eax, eax
je 0x4b8bce
movzx ecx, byte [esp + 0xc]
push ecx
push edx
push esi
call eax
add esp, 0xc
jmp 0x4b8be3
mov eax, dword [ecx + 0x38]
movzx ecx, byte [esp + 0xc]
push eax
push ecx
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
movzx ecx, byte [esp + 0xc]
cmp eax, ecx
je 0x4b8c0c
pop edi
mov dword [0x576afc], 0x66
xor eax, eax
pop esi
ret
mov dword [edx], 0
mov byte [edi + 0x44], 0
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4b8c20
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [eax + 0x38]
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
push edi
mov ecx, esi
je 0x4b8c42
push 1
lea edx, [esp + 0x13]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
add esp, 0xc
jmp 0x4b8c57
mov edx, dword [ecx + 0x38]
push edx
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.004c1e2a
add esp, 0x10
movzx ecx, byte [esp + 0xf]
mov eax, 1
shl eax, cl
mov dword [esi + 8], ecx
add ecx, 1
mov edx, 1
mov dword [esi + 0xc], eax
add eax, 1
mov dword [esi + 0x10], eax
add eax, 1
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 0x4b8ce0
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi], 0
push ebp
mov ebp, dword [esp + 8]
push edi
jne 0x4b8d70
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4b8d04
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x4b8d15
mov eax, dword [ecx + 0x38]
push eax
push 1
push 1
push esi
call fcn.004c1e2a
add esp, 0x10
cmp eax, 1
je 0x4b8d29
pop edi
mov dword [0x576afc], 0x66
xor eax, eax
pop ebp
ret
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
lea edi, [esi + 1]
je 0x4b8d43
movzx edx, byte [esi]
push edx
push edi
push ebx
call ecx
add esp, 0xc
jmp 0x4b8d56
mov eax, dword [eax + 0x38]
movzx ecx, byte [esi]
push eax
push ecx
push 1
push edi
call fcn.004c1e2a
add esp, 0x10
movzx edx, byte [esi]
cmp eax, edx
jne 0x4b8d1a
mov al, byte [edi]
mov byte [ebp], al
add byte [esi], 0xff
mov byte [edi], 2
pop edi
mov eax, 1
pop ebp
ret
movzx ecx, byte [esi + 1]
mov dl, byte [ecx + esi]
mov byte [ebp], dl
add byte [esi + 1], 1
add byte [esi], 0xff
pop edi
mov eax, 1
pop ebp
ret
Function at 0x4b8d90
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
jne 0x4b8dab
mov dword [0x576afc], 0x6f
xor eax, eax
pop esi
ret
push esi
mov edx, esi
call fcn.004b8b00
add esp, 4
test eax, eax
je 0x4b8da7
lea ecx, [esi + 4]
push ecx
mov edx, esi
call fcn.004b8b00
add esp, 4
test eax, eax
je 0x4b8da7
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4b8de5
push 3
lea edx, [esp + 0xc]
push edx
push esi
call ecx
add esp, 0xc
jmp 0x4b8dfa
mov eax, dword [eax + 0x38]
push eax
push 3
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 3
je 0x4b8e0d
mov dword [0x576afc], 0x66
xor eax, eax
pop esi
ret
mov dl, byte [esp + 8]
movzx eax, dl
mov ecx, eax
shr ecx, 4
and ecx, 7
add ecx, 1
mov dword [esi + 8], ecx
movzx ecx, byte [esp + 9]
and eax, 7
push ebx
add eax, 1
test dl, dl
push edi
mov dword [esi + 0xc], ecx
jns 0x4b8ecc
mov ecx, eax
mov edx, 1
shl edx, cl
push 0
push edx
call fcn.004b9f30
xor ebx, ebx
add esp, 8
mov dword [esi + 0x10], eax
cmp dword [eax], ebx
jle 0x4b8ecc
xor edi, edi
lea esp, [esp]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4b8e79
push 3
lea eax, [esp + 0x14]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4b8e8e
mov ecx, dword [eax + 0x38]
push ecx
push 3
lea edx, [esp + 0x18]
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 3
jne 0x4b8ed5
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
movzx edx, byte [esp + 0x10]
mov byte [edi + ecx], dl
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
movzx edx, byte [esp + 0x11]
mov byte [ecx + edi + 1], dl
mov eax, dword [esi + 0x10]
movzx edx, byte [esp + 0x12]
mov ecx, dword [eax + 8]
mov byte [ecx + edi + 2], dl
mov eax, dword [esi + 0x10]
add ebx, 1
add edi, 3
cmp ebx, dword [eax]
jl 0x4b8e60
pop edi
pop ebx
mov eax, 1
pop esi
ret
pop edi
pop ebx
mov dword [0x576afc], 0x66
xor eax, eax
pop esi
ret
Function at 0x4b9160
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
jne 0x4b917b
mov dword [0x576afc], 0x6f
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4b9191
push 1
lea eax, [esp + 0xc]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4b91a6
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x10]
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 1
je 0x4b91b9
mov dword [0x576afc], 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.004b89b0
add esp, 8
pop esi
ret

Function at 0x4b9420
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push 0x3c
call fcn.004c2308
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x4b945f
pop esi
mov dword [0x576afc], 0x6d
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c118f
add esp, 0xc
ret
push edi
push 0x3c
push ebx
push esi
call fcn.004c14b0
push 0x6148
call fcn.004c2308
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x4b94a3
push esi
mov dword [0x576afc], 0x6d
call fcn.004c21b6
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c118f
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x38], edi
mov dword [edi + 4], ebx
mov dword [edi + 0x38], ebx
mov dword [edi], 8
mov dword [edi + 0x3c], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0x3c]
cmp eax, ebx
je 0x4b94d9
push 6
lea edx, [esp + 0x10]
push edx
push esi
call eax
add esp, 0xc
jmp 0x4b94ee
mov eax, dword [ecx + 0x38]
push eax
push 6
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 6
je 0x4b94ff
mov dword [0x576afc], 0x66
jmp 0x4b9525
push 3
lea edx, [esp + 0x10]
push edx
push str.GIFVER
mov byte [esp + 0x1e], bl
call fcn.004c6a8c
add esp, 0xc
test eax, eax
je 0x4b9548
mov dword [0x576afc], 0x67
push edi
call fcn.004c21b6
push esi
call fcn.004c21b6
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c118f
add esp, 0xc
ret
push esi
call fcn.004b8d90
add esp, 4
test eax, eax
je 0x4b9525
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword [0x576afc], ebx
pop ebx
xor ecx, esp
call fcn.004c118f
add esp, 0xc
ret
Function at 0x4bde00
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 0x4bde1a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x4bdf2c
push ebp
jmp 0x4bde30
cmp ebx, 0x15b0
mov eax, ebx
jb 0x4bde3f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x4bdeeb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x4bde60
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 0x4bde60
test eax, eax
je 0x4bdeff
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x4bdef0
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 0x4bde30
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x4c118f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53bbf0]
jne 0x4c1199
repz ret
jmp fcn.004c935c
Function at 0x4c1b73
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4c1bb0
cmp dword [ebp + 0x14], edi
je 0x4c1bb0
cmp ecx, edi
jne 0x4c1bb7
call fcn.004caa1c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004ca9a4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4c1bcb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4c1bec
cmp ebx, 0xffffffff
je 0x4c1bdb
push ebx
push edi
push ecx
call fcn.004c14b0
add esp, 0xc
cmp esi, edi
je 0x4c1b98
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4c1b98
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4c1c08
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4c1c0f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4c1d00
test word [esi + 0xc], 0x10c
je 0x4c1c63
mov eax, dword [esi + 4]
test eax, eax
je 0x4c1c63
jl 0x4c1d61
cmp ebx, eax
mov edi, ebx
jb 0x4c1c34
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4c1d08
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004cd1c4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4c1cf8
cmp ebx, dword [ebp - 0xc]
jb 0x4c1cd0
cmp dword [ebp - 0xc], 0
je 0x4c1c8d
mov ecx, DirectSoundCreate
xor edx, edx
cmp ebx, ecx
jbe 0x4c1c82
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4c1c89
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4c1c98
mov eax, DirectSoundCreate
cmp ebx, eax
ja 0x4c1c98
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4c1d34
push eax
push dword [ebp - 8]
push esi
call fcn.004c200c
pop ecx
push eax
call fcn.004cd0c7
add esp, 0xc
test eax, eax
je 0x4c1d73
cmp eax, 0xffffffff
je 0x4c1d61
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4c1cf8
push esi
call fcn.004cc9e6
cmp eax, 0xffffffff
pop ecx
je 0x4c1d65
cmp dword [ebp - 4], 0
je 0x4c1d34
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4c1c17
mov eax, dword [ebp + 0x14]
jmp 0x4c1bb2
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4c1d1f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004c14b0
add esp, 0xc
call fcn.004caa1c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4c1ba8
cmp dword [ebp + 0xc], 0xffffffff
je 0x4c1d4a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004c14b0
add esp, 0xc
call fcn.004caa1c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4c1ba8
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4c1bb2
or dword [esi + 0xc], 0x10
jmp 0x4c1d65
Function at 0x4c4399
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4c43c6
call fcn.004caa2f
mov dword [eax], esi
call fcn.004caa1c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ca9a4
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4c43a2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c43f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004caa42
pop ecx
call fcn.004caa1c
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4c441c
test al, 1
je 0x4c441c
test byte [esp + 0xc], 2
je 0x4c441c
call fcn.004caa2f
mov dword [eax], 5
call fcn.004caa1c
mov dword [eax], 0xd
jmp 0x4c43ec
xor eax, eax
pop esi
ret

Function at 0x4c9949
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x53c028]
je 0x4c9964
inc edi
cmp edi, 0x17
jb 0x4c9955
cmp edi, 0x17
jae 0x4c9ae4
push ebp
push 3
call fcn.004deeea
cmp eax, 1
pop ecx
je 0x4c9ab0
push 3
call fcn.004deeea
test eax, eax
pop ecx
jne 0x4c9998
cmp dword [0x53bc98], 1
je 0x4c9ab0
cmp ebx, 0xfc
je 0x4c9ae3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x576ed8
push ebp
call fcn.004d61c9
add esp, 0xc
test eax, eax
je 0x4c99ce
push esi
push esi
push esi
push esi
push esi
call fcn.004ca870
add esp, 0x14
push 0x104
mov esi, 0x576ef1
push esi
push 0
mov byte [0x576ff5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c9a12
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004d61c9
add esp, 0xc
test eax, eax
je 0x4c9a12
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ca870
add esp, 0x14
push esi
call fcn.004d6330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c9a57
push esi
call fcn.004d6330
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5771ec
push 0x522dd4
sub ecx, eax
push ecx
push eax
call fcn.004dee37
add esp, 0x14
test eax, eax
je 0x4c9a57
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ca870
add esp, 0x14
jmp 0x4c9a59
xor esi, esi
push 0x522dd0
push ebx
push ebp
call fcn.004dedc6
add esp, 0xc
test eax, eax
je 0x4c9a79
push esi
push esi
push esi
push esi
push esi
call fcn.004ca870
add esp, 0x14
push dword [edi*8 + 0x53c02c]
push ebx
push ebp
call fcn.004dedc6
add esp, 0xc
test eax, eax
je 0x4c9a9b
push esi
push esi
push esi
push esi
push esi
call fcn.004ca870
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004dec09
add esp, 0xc
jmp 0x4c9ae3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4c9ae3
cmp ebp, 0xffffffff
je 0x4c9ae3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x53c02c]
push dword [esi]
call fcn.004d6330
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4dec09
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004c8cee
xor ebx, ebx
cmp dword [0x5775d8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4decdf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4dedbf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4dedbf
push eax
call fcn.004c8c80
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5775d8], eax
call esi
push eax
call fcn.004c8c80
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5775dc], eax
call esi
push eax
call fcn.004c8c80
mov dword [0x5775e0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004c2474
test eax, eax
pop ecx
pop ecx
je 0x4decad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ca870
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4decdf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004c8c80
cmp eax, ebx
pop ecx
mov dword [0x5775e8], eax
je 0x4decdf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c8c80
pop ecx
mov dword [0x5775e4], eax
mov eax, dword [0x5775e4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4ded64
cmp dword [0x5775e8], ecx
je 0x4ded64
push eax
call fcn.004c8cf7
push dword [0x5775e8]
mov esi, eax
call fcn.004c8cf7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4ded64
cmp edi, ebx
je 0x4ded64
call esi
cmp eax, ebx
je 0x4ded31
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ded31
test byte [ebp - 0x18], 1
jne 0x4ded64
lea eax, [ebp - 0x10]
push eax
call fcn.004c2523
test eax, eax
pop ecx
je 0x4ded4c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ca870
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4ded5b
or dword [ebp + 0x10], 0x200000
jmp 0x4ded9f
or dword [ebp + 0x10], 0x40000
jmp 0x4ded9f
mov eax, dword [0x5775dc]
cmp eax, dword [ebp - 8]
je 0x4ded9f
push eax
call fcn.004c8cf7
cmp eax, ebx
pop ecx
je 0x4ded9f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4ded9f
mov eax, dword [0x5775e0]
cmp eax, dword [ebp - 8]
je 0x4ded9f
push eax
call fcn.004c8cf7
cmp eax, ebx
pop ecx
je 0x4ded9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5775d8]
call fcn.004c8cf7
cmp eax, ebx
pop ecx
je 0x4dedbf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4dedc1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58d740
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x58d765
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x58d770
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x58d765
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x58d7b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x58d7ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x58d7ba
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x58d7a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0xb22fd0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b23120
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb22ff6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb22fe2
add dl, dl
jne 0xb23001
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb23054
xor eax, eax
add dl, dl
jne 0xb2300e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb230f5
add dl, dl
jne 0xb2301d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb23028
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb23033
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2303e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb2304a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb22fed
mov eax, 1
add dl, dl
jne 0xb23062
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2306d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb23059
sub eax, ebx
mov ebx, 1
jne 0xb230a0
mov ecx, 1
add dl, dl
jne 0xb23086
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb23091
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb2307d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb22fed
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb230b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb230c2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb230ae
cmp eax, 0x7d00
jae 0xb230e5
cmp eax, 0x500
jb 0xb230e0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb22fed
cmp eax, 0x7f
ja 0xb230e8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb22fed
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb23116
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb22fed
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10