joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433e00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042e5b0
test eax, eax
je 0x433eef
mov ecx, edi
call fcn.0042e5b0
mov ecx, eax
call fcn.0042bc20
test eax, eax
jne 0x433eef
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x433eef
mov eax, dword [0x4f04f8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x433e62
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042e5b0
mov ecx, eax
call fcn.0042be50
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x433eef
cmp ebx, eax
jne 0x433eef
cmp dword [esp + 0x10], eax
jne 0x433ed5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x481ec7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
call fcn.00405460
mov eax, dword [0x4df5dc]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x24], eax
mov ecx, dword [0x4df5dc]
mov dword [esi + 0x28], ecx
mov edx, dword [0x4df5dc]
mov dword [esi + 0x2c], edx
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 3
call fcn.00405460
lea edx, [esi + 0x48]
mov ecx, 0x1c
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x494]
mov byte [esp + 0x18], 4
mov dword [edx], 0x42444557
mov dword [edx + 4], 0x10000
call fcn.00473897
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x4c4888
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], 0xffffffff
mov dword [esi + 0xd0], ebx
mov dword [esi + 0x4a8], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43a9e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4823d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43aa19
inc eax
mov dword [esi + 0x10], eax
jmp 0x43ab2c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43aa2d
mov eax, 0xffffffc7
jmp 0x43ab2e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43aa3e
cmp dword [esi + 8], eax
jne 0x43aa2d
cmp dword [esi + 8], eax
jne 0x43aa57
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43aa57
mov eax, 0xffffffc7
jmp 0x43ab2e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43aa6b
push eax
mov ecx, ebx
call fcn.0043a210
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00405460
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43aa9c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00405480
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00439980
test eax, eax
mov dword [esp + 0x38], eax
je 0x43aacf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c2020
call fcn.00405660
mov eax, dword [esp + 0x38]
jmp 0x43ab2e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043a840
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43ab13
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043a860
mov esi, eax
test esi, esi
jne 0x43ab43
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043a840
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43aae5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c2020
call fcn.00405660
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c2020
call fcn.00405660
mov eax, esi
jmp 0x43ab2e

Function at 0x43de30
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43de90
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43de90
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43de90
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43de90
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43ded0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x443de0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482a48
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.0047b180
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00443780
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.0047b0ae
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.00477972
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.00477972
push 1
push 0
push 0
mov ecx, esi
call fcn.0047791a
push 1
push 0
push 1
mov ecx, esi
call fcn.0047791a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b1f2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443f60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482a68
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.0047b180
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00443780
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.0047b0ae
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 0x444024
cmp dword [esp + 0x40], 1
jne 0x444022
cmp ecx, eax
jge 0x444024
mov eax, ecx
cmp eax, 0xc8
jge 0x444030
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443de0
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.0047b1f2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4447b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482ad3
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.00475d93
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.0047b428
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047c987
test eax, eax
je 0x4448cc
mov ecx, dword [esp + 0x3c]
call fcn.0047b455
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 0x444890
push edi
mov ecx, esi
call fcn.00478abe
mov ecx, esi
call fcn.00444a30
cmp dword [esp + 0x38], 1
jne 0x4448c5
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.00478bf9
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 0x447300
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447333
push esi
call fcn.0044a3f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44732c
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 0x4473b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4473a2
mov eax, dword [esi + 8]
test eax, eax
je 0x447357
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 0x44739e
cmp eax, 2
je 0x4473a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44734a
cmp eax, 3
je 0x44737d
cmp eax, 1
jne 0x44734a
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 0x44734a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44734a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004473e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4473c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004473e0
add esp, 4
pop esi
ret

Function at 0x454160
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 0x454203
test eax, eax
jbe 0x454203
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x454203
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 0x4541ae
xor esi, esi
jmp 0x4541b4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4541df
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00457bb0
add esi, eax
push esi
mov ebx, esi
call fcn.00457bb0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4541c0
pop ebp
test edi, edi
pop edi
jne 0x454203
test ebx, ebx
je 0x454203
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004619b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x454345
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 0x45445d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45445d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004761e5
mov esi, eax
test esi, esi
je 0x45445d
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 0x45445d
mov ecx, esi
call fcn.004542b0
cmp edi, eax
jge 0x45445d
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 0x4543e3
mov dword [esp + 0x34], 1
jmp 0x45443e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45445d
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.00452ae0
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 0x458d00
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4833c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0047a831
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0
call fcn.0047a831
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.0047a831
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x40]
push eax
push 0x18
push edi
mov byte [esp + 0x6c], 2
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x1a0d8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
lea ecx, [esp + 0x10]
push ebp
call fcn.0047a8e8
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x6c]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0047a8e8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
push eax
call ebx
push eax
lea ecx, [esp + 0x34]
call fcn.0047a8e8
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x458ddb
mov ecx, dword [esp + 0x24]
push edi
push ecx
call ebx
jmp 0x458ddd
xor eax, eax
mov edi, dword [esp + 0x68]
mov dword [esi + 0x1a2ec], eax
test edi, edi
je 0x458df5
mov edx, dword [esp + 0x34]
push edi
push edx
call ebx
jmp 0x458df7
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1a2f0], eax
lea eax, [esp + 0x20]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [esp + 0x74]
mov edx, ecx
imul edx, dword [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x1a2ec]
test eax, eax
je 0x458e46
mov edx, dword [esp + 0x24]
push eax
push edx
call ebx
mov esi, dword [esi + 0x1a2f0]
test esi, esi
je 0x458e58
mov eax, dword [esp + 0x34]
push esi
push eax
call ebx
lea ecx, [esp + 0x10]
call fcn.0047a91f
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.0047a966
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0
call fcn.0047a966
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.0047a966
mov ecx, dword [esp + 0x58]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
Function at 0x45cd10
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, ebx
mov esi, ecx
mov ecx, dword [esp + 0x14]
and edi, 0xff
or edi, 0x200
mov edx, dword [esi + 0x19d6c]
shl edi, 8
and eax, 0xff
and ecx, 0xff
or edi, eax
shl edi, 8
or edi, ecx
push edi
push edx
call dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
mov ecx, dword [esi + 0x19d70]
xor edx, edx
mov dl, byte [ecx + eax*4 + 6]
mov ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 5]
or ebp, 0x200
shl ebp, 8
or ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 4]
shl ebp, 8
or ebp, edx
cmp ebp, edi
je 0x45ce16
mov cx, word [ecx + 2]
mov eax, dword [esi + 0x1a180]
mov edx, ecx
dec eax
and edx, 0xffff
cmp edx, eax
jge 0x45ce16
cmp cx, 0xff
jae 0x45ce16
mov eax, dword [esi + 0x19d6c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x14]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 4], dl
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x18]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 5], dl
mov eax, dword [esi + 0x19d70]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 6], bl
mov eax, dword [esi + 0x19d70]
mov dx, word [eax + 2]
mov byte [eax + edx*4 + 7], 0
mov eax, dword [esi + 0x19d70]
inc word [eax + 2]
mov eax, dword [esi + 0x19d70]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [esi + 0x19d6c], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x4834f1
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
lea edi, [esi + 0x18]
mov dword [esi], fcn.00457150
mov ecx, edi
call fcn.0045ce20
push fcn.0045d510
push 0x45d4d0
push 0x15
lea eax, [esi + 0x34]
xor ebp, ebp
push 0x1c
push eax
mov dword [esp + 0x2c], ebp
call fcn.00461fce
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4c6500
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], 0xffffff
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x2c], ebp
call fcn.0045d020
mov dword [esi + 0x30], ebp
lea ecx, [esi + 0x280]
lea eax, [esi + 0x38]
mov edx, 0x15
mov dword [eax], 1
mov dword [ecx], ebp
add eax, 0x1c
add ecx, 4
dec edx
jne 0x45d5c9
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x476b88
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476bc0
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.00474c3c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00474c14
jmp 0x476bcc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x478276
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 0x4782b8
call fcn.0047dd95
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4782b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4782af
xor eax, eax
jmp 0x4782c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004782c6
pop edi
pop esi
pop ebx
ret 4

Function at 0x47e2c5
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 0x47e2f3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e311
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e22b
jmp 0x47e311
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e311
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e22b
test edi, edi
mov eax, edi
jne 0x47e2fb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401ae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebx, section..text
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
sub ebx, 0x1000
mov dword [0x4028f4], ebx
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401b11
push esp
mov eax, str.contents
mov dword [ebp - 4], eax
lea eax, [0x401187]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4028f4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x4028f4]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x402904], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402904]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401bc9
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401bb0
pop ebp
ret 0x10