joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482000
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b7688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004afce2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004819a0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004afc10
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004ac4d9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004ac4d9
push 1
push 0
push 0
mov ecx, esi
call fcn.004ac481
push 1
push 0
push 1
mov ecx, esi
call fcn.004ac481
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004afd54
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x482180
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b76a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004afce2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004819a0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004afc10
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x482244
cmp dword [esp + 0x40], 1
jne 0x482242
cmp ecx, eax
jge 0x482244
mov eax, ecx
cmp eax, 0xc8
jge 0x482250
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00482000
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004afd54
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4829c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b7713
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004aa8f5
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004aff8a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b14a6
test eax, eax
je 0x482adc
mov ecx, dword [esp + 0x3c]
call fcn.004affb7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x482aa0
push edi
mov ecx, esi
call fcn.004ad620
mov ecx, esi
call fcn.00482c40
cmp dword [esp + 0x38], 1
jne 0x482ad5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004ad75b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4854f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x485523
push esi
call fcn.004885f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x48551c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4855a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x485592
mov eax, dword [esi + 8]
test eax, eax
je 0x485547
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x48558e
cmp eax, 2
je 0x485592
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48553a
cmp eax, 3
je 0x48556d
cmp eax, 1
jne 0x48553a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x48553a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x48553a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004855d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4855b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004855d0
add esp, 4
pop esi
ret

Function at 0x491140
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4911e3
test eax, eax
jbe 0x4911e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4911e3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x49118e
xor esi, esi
jmp 0x491194
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4911bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00493070
add esi, eax
push esi
mov ebx, esi
call fcn.00493070
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4911a0
pop ebp
test edi, edi
pop edi
jne 0x4911e3
test ebx, ebx
je 0x4911e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0049a1d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x491325
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49143d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49143d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004aad47
mov esi, eax
test esi, esi
je 0x49143d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49143d
mov ecx, esi
call fcn.00491290
cmp edi, eax
jge 0x49143d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4913c3
mov dword [esp + 0x34], 1
jmp 0x49141e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49143d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00490830
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x495980
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5973f4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x495993
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4959d4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x59749c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x495a06
mov bl, byte [esp + ecx + 0x4c]
jmp 0x495a0a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4959fb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x495a28
mov bl, byte [esp + ecx + 0x4c]
jmp 0x495a2c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x495a1d
xor ecx, ecx
mov eax, 0x597404
xor ebx, ebx
mov bl, byte [ecx + 0x5974ac]
cmp byte [esp + ebx + 0x14], 0
je 0x495a57
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5974c4]
cmp byte [esp + ebx + 0x14], 0
je 0x495a6e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x495a3e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4959c7
lea edx, [esp + 0x84]
push edx
call fcn.00495ab0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4ab6ea
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ab722
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a9774
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a974c
jmp 0x4ab72e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4acddd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ace1f
call fcn.004b2891
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ace1f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ace16
xor eax, eax
jmp 0x4ace27
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ace2d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b2dc1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b2def
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2e0d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b2d27
jmp 0x4b2e0d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b2e0d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b2d27
test edi, edi
mov eax, edi
jne 0x4b2df7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40bc58
Capabilities:
Get disk size

Disassembly:
push edi
push ebp
sub esp, 0x130
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edx
push 0x104
push dword [esp + 0x148]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [esp + 0x1c]
cmp al, 0x5c
je 0x40bd86
mov dl, byte [esp + 0x1c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
test dl, dl
je 0x40bcaa
cmp dl, 0x5c
je 0x40bcaa
add eax, 1
mov dword [esp + 0x18], eax
mov dl, byte [eax]
test dl, dl
jne 0x40bc98
test dl, dl
je 0x40bcb9
lea edx, [eax + 1]
mov dword [esp + 0x18], edx
mov byte [eax + 1], 0
push 0x416398
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bd1e
push 0x4163a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
je 0x40bd1e
lea eax, [esp + 0x1c]
lea edi, [esp + 0x10]
lea ecx, [esp + 8]
lea edx, [esp]
push edx
push ecx
push edi
push eax
call ebp
test eax, eax
jne 0x40bd0a
mov eax, 0xffffffff
add esp, 0x130
pop ebp
pop edi
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
shrd eax, edx, 0xa
add esp, 0x130
pop ebp
pop edi
ret
lea edi, [esp + 0x1c]
lea ebp, [esp + 0x12c]
lea ecx, [esp + 0x128]
lea edx, [esp + 0x124]
lea eax, [esp + 0x120]
push eax
push edx
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40bd5b
mov eax, 0xffffffff
add esp, 0x130
pop ebp
pop edi
ret
mov eax, dword [esp + 0x12c]
imul eax, dword [esp + 0x128]
push 0x400
push dword [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add esp, 0x130
pop ebp
pop edi
ret
mov al, byte [esp + 0x1d]
cmp al, 0x5c
jne 0x40bc88
lea eax, [esp + 0x1e]
mov dword [esp + 0x18], eax
mov dl, byte [esp + 0x1e]
test dl, dl
je 0x40bdb4
cmp dl, 0x5c
je 0x40bdb4
add eax, 1
mov dword [esp + 0x18], eax
mov dl, byte [eax]
test dl, dl
jne 0x40bda2
test dl, dl
je 0x40bc94
add eax, 1
mov dword [esp + 0x18], eax
mov dl, byte [eax]
jmp 0x40bc94

Function at 0x40c6e4
Capabilities:
Get file size

Disassembly:
push esi
push ebp
push ebx
push esi
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c739
lea edx, [esp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov ebx, dword [esp]
push esi
add ebp, 0
adc ebx, 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40c730
xor ebp, ebp
xor ebx, ebx
mov eax, ebp
mov edx, ebx
pop ecx
pop ebx
pop ebp
pop esi
ret
xor eax, eax
xor edx, edx
pop ecx
pop ebx
pop ebp
pop esi
ret
Function at 0x40d13c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4103f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
add ecx, 4
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x24], edx
mov dword [ebp - 0x1c], 0
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0x20], eax
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40d233
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 1
mov ecx, eax
push 5
push 0x416644
call fcn.0040f024
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x2c], eax
test eax, eax
je 0x40d22f
mov dl, 1
mov dword [ebp - 4], 0
test dl, dl
je 0x40d20c
mov edx, dword [ebp - 0x24]
push 0
lea eax, [ecx + 4]
push eax
push edx
call fcn.0040c948
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x28]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov dl, 0
jmp 0x40d1ef
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x40d1e0
Function at 0x40e7b0
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xa4
mov ebp, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
lea eax, [esp + 4]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x14]
push 0x80
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, eax
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [0x413a48]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 8]
add edx, 1
add ecx, 0xffffffff
add edi, 1
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x9c], ecx
add edx, 0xffffffff
mov dword [esp + 0x98], edi
mov dword [esp + 0xa0], edx
lea ecx, [esp + 0x94]
lea edx, [esp + 0x14]
push 0
push esi
push edx
push ecx
push 2
push 1
push 4
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov esi, dword [esp + 0xc]
sub esi, dword [esp + 4]
mov edi, dword [esp + 0x10]
sub edi, dword [esp + 8]
push dword [0x413a44]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp], eax
push 0xf00021
push edi
push 1
push dword [esp + 0x14]
push dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
push 1
push esi
push dword [esp + 0x14]
push dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
push dword [0x413a40]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0xf00021
add ecx, 0xffffffff
add edx, 1
add edi, 0xffffffff
push edi
push 1
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
push 0xf00021
add ecx, 1
push 1
add edx, 0xffffffff
add esi, 0xffffffff
push esi
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
test ebp, ebp
je 0x40e916
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp]
test eax, eax
je 0x40e925
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
add esp, 0xa4
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x56e230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x105000]
push edi
or ebp, 0xffffffff
jmp 0x56e252
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x56e259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56e248
mov eax, 1
add ebx, ebx
jne 0x56e26b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x56e27c
jne 0x56e29b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56e29b
dec eax
add ebx, ebx
jne 0x56e288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x56e260
add ebx, ebx
jne 0x56e297
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x56e2ed
xor ecx, ecx
sub eax, 3
jb 0x56e2b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56e322
sar eax, 1
mov ebp, eax
jmp 0x56e2be
add ebx, ebx
jne 0x56e2be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56e28c
inc ecx
add ebx, ebx
jne 0x56e2cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56e28c
add ebx, ebx
jne 0x56e2d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x56e2ce
jne 0x56e2ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x56e2ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x56e30c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x56e2fe
jmp 0x56e24e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x56e30c
add edi, ecx
jmp 0x56e24e
pop esi
mov edi, esi
mov ecx, 0x30b7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x56e32a
cmp byte [edi], 0x13
jne 0x56e32a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x56e32f
lea edi, [esi + 0x16b000]
mov eax, dword [edi]
or eax, eax
je 0x56e3a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x171358]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x171470]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x56e35c
mov ecx, edi
jns 0x56e38b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x171474]
or eax, eax
je 0x56e3a1
mov dword [ebx], eax
add ebx, 4
jmp 0x56e379
call dword [esi + 0x171484]
mov ebp, dword [esi + 0x171478]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x56e3db
sub esp, 0xffffff80
jmp 0x45d786