joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4952a0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x545190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebp, ecx
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov ecx, 0x599b30
push eax
mov dword [esp + 0x30], 1
call fcn.00465c50
mov dword [esp + 0x24], eax
mov eax, dword [0x596a5c]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x1dc]
push ebx
push ebx
push 0x1004
push ecx
mov byte [esp + 0x6c], 2
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x49546b
push esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
test eax, eax
mov edi, 0x599360
jne 0x49533a
mov esi, edi
jmp 0x4953c6
push ebx
lea ecx, [ebp + 0x1c0]
call fcn.0051752a
mov edx, dword [0x59a49c]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + 0x1c]
mov esi, dword [edx - 8]
lea ecx, [eax + 0x1c]
test esi, esi
je 0x49538b
push ecx
lea eax, [esp + 0x28]
push 0x58c224
push eax
call fcn.00519cc3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.00519af3
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
call fcn.00519a06
jmp 0x4953c2
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [eax]
neg edx
lea ecx, [eax + 8]
mov eax, dword [esp + 0x34]
sbb edx, edx
push ecx
and edx, eax
mov ecx, 0x599b30
push edx
call fcn.00466060
test eax, eax
jne 0x4953be
mov esi, dword [0x59a494]
jmp 0x4953c6
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1dc]
lea eax, [esp + 0x30]
push eax
push 0
push 0x1006
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], 2
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xd
push esi
call fcn.005042d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x49540d
push 0xa
push esi
call fcn.005042d0
mov edi, eax
add esp, 8
test edi, edi
je 0x495438
mov dl, byte [edi]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17], dl
mov byte [edi], 0
call fcn.00519b43
mov al, byte [esp + 0x13]
push 0x58f788
lea ecx, [esp + 0x1c]
mov byte [edi], al
call fcn.00519d96
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 0x1dc]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], 3
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
inc ebx
cmp ebx, eax
jl 0x495322
pop esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 1
call fcn.00519a06
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 0
call fcn.00519a06
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00519a06
mov ecx, dword [esp + 0x54]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x495b40
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x68]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x495bb3
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
mov edi, dword [0x58f790]
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
xor eax, eax
test ecx, ecx
jle 0x495bb3
test byte [edx + 0x27], 0x20
jne 0x495b88
add edx, 0x28
inc eax
cmp eax, ecx
jl 0x495b76
pop edi
pop esi
pop ebx
ret
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
add ecx, esi
push eax
push ecx
call fcn.004de840
mov edx, dword [ebx + 0x764]
add esp, 8
cmp eax, dword [edi + edx*4]
jmp 0x495bb3
pop edi
pop esi
pop ebx
ret
Function at 0x4af470
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x546b80
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 4]
lea edx, [esp + 0xc]
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x30]
push edi
mov ebp, ecx
push 0
push eax
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push 0
push ebx
mov ecx, ebp
call fcn.0047e8a0
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4af640
cmp esi, 0xd
mov dword [esp + 0x10], 0
jne 0x4af5b9
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
mov eax, dword [ecx + 0x64]
test eax, eax
jne 0x4af4e6
xor eax, eax
jmp 0x4af4e9
mov eax, dword [ecx + 0x5c]
mov edx, dword [esp + 0x18]
mov esi, dword [eax + edx*4]
mov eax, dword [ecx + 0xc8]
test eax, eax
jne 0x4af4fe
xor eax, eax
jmp 0x4af504
mov eax, dword [ecx + 0xc0]
lea edi, [eax + esi]
push edi
call fcn.004cd2f0
test al, 1
je 0x4af640
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4af52d
lea ecx, [edi + 1]
call fcn.004ca3b0
test eax, eax
je 0x4af640
mov eax, dword [0x596a5c]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
push ecx
push esi
mov ecx, ebx
call fcn.004cb770
mov eax, dword [esp + 0x3c]
mov edi, 1
cmp eax, edi
jne 0x4af579
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push edi
push edx
push esi
push ebx
push eax
call fcn.004afa80
add esp, 0x28
jmp 0x4af5a2
mov ecx, dword [esp + 0x34]
push edi
push 0
push 0
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push esi
push ebx
push edx
call fcn.004af2e0
add esp, 0x34
test eax, eax
je 0x4af5a6
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00519a06
jmp 0x4af62f
mov eax, dword [0x596a5c]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x38]
push 0
push 0
lea ecx, [esp + 0x48]
push 1
push ecx
push edi
push ebx
mov ecx, ebp
mov dword [esp + 0x44], 1
call fcn.004b0be0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
push esi
mov ecx, ebp
call fcn.00496fb0
mov ecx, dword [ebp + 0x5c]
push eax
call fcn.004af660
test eax, eax
je 0x4af619
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00519a06
mov edi, 1
cmp dword [esp + 0x10], edi
jne 0x4af640
push 0
push 0
mov ecx, ebp
call fcn.004a9910
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x4b5b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x547290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
push edi
mov eax, dword [esi]
add esi, 4
mov edi, dword [ecx]
mov dword [esp + 0xc], eax
mov cl, byte [eax]
mov dword [esp + 0x34], esi
cmp cl, 0x2e
je 0x4b5be1
push 0x6a
push eax
push 0xffffffffffffffff
push edi
call fcn.004b56a0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004b5260
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je case.0x4b5c07.0
mov ebp, dword [edi + 0xc8]
inc eax
cmp eax, 0xb
ja case.0x4b5c07.0
jmp dword [eax*4 + 0x4b5d44]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0x70
push ecx
push edx
jmp 0x4b5d08
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 0x6b
push eax
push ecx
jmp 0x4b5d08
push 0x6c
jmp 0x4b5cfe
push 0x6d
lea ecx, [edi + 0xb8]
call fcn.004736e0
xor eax, eax
mov ecx, 0x58fb1c
cmp dword [ecx], 3
je 0x4b5c61
add ecx, 0xc
inc eax
cmp ecx, 0x58fbe8
jl 0x4b5c4b
jmp 0x4b5d11
lea esi, [eax + eax*2]
shl esi, 2
mov ecx, dword [esi + 0x58fb18]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00519a74
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], 0
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00519c4f
mov eax, dword [eax]
mov ecx, dword [esi + 0x58fb20]
push 0x6e
push eax
push ecx
push edi
mov byte [esp + 0x3c], 1
call fcn.004b56a0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.00519a06
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00519a06
mov esi, dword [esp + 0x34]
jmp 0x4b5d11
test ebp, ebp
jle 0x4b5cfc
mov eax, dword [edi + 0xc8]
lea ecx, [edi + 0xb8]
test eax, eax
jne 0x4b5ce6
xor eax, eax
jmp 0x4b5ce9
mov eax, dword [ecx + 8]
mov al, byte [eax + ebp - 1]
cmp al, 0x6d
je 0x4b5cfc
cmp al, 0x53
je 0x4b5cfc
push 0x6d
call fcn.004736e0
push 0x6e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
push edi
call fcn.004b56a0
add esp, 0x10
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push esi
push ebp
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004b5770
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x4c6170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x547800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov edi, dword [esi + 0x1c]
call fcn.004733a0
mov dword [esp + 0x24], edi
xor edi, edi
mov dword [esp + 8], 0x54d7d4
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x3c]
push 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], edi
call fcn.004c64b0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
push ecx
lea edx, [esp + 0xc]
push edi
push edx
push eax
mov ecx, esi
call fcn.004c6220
mov dword [esp + 8], 0x54d7d4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
mov dword [esp + 0xc], edi
call fcn.004735a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], 0x54d7d0
call fcn.004735a0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x4c79f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5478e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.004733a0
mov eax, dword [esp + 0x40]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x28], 0
call fcn.004736a0
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call fcn.00473710
mov edx, dword [esp + 0x34]
lea ecx, [esp + 8]
push edx
call fcn.00473710
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4c7a62
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4c7a62
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00473c60
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov eax, ecx
neg eax
sbb eax, eax
push edi
and eax, edx
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xc]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 8], 0x54d7d0
call fcn.004735a0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x4c7c80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x547908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.004733a0
lea eax, [esp + 0x38]
push 4
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.00473c60
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0xc]
call fcn.004736a0
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4c7ce9
push edi
call fcn.004c9970
add esp, 4
lea ecx, [esp + 8]
push eax
push edi
call fcn.00473c60
jmp 0x4c7cf4
push 0
lea ecx, [esp + 0xc]
call fcn.004736e0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 8]
push edx
call fcn.00473710
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push eax
call fcn.00473710
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov eax, ecx
neg eax
sbb eax, eax
push edi
and eax, edx
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xc]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 8], 0x54d7d0
call fcn.004735a0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18

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

Disassembly:
push 0xffffffffffffffff
push 0x547a64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], 3
test eax, eax
je 0x4c8f76
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi + 0x34]
call fcn.00519a06
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 2
call fcn.00519a06
lea eax, [esi + 0x10]
mov dword [esp + 0xc], eax
mov dword [eax], fcn.004d2d00
lea edi, [eax + 8]
mov byte [esp + 0x18], 4
mov ecx, edi
mov dword [eax + 4], 0
call fcn.004735a0
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [edi], 0x54d7d0
call fcn.004735a0
lea ecx, [esi + 4]
mov byte [esp + 0x18], 0
call fcn.00519a06
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00519a06
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cf9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x547f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x64]
mov dword [esp], ecx
push ebx
push ebp
mov ecx, dword [eax + 0x18]
push esi
mov esi, dword [eax + 4]
push edi
test ecx, ecx
jne 0x4cfa22
xor edi, edi
jmp 0x4cfa25
mov edi, dword [eax + 0x10]
lea ebp, [edi + esi*4]
lea ecx, [esp + 0x50]
lea ebx, [ebp + esi*4]
lea eax, [ebx + esi*4]
mov dword [esp + 0x74], eax
call fcn.004733a0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0
call fcn.004733a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call fcn.004733a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.004733a0
test esi, esi
mov byte [esp + 0x6c], 3
jle 0x4cfadd
sub ebp, edi
sub ebx, edi
mov ecx, dword [esp + 0x78]
mov edx, dword [edi]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4cfad7
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4cfad7
shr eax, 2
push edx
push eax
push ecx
call fcn.004743b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cfad7
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x54]
call fcn.00473660
mov edx, dword [edi + ebp]
lea ecx, [esp + 0x3c]
push edx
call fcn.00473660
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
call fcn.00473660
mov ecx, dword [ebx + edi]
mov edx, dword [esp + 0x74]
add ecx, edx
push ecx
lea ecx, [esp + 0x18]
call fcn.00473710
add edi, 4
dec esi
jne 0x4cfa76
mov edi, dword [esp + 0x10]
lea esi, [edi + 8]
mov dword [edi + 4], 0
mov ecx, esi
call fcn.004735a0
mov ecx, dword [esp + 0x60]
mov edx, ecx
mov eax, ecx
shr edx, 2
neg eax
mov dword [edi + 4], edx
mov edi, dword [esp + 0x58]
sbb eax, eax
push ecx
and eax, edi
mov ecx, esi
push eax
call fcn.00473c60
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, edi
push eax
call fcn.00473c60
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, edi
push eax
call fcn.00473c60
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, edi
push eax
call fcn.00473c60
mov esi, 0x54d7d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
mov dword [esp + 0x14], esi
call fcn.004735a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x28], esi
call fcn.004735a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x3c], esi
call fcn.004735a0
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x50], esi
call fcn.004735a0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8
Function at 0x4d8410
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x4d841c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x4d84af
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x4d8479
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.004d85d0
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x4d844e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x4d84c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x4d85bd
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x4d8512
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x4d853e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004d85d0
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x4d857f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x4d8501
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4d8750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebx, [edi + 8]
mov eax, ebx
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
call fcn.0053213d
mov esi, dword [esp + 0x58]
mov ebp, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov eax, dword [esi + 8]
push eax
call ebp
push eax
call fcn.00522920
mov ecx, dword [esi + 8]
push 2
push ecx
mov dword [esp + 0x18], eax
call ebp
push eax
call fcn.00522920
xor ebp, ebp
push 0xffffff
push ebp
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.005229a2
lea edx, [esp + 0x20]
mov ecx, esi
push edx
mov dword [esp + 0x54], ebp
call fcn.0052202a
push 0x800000
lea ecx, [esp + 0x1c]
call fcn.005229f2
mov eax, ebx
push 1
push 1
push ebx
mov ecx, dword [eax]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x28]
push ecx
push ebp
mov ecx, edi
call fcn.00534cd6
mov eax, dword [esp + 0x58]
mov edx, 1
mov ecx, ebp
shl edx, cl
test eax, edx
je 0x4d886c
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4d885e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x24]
jmp 0x4d887c
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0052202a
jmp 0x4d887c
cmp dword [esp + 0x5c], 1
jne 0x4d889a
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
inc ebp
cmp ebp, 8
jl 0x4d882d
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0052202a
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.0052202a
mov esi, 0x55405c
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call fcn.0052298c
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 3
call fcn.0052298c
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc
Function at 0x4db3d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov edi, ecx
jne 0x4db3e6
xor ebx, ebx
jmp 0x4db3e9
mov ebx, dword [eax + 0x1c]
call fcn.0053597d
push esi
push esi
push ebx
push 0x118
push 0x190
push esi
push esi
push 0x90000000
push esi
push esi
push esi
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
push esi
call fcn.0051c04f
push eax
push esi
mov ecx, edi
call fcn.0051b916
test eax, eax
je 0x4db4bf
push ebp
call fcn.0053597d
mov ebx, dword [eax + 8]
push 0xa
push 0x21d
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
cmp ebp, esi
je 0x4db4b0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4db4b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [esp + 0x24], eax
je 0x4db4b0
push 0xffffff
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push edi
lea esi, [edi + 0x3c]
push eax
push 0x50000000
push esi
mov dword [esp + 0x30], 0x190
mov dword [esp + 0x34], 0x118
call dword [0x59a344]
test eax, eax
je 0x4db4b0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [0x59a34c]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4