joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5590b0
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 0x4d4892
xor edi, edi
jmp 0x4d4895
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.00477df0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0
call fcn.00477df0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call fcn.00477df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.00477df0
test esi, esi
mov byte [esp + 0x6c], 3
jle 0x4d494d
sub ebp, edi
sub ebx, edi
mov ecx, dword [esp + 0x78]
mov edx, dword [edi]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4d4947
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4d4947
shr eax, 2
push edx
push eax
push ecx
call fcn.00478e00
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d4947
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x54]
call fcn.004780b0
mov edx, dword [edi + ebp]
lea ecx, [esp + 0x3c]
push edx
call fcn.004780b0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
call fcn.004780b0
mov ecx, dword [ebx + edi]
mov edx, dword [esp + 0x74]
add ecx, edx
push ecx
lea ecx, [esp + 0x18]
call fcn.00478160
add edi, 4
dec esi
jne 0x4d48e6
mov edi, dword [esp + 0x10]
lea esi, [edi + 8]
mov dword [edi + 4], 0
mov ecx, esi
call fcn.00477ff0
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.004786b0
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.004786b0
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.004786b0
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.004786b0
mov esi, 0x55f890
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
mov dword [esp + 0x14], esi
call fcn.00477ff0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x28], esi
call fcn.00477ff0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x3c], esi
call fcn.00477ff0
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x50], esi
call fcn.00477ff0
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 0x4dd2e0
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 0x4dd2ec
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x4dd37f
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 0x4dd349
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.004dd4a0
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 0x4dd31e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x4dd390
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 0x4dd48d
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 0x4dd3e2
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 0x4dd40e
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.004dd4a0
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 0x4dd44f
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 0x4dd3d1
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 0x4dd620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x559700
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.00540a33
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.00531098
mov ecx, dword [esi + 8]
push 2
push ecx
mov dword [esp + 0x18], eax
call ebp
push eax
call fcn.00531098
xor ebp, ebp
push 0xffffff
push ebp
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.0053111a
lea edx, [esp + 0x20]
mov ecx, esi
push edx
mov dword [esp + 0x54], ebp
call fcn.00530739
push 0x800000
lea ecx, [esp + 0x1c]
call fcn.0053116a
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.00543662
mov eax, dword [esp + 0x58]
mov edx, 1
mov ecx, ebp
shl edx, cl
test eax, edx
je 0x4dd73c
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4dd72e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x24]
jmp 0x4dd74c
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00530739
jmp 0x4dd74c
cmp dword [esp + 0x5c], 1
jne 0x4dd76a
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 0x4dd6fd
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.00530739
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.00530739
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call fcn.00531104
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 3
call fcn.00531104
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 0x4e02a0
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 0x4e02b6
xor ebx, ebx
jmp 0x4e02b9
mov ebx, dword [eax + 0x1c]
call fcn.005443fb
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.0052a737
push eax
push esi
mov ecx, edi
call fcn.00529fff
test eax, eax
je 0x4e038f
push ebp
call fcn.005443fb
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 0x4e0380
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4e0380
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [esp + 0x24], eax
je 0x4e0380
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 [0x5b1a28]
test eax, eax
je 0x4e0380
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 [0x5b1a30]
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
Function at 0x4e4850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55a020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x5ada84]
push ebx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], eax
push ebx
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
mov byte [esp + 0x44], 3
call fcn.004e64e0
add esp, 0x1c
test eax, eax
je 0x4e497b
push ebx
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.004e64e0
add esp, 0x1c
test eax, eax
je 0x4e497b
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.005100b9
add esp, 8
test eax, eax
jne 0x4e497b
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.005100b9
add esp, 8
test eax, eax
jne 0x4e497b
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.004e6720
add esp, 0x10
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x2c], 2
call fcn.0052801f
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.0052801f
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.0052801f
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0052801f
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0052801f
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.0052801f
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.0052801f
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0052801f
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x4e49d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jl 0x4e49f9
mov ecx, dword [esp + 8]
push ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 3
mov dl, byte [esp + edx + 0x14]
xor bl, dl
inc eax
mov byte [ecx], bl
inc ecx
cmp eax, esi
jle 0x4e49e3
pop ebx
pop esi
ret

Function at 0x4e4a00
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push 4
push eax
call fcn.00478d20
mov edi, dword [esp + 0x18]
add esp, 8
xor eax, eax
test edi, edi
jbe 0x4e4a43
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ecx, eax
mov dl, byte [esi]
and ecx, 3
mov bl, byte [esp + ecx + 0xc]
lea ecx, [esp + ecx + 0xc]
xor bl, dl
inc eax
inc esi
cmp eax, edi
mov byte [ecx], bl
jb 0x4e4a21
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop edi
pop ecx
ret
mov eax, dword [esp + 4]
pop edi
pop ecx
ret
Function at 0x4e4b30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor edx, edx
test esi, esi
jle 0x4e4b5e
mov eax, dword [esp + 0x10]
push ebx
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx + edi]
mov ebx, ecx
mov ecx, edx
and ecx, 0xf
shl ebx, cl
xor eax, ebx
inc edx
cmp edx, esi
jl 0x4e4b45
pop edi
pop ebx
pop esi
ret
mov eax, dword [esp + 0x10]
pop esi
ret
Function at 0x4e5120
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00478c40
add esp, 4
test eax, eax
jne 0x4e518a
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, 1
jne 0x4e518a
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call fcn.00478d70
add esp, 4
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4e5182
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00478c60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret

Function at 0x4e5450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x64
mov edx, dword [esp + 0x68]
mov ecx, 0x19
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
mov ecx, 0x5b1210
call fcn.0049e710
mov al, byte [esp + 8]
lea esi, [esp + 8]
test al, al
je 0x4e54a0
and eax, 0xff
push eax
call fcn.00512902
add esp, 4
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4e5488
mov eax, 0x98543643
lea ecx, [esp + 8]
mov edx, 8
mov esi, dword [ecx]
add ecx, 4
xor eax, esi
dec edx
jne 0x4e54ae
pop edi
pop esi
add esp, 0x64
ret

Function at 0x4e5970
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4e59de
cmp si, 0x69
ja 0x4e59de
add esi, 0xffd0
cmp si, 0x11
je 0x4e59ae
push 0x11
call edi
test ax, ax
jge 0x4e59ae
or esi, 0x2000
cmp si, 0x10
je 0x4e59c3
push 0x10
call edi
test ax, ax
jge 0x4e59c3
or esi, 0x4000
cmp si, 0x12
je 0x4e59d8
push 0x12
call edi
test ax, ax
jge 0x4e59d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4e59eb
mov esi, 0xbd
jmp 0x4e599f
cmp si, 0x6e
jne 0x4e59f8
mov esi, 0xbe
jmp 0x4e599f
cmp si, 0x6f
jne 0x4e5999
mov esi, 0xbf
jmp 0x4e599f
Function at 0x4f4890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55ac48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
lea ecx, [esp + 4]
call fcn.00477df0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 4]
mov dword [esp + 0x20], 0
push eax
push esi
push ecx
call fcn.004f4450
add esp, 0xc
test eax, eax
je 0x4f490e
push eax
push 0x5b1c10
call fcn.0046f9c0
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 4], 0x55f890
call fcn.00477ff0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, ecx
push esi
neg eax
sbb eax, eax
push ecx
and eax, edx
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.004ef720
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 4], 0x55f890
call fcn.00477ff0
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4f5120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55ad50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
push 0x400
lea ecx, [esp + 0xc]
call fcn.00533653
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x8c], 0
call fcn.00530057
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 1
push ecx
mov ecx, dword [esp + 0x88]
call fcn.004542a0
lea ecx, [esp + 0x30]
call fcn.005301bb
lea ecx, [esp + 8]
call fcn.0052d924
lea ecx, [esp + 8]
mov esi, eax
call fcn.00533706
mov edx, dword [esp + 0x8c]
mov edi, eax
lea eax, [esp + 0x84]
push 2
push eax
mov ecx, 0x5b1cd8
mov dword [esp + 0x8c], edx
call fcn.004786b0
lea ecx, [esi + 4]
lea edx, [esp + 0x84]
mov dword [esp + 0x84], ecx
push 4
push edx
mov ecx, 0x5b1cd8
call fcn.004786b0
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x84]
push 4
push ecx
mov ecx, 0x5b1cd8
mov dword [esp + 0x8c], eax
call fcn.004786b0
push esi
push edi
mov ecx, 0x5b1cd8
call fcn.004786b0
push edi
call fcn.00510347
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0
call fcn.00530133
lea ecx, [esp + 8]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00533718
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret 0xc
Function at 0x4fba50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55b888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, ecx
mov eax, SysReAllocString
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00477df0
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x54], 0
call fcn.004fb910
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4fbba8
mov eax, dword [esp + 8]
push 0
test eax, eax
push 0
jne 0x4fbad5
mov ecx, dword [edi + 0x4c]
add ecx, 0x14
call fcn.004d74e0
jmp 0x4fbae1
mov ecx, dword [edi + 0x4c]
push eax
add ecx, 0x14
call fcn.004d75d0
test eax, eax
je 0x4fbba8
lea esi, [eax + 0x18]
push esi
call fcn.00478d70
add esi, eax
push esi
call fcn.00478d70
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4fbba8
mov eax, dword [esp + 8]
test eax, eax
jne 0x4fbb1f
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004fffb0
jmp 0x4fbb2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
sub eax, ecx
sub eax, esi
mov esi, dword [esp + 0xc]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x28]
sar ecx, 1
sub ecx, esi
mov esi, dword [esp + 0x18]
sub eax, edx
sub eax, esi
mov esi, dword [esp + 0x10]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
sub eax, esi
cmp edx, 0x202004f
jne 0x4fbb7a
xor eax, eax
jmp 0x4fbb84
cmp edx, 0x2020050
jne 0x4fbb84
xor ecx, ecx
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov ecx, edi
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x202003d
call fcn.004f9fc0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x55f890
call fcn.00477ff0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x500b90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push esi
lea eax, [esp + 4]
push 0x44
mov esi, ecx
push eax
call fcn.00478d20
add esp, 8
lea ecx, [esi + 0x64]
mov eax, dword [esi + 0x5c]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x2c], 0x44
mov dword [esi + 0x388], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x500bf0
push 0x5ad610
call fcn.004e3120
add esp, 4
xor eax, eax
pop esi
add esp, 0x44
ret
push 0
push 0
push 0
push 0
push esi
push 0x500b30
call fcn.0052cd6f
mov eax, 1
pop esi
add esp, 0x44
ret

Function at 0x51c8ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5b0220
cmp edx, dword [eax]
je 0x51c910
add eax, 8
inc ecx
cmp eax, 0x5b02b0
jl 0x51c901
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5b0220]
jne 0x51ca3e
mov eax, dword [0x5c028c]
cmp eax, 1
je 0x51ca18
test eax, eax
jne 0x51c941
cmp dword [0x5af084], 1
je 0x51ca18
cmp edx, 0xfc
je 0x51ca3e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x51c978
lea eax, [ebp - 0x1a4]
push 0x56cfc4
push eax
call fcn.005176c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005106d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x51c9bb
lea eax, [ebp - 0x1a4]
push eax
call fcn.005106d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5acc20
push edi
call fcn.005113c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x56cfa8
push eax
call fcn.005176c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005176d0
lea eax, [ebp - 0xa0]
push 0x56cfa4
push eax
call fcn.005176d0
push dword [esi + 0x5b0224]
lea eax, [ebp - 0xa0]
push eax
call fcn.005176d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x56cf7c
push eax
call fcn.0051ed4b
add esp, 0x2c
pop edi
jmp 0x51ca3e
lea eax, [ebp + 8]
lea esi, [esi + 0x5b0224]
push 0
push eax
push dword [esi]
call fcn.005106d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x523890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005114c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x52395b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x52395b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x52390e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x523919
or bh, 8
and edi, 0x8000000
je 0x523934
mov eax, dword [0x5c19fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x52395b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret