joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc530
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x558958
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.00477cf0
lea eax, [esp + 0x38]
push 4
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.004785b0
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0xc]
call fcn.00477fb0
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4cc599
push edi
call fcn.004ce160
add esp, 4
lea ecx, [esp + 8]
push eax
push edi
call fcn.004785b0
jmp 0x4cc5a4
push 0
lea ecx, [esp + 0xc]
call fcn.00477ff0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 8]
push edx
call fcn.00478060
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push eax
call fcn.00478060
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], 0x55f890
call fcn.00477ef0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x4d4750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x558f90
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 0x4d4782
xor edi, edi
jmp 0x4d4785
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.00477cf0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0
call fcn.00477cf0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call fcn.00477cf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.00477cf0
test esi, esi
mov byte [esp + 0x6c], 3
jle 0x4d483d
sub ebp, edi
sub ebx, edi
mov ecx, dword [esp + 0x78]
mov edx, dword [edi]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4d4837
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4d4837
shr eax, 2
push edx
push eax
push ecx
call fcn.00478d00
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d4837
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x54]
call fcn.00478020
mov edx, dword [edi + ebp]
lea ecx, [esp + 0x3c]
push edx
call fcn.00478020
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
call fcn.00478020
mov ecx, dword [ebx + edi]
mov edx, dword [esp + 0x74]
add ecx, edx
push ecx
lea ecx, [esp + 0x18]
call fcn.00478060
add edi, 4
dec esi
jne 0x4d47d6
mov edi, dword [esp + 0x10]
lea esi, [edi + 8]
mov dword [edi + 4], 0
mov ecx, esi
call fcn.00477ef0
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.004785b0
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.004785b0
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.004785b0
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.004785b0
mov esi, 0x55f890
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
mov dword [esp + 0x14], esi
call fcn.00477ef0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x28], esi
call fcn.00477ef0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x3c], esi
call fcn.00477ef0
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x50], esi
call fcn.00477ef0
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 0x4dd1d0
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 0x4dd1dc
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x4dd26f
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 0x4dd239
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.004dd390
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 0x4dd20e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x4dd280
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 0x4dd37d
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 0x4dd2d2
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 0x4dd2fe
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.004dd390
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 0x4dd33f
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 0x4dd2c1
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 0x4dd510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5595e0
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.00540910
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.00530f78
mov ecx, dword [esi + 8]
push 2
push ecx
mov dword [esp + 0x18], eax
call ebp
push eax
call fcn.00530f78
xor ebp, ebp
push 0xffffff
push ebp
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.00530ffa
lea edx, [esp + 0x20]
mov ecx, esi
push edx
mov dword [esp + 0x54], ebp
call fcn.00530619
push 0x800000
lea ecx, [esp + 0x1c]
call fcn.0053104a
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.00543542
mov eax, dword [esp + 0x58]
mov edx, 1
mov ecx, ebp
shl edx, cl
test eax, edx
je 0x4dd62c
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4dd61e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x24]
jmp 0x4dd63c
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00530619
jmp 0x4dd63c
cmp dword [esp + 0x5c], 1
jne 0x4dd65a
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 0x4dd5ed
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.00530619
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.00530619
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call fcn.00530fe4
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 3
call fcn.00530fe4
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 0x4e0190
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 0x4e01a6
xor ebx, ebx
jmp 0x4e01a9
mov ebx, dword [eax + 0x1c]
call fcn.005442db
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.0052a617
push eax
push esi
mov ecx, edi
call fcn.00529edf
test eax, eax
je 0x4e027f
push ebp
call fcn.005442db
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 0x4e0270
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4e0270
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [esp + 0x24], eax
je 0x4e0270
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 0x4e0270
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 0x4e4750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x559f00
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.004e63e0
add esp, 0x1c
test eax, eax
je 0x4e487b
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.004e63e0
add esp, 0x1c
test eax, eax
je 0x4e487b
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0050ffa9
add esp, 8
test eax, eax
jne 0x4e487b
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.0050ffa9
add esp, 8
test eax, eax
jne 0x4e487b
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.004e6620
add esp, 0x10
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x2c], 2
call fcn.00527eff
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00527eff
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.00527eff
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00527eff
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.00527eff
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00527eff
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.00527eff
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00527eff
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x4e48d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jl 0x4e48f9
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 0x4e48e3
pop ebx
pop esi
ret

Function at 0x4e4900
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push 4
push eax
call fcn.00478c20
mov edi, dword [esp + 0x18]
add esp, 8
xor eax, eax
test edi, edi
jbe 0x4e4943
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 0x4e4921
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 0x4e4a30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor edx, edx
test esi, esi
jle 0x4e4a5e
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 0x4e4a45
pop edi
pop ebx
pop esi
ret
mov eax, dword [esp + 0x10]
pop esi
ret
Function at 0x4e5020
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00478b40
add esp, 4
test eax, eax
jne 0x4e508a
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, 1
jne 0x4e508a
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call fcn.00478c70
add esp, 4
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4e5082
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00478b60
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 0x4e5350
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.0049e620
mov al, byte [esp + 8]
lea esi, [esp + 8]
test al, al
je 0x4e53a0
and eax, 0xff
push eax
call fcn.005127e2
add esp, 4
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4e5388
mov eax, 0x98543643
lea ecx, [esp + 8]
mov edx, 8
mov esi, dword [ecx]
add ecx, 4
xor eax, esi
dec edx
jne 0x4e53ae
pop edi
pop esi
add esp, 0x64
ret

Function at 0x4e5870
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 0x4e58de
cmp si, 0x69
ja 0x4e58de
add esi, 0xffd0
cmp si, 0x11
je 0x4e58ae
push 0x11
call edi
test ax, ax
jge 0x4e58ae
or esi, 0x2000
cmp si, 0x10
je 0x4e58c3
push 0x10
call edi
test ax, ax
jge 0x4e58c3
or esi, 0x4000
cmp si, 0x12
je 0x4e58d8
push 0x12
call edi
test ax, ax
jge 0x4e58d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4e58eb
mov esi, 0xbd
jmp 0x4e589f
cmp si, 0x6e
jne 0x4e58f8
mov esi, 0xbe
jmp 0x4e589f
cmp si, 0x6f
jne 0x4e5899
mov esi, 0xbf
jmp 0x4e589f
Function at 0x4f47b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55ab28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
lea ecx, [esp + 4]
call fcn.00477cf0
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.004f4370
add esp, 0xc
test eax, eax
je 0x4f482e
push eax
push 0x5b1c10
call fcn.0046f8c0
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 4], 0x55f890
call fcn.00477ef0
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.004ef640
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 4], 0x55f890
call fcn.00477ef0
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4f5040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55ac30
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.00533533
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x8c], 0
call fcn.0052ff37
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 1
push ecx
mov ecx, dword [esp + 0x88]
call fcn.004541a0
lea ecx, [esp + 0x30]
call fcn.0053009b
lea ecx, [esp + 8]
call fcn.0052d807
lea ecx, [esp + 8]
mov esi, eax
call fcn.005335e6
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.004785b0
lea ecx, [esi + 4]
lea edx, [esp + 0x84]
mov dword [esp + 0x84], ecx
push 4
push edx
mov ecx, 0x5b1cd8
call fcn.004785b0
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x84]
push 4
push ecx
mov ecx, 0x5b1cd8
mov dword [esp + 0x8c], eax
call fcn.004785b0
push esi
push edi
mov ecx, 0x5b1cd8
call fcn.004785b0
push edi
call fcn.00510237
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0
call fcn.00530013
lea ecx, [esp + 8]
mov dword [esp + 0x7c], 0xffffffff
call fcn.005335f8
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret 0xc
Function at 0x4fb970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55b768
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.00477cf0
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.004fb830
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4fbac8
mov eax, dword [esp + 8]
push 0
test eax, eax
push 0
jne 0x4fb9f5
mov ecx, dword [edi + 0x4c]
add ecx, 0x14
call fcn.004d73d0
jmp 0x4fba01
mov ecx, dword [edi + 0x4c]
push eax
add ecx, 0x14
call fcn.004d74c0
test eax, eax
je 0x4fbac8
lea esi, [eax + 0x18]
push esi
call fcn.00478c70
add esi, eax
push esi
call fcn.00478c70
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4fbac8
mov eax, dword [esp + 8]
test eax, eax
jne 0x4fba3f
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004ffed0
jmp 0x4fba4e
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 0x4fba9a
xor eax, eax
jmp 0x4fbaa4
cmp edx, 0x2020050
jne 0x4fbaa4
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.004f9ee0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x55f890
call fcn.00477ef0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x500aa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push esi
lea eax, [esp + 4]
push 0x44
mov esi, ecx
push eax
call fcn.00478c20
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 0x500b00
push 0x5ad610
call fcn.004e3020
add esp, 4
xor eax, eax
pop esi
add esp, 0x44
ret
push 0
push 0
push 0
push 0
push esi
push 0x500a40
call fcn.0052cc52
mov eax, 1
pop esi
add esp, 0x44
ret

Function at 0x51c7fe
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 0x51c820
add eax, 8
inc ecx
cmp eax, 0x5b02b0
jl 0x51c811
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5b0220]
jne 0x51c94e
mov eax, dword [0x5c028c]
cmp eax, 1
je 0x51c928
test eax, eax
jne 0x51c851
cmp dword [0x5af084], 1
je 0x51c928
cmp edx, 0xfc
je 0x51c94e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x51c888
lea eax, [ebp - 0x1a4]
push 0x56cfc4
push eax
call fcn.005175e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005105c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x51c8cb
lea eax, [ebp - 0x1a4]
push eax
call fcn.005105c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5acc20
push edi
call fcn.005112b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x56cfa8
push eax
call fcn.005175e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005175f0
lea eax, [ebp - 0xa0]
push 0x56cfa4
push eax
call fcn.005175f0
push dword [esi + 0x5b0224]
lea eax, [ebp - 0xa0]
push eax
call fcn.005175f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x56cf7c
push eax
call fcn.0051ec5b
add esp, 0x2c
pop edi
jmp 0x51c94e
lea eax, [ebp + 8]
lea esi, [esi + 0x5b0224]
push 0
push eax
push dword [esi]
call fcn.005105c0
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 0x523770
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.005113b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x52383b
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 0x52383b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5237ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5237f9
or bh, 8
and edi, 0x8000000
je 0x523814
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 0x52383b
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