joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x420175
cmp dword [esp + 0x54], 0x40
jne 0x420175
cmp word [esp + 0x10], 0x5a4d
jne 0x420175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x420175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x426960
push esi
call ebx
test eax, eax
je 0x420175
cmp dword [esp + 0x54], 0xf8
jne 0x420175
cmp dword [0x426960], 0x4550
jne 0x420175
mov eax, dword [0x426976]
test ah, 0x20
jne 0x420175
mov edx, dword [0x426a80]
xor eax, eax
mov ax, word [0x426966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x426a58], eax
je 0x420175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x426a6c], eax
xor eax, eax
mov ax, word [0x426966]
mov edx, dword [0x426a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x420175
cmp dword [esp + 0x54], edi
jne 0x420175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x426a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4269b4]
cmp edx, eax
ja 0x420175
mov edi, dword [0x426a58]
mov ecx, dword [0x426988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x420175
xor eax, eax
push 2
mov ax, word [0x426966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x420175
cmp dword [edi - 0x20], ebx
ja 0x420175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x422769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426190
cmp edx, dword [eax]
je 0x42278b
add eax, 8
inc ecx
cmp eax, 0x426220
jl 0x42277c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426190]
jne 0x4228b9
mov eax, dword [0x426bb0]
cmp eax, 1
je 0x422893
test eax, eax
jne 0x4227bc
cmp dword [0x4260e4], 1
je 0x422893
cmp edx, 0xfc
je 0x4228b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4227f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00423670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00423490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x422836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00423490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42545c
push edi
call fcn.00423f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00423670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00423680
lea eax, [ebp - 0xa0]
push 0x42543c
push eax
call fcn.00423680
push dword [esi + 0x426194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00423680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00423e75
add esp, 0x2c
pop edi
jmp 0x4228b9
lea eax, [ebp + 8]
lea esi, [esi + 0x426194]
push 0
push eax
push dword [esi]
call fcn.00423490
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 0x4682e0
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4683e0
mov eax, dword [0xcd1150]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x98]
mov edx, dword [eax + 0x9c]
lea ebx, [eax + 0x1d0]
mov dword [esp + 0x30], ebx
lea ebp, [eax + 0x318]
mov dword [esp + 0x2c], ebp
add ecx, 1
mov dword [eax + 0x98], ecx
adc edx, 0
mov dword [eax + 0x9c], edx
mov ecx, dword [eax + 0xa8]
mov dword [ecx], 0
call fcn.0046df00
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00436f90
mov eax, dword [esp + 0x28]
mov byte [eax + 0x8c], 1
inc dword [eax + 0xa0]
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], edx
call fcn.00474060
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
mov byte [ecx + 0x8c], 0
dec dword [ecx + 0xa0]
nop
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.00479320
lea edi, [esp + 0xc]
mov esi, dword [esp + 0x30]
call fcn.00474b54
call fcn.0046e080
mov eax, dword [0xcd1150]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
test byte [eax], al
lea edi, [eax + 0x1d0]
lea esi, [esp + 0xc]
call fcn.00474b54
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
add esp, 0x34
ret
lea eax, [0x8e4ae6]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0046dbe0
nop
int3
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4574c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
push 0xd
push 0xeef
push 0x45e598
mov dword [esp + 0x28], 0
call fcn.00433314
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.00402830
push 0x37
push 0x2fbb
push 0x45e5a8
mov dword [esp + 0x34], 0
call fcn.00433314
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.00402830
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x34], 1
call fcn.00432597
add esp, 0xc
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40126b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
jne 0x401286
push 0x45e58a
mov ecx, ebp
call fcn.00402830
jmp 0x401347
push 0x37
push 0x2fbb
push 0x45e5a8
call fcn.00433314
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
call fcn.00402830
push 1
push 0x45e5e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.00402a40
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.00402a40
push 0xc
push 0x217c
push 0x45e5e4
call fcn.00433314
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00402830
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
push ebp
mov byte [esp + 0x34], 6
call fcn.00432597
mov byte [esp + 0x34], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x28], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401367
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x4037c0
Capabilities:
Hide graphical window

Disassembly:
add ecx, 0xffff7ffe
push esi
mov esi, edx
cmp ecx, 0xd
ja case.0x4037d2.32780
jmp dword [ecx*4 + 0x40394c]
mov ecx, dword [eax + 4]
mov dword [esi + 0xec], ecx
mov eax, dword [eax + 8]
mov edx, ecx
sub edx, eax
mov dword [esi + 0xf4], eax
mov eax, dword [esi + 0xf8]
sub eax, dword [esi + 0xf4]
push esi
mov dword [esi + 0x100], edx
mov dword [esi + 0x104], eax
call fcn.00404af0
xor eax, eax
pop esi
ret
mov al, byte [eax]
mov edx, dword [esi + 0x68]
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push edx
mov byte [esi + 0xaf], al
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x68]
push 5
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00404db0
xor eax, eax
pop esi
ret
add eax, 0x10
push eax
lea ecx, [esi + 0xe4]
call fcn.00402d80
xor eax, eax
pop esi
ret
add eax, 0x14
push eax
lea ecx, [esi + 0xe8]
call fcn.00402d80
mov edx, dword [esi + 0x68]
push 5
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
pop esi
ret
mov al, byte [eax + 0x18]
mov byte [esi + 0x110], al
xor eax, eax
pop esi
ret
cmp byte [eax + 0x1c], 0
je case.0x4037d2.32780
cmp byte [esi + 0xb0], 0
jne case.0x4037d2.32780
call fcn.004042b0
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x68]
mov cl, byte [eax + 0x1a]
push 5
push 0
push 0
push edx
mov byte [esi + 0x111], cl
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x68]
mov al, byte [eax + 0x1b]
push 5
push 0
push 0
push ecx
mov byte [esi + 0x112], al
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
pop esi
ret
fldz
mov dword [esi + 0x434], 0
fstp qword [esi + 0x108]
xor eax, eax
pop esi
ret
mov dl, byte [esi + 0xb0]
mov byte [eax + 0x1c], dl
xor eax, eax
pop esi
ret
cmp byte [eax + 0x1d], 0
je 0x403929
cmp byte [esi + 0xae], 0
jne case.0x4037d2.32780
mov eax, esi
call fcn.004043e0
xor eax, eax
pop esi
ret
cmp byte [esi + 0xae], 0
je case.0x4037d2.32780
mov eax, esi
call fcn.00404410
xor eax, eax
pop esi
ret
mov cl, byte [esi + 0xae]
mov byte [eax + 0x1d], cl
xor eax, eax
pop esi
ret
Function at 0x403ac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45743c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], 0x45e978
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esi + 0x74], eax
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esi + 0x78], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov eax, 0x45f0a0
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edi
mov byte [esp + 0x14], 3
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esi + 0xe4], eax
mov byte [esp + 0x14], 4
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esi + 0xe8], eax
mov byte [esp + 0x14], 5
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esi + 0xf0], eax
mov byte [esp + 0x14], 6
push 0x7f89
push edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x2c], 0x2ee
mov dword [esi + 0x9c], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esi + 0xa0], eax
mov dword [esi + 0x84], edi
call fcn.00403990
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x403e20
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
xor ebx, ebx
cmp dword [esi + 0x84], 2
push 5
setne al
push 0x2fa7
push 0x45e908
dec eax
and eax, dword [esp + 0x18]
mov dword [esi + 0x30], eax
call fcn.00433314
add esp, 0xc
push eax
push 0xe3
lea eax, [esi + 0x88]
call fcn.0040bcf0
push 5
push 0x2fa7
push 0x45e908
call fcn.00433314
add esp, 0xc
push eax
push 0xe5
lea eax, [esi + 0x90]
call fcn.0040bcf0
call fcn.00403990
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esi + 0x9c], eax
cmp eax, ebx
je 0x403ee1
lea ecx, [esp + 0xc]
push ecx
push ebx
push esi
push 0x404200
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edx, dword [esi + 0x9c]
push 0xffffffffffffffff
push edx
mov dword [esi + 0x98], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x9c], ebx
pop esi
mov al, 1
pop ebx
ret 4
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x403fd0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4590a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push edi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov ebx, eax
xor eax, eax
push 0x7f00
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x404190
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x1b
push 0x1d53
push 0x45e910
mov dword [esp + 0x38], eax
call fcn.00433314
mov dword [esp + 0x44], eax
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov edi, dword [esi + 0x30]
neg edi
sbb edi, edi
lea ecx, [esp + 0x10]
and edi, 0xfffc0004
push ecx
add edi, 0x40000
call fcn.0042954a
add esp, 4
push esi
push ebx
push 0
mov dword [esp + 0x54], 0
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x48]
mov eax, dword [eax]
push edx
mov edx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x34]
push ecx
push edx
push 0x80080000
push eax
push 0x1b
push 0x1d53
push 0x45e910
call fcn.00433314
add esp, 0xc
push eax
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0x68], eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404105
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x68]
test eax, eax
je 0x404167
movzx ecx, byte [esi + 0xaf]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0xaf], 0
je 0x404149
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0x68]
push 0
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
test eax, eax
je 0x404167
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404fa0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
push esi
mov esi, eax
push edi
lea eax, [esp + 0x10]
push eax
call ebx
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push eax
push ecx
lea edx, [esi + 0xb4]
push edx
call edi
test eax, eax
je 0x404ffc
cmp byte [esi + 0x112], 0
je 0x405081
call fcn.004042b0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp byte [esi + 0x112], 0
je 0x405081
cmp byte [esi + 0xae], 0
je 0x405048
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esi + 0xd4]
push edx
call edi
test eax, eax
je 0x405048
mov eax, dword [esi + 0x68]
push 0x101
push 0
push 0
push eax
mov byte [esi + 0xae], 0
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp byte [esi + 0x112], 0
je 0x405081
cmp byte [esi + 0xae], 0
jne 0x405081
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esi + 0xc4]
push eax
call edi
test eax, eax
je 0x405081
mov eax, esi
call fcn.004043e0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov byte [esi + 0xac], 1
add esi, 0xa4
push esi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x409a70
Capabilities:
Enumerate gui resources

Disassembly:
mov ecx, 0x472a10
call fcn.00402b00
mov ecx, 0x472a0c
call fcn.00402b00
xor eax, eax
push eax
push 0x409af0
push eax
mov word [0x4729f0], ax
call dword [sym.imp.KERNEL32.DLL_EnumResourceTypesA]
mov ecx, dword [0x472a0c]
cmp dword [ecx - 0xc], 0
jle 0x409ae0
xor edx, edx
cmp dx, word [0x4729f0]
je 0x409ae0
mov ecx, dword [esp + 4]
push ebx
push 0x472a10
mov bl, 1
call fcn.00402d80
mov ecx, dword [esp + 0xc]
push 0x472a0c
call fcn.00402d80
movzx eax, word [0x4729f0]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov al, bl
pop ebx
ret
xor al, al
ret
Function at 0x409b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4565d6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x46f1b0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea ecx, [esp + 0x1c]
mov esi, edx
call fcn.00402830
mov dword [esp + 0x12c], 0
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
cmp eax, 4
jne 0x409d27
test esi, 0xffff0000
jne 0x409d27
mov ecx, 0x64
cmp cx, si
ja 0x409d27
mov edx, 0xc8
cmp si, dx
jae 0x409d27
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
setne al
mov byte [esp + 0x17], al
test al, al
je 0x409d2c
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebp, eax
test ebp, ebp
setne al
mov byte [esp + 0x17], al
test al, al
je 0x409d2c
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x409d27
cmp ebx, 0x12
jbe 0x409d27
lea eax, [esp + 0x18]
push eax
mov ecx, 0x472a0c
mov byte [esp + 0x1b], 1
call fcn.00402d80
mov edx, dword [0x472a10]
mov eax, dword [edx - 8]
mov word [0x4729f0], si
lea esi, [ebx - 0x12]
mov ecx, 1
sub ecx, dword [edx - 4]
lea ebp, [esi + 1]
add edi, 2
sub eax, ebp
or eax, ecx
lea ebx, [edi + 0x10]
jge 0x409ca9
push ebp
mov ecx, 0x472a10
call fcn.00402fc0
mov edx, dword [0x472a10]
push esi
mov ebp, edx
push ebx
push ebp
call fcn.00442fd0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0043de44
push 0x10
push edi
push esi
push ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 1
call fcn.0043df69
mov eax, esi
cmp esi, 0xffffffff
jne 0x409cee
mov eax, dword [0x472a10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00440085
add esp, 8
test eax, eax
jl 0x409d1d
mov ecx, dword [0x472a10]
cmp eax, dword [ecx - 8]
jg 0x409d1d
mov dword [ecx - 0xc], eax
mov ecx, dword [0x472a10]
mov byte [ecx + eax], 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0
call fcn.0043de5b
jmp 0x409d2c
push 0x80070057
call fcn.00401000
mov byte [esp + 0x17], 0
cmp byte [esp + 0x17], 0
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409d5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0043eaba
add esp, 0x11c
ret
Function at 0x40bcf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, eax
add ebx, 4
cmp dword [ebx], 0
push esi
mov byte [esp + 0xb], 0
je 0x40bd16
mov eax, dword [ebx]
test eax, eax
je 0x40bd16
mov dword [ebx], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0x10]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x40bde4
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40bdd9
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push edi
push 2
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push edi
push ebp
push eax
call fcn.00442fd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
lea edx, [esp + 0x1c]
push edx
push 1
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x40bdb4
mov eax, dword [esp + 0x1c]
push ebx
push 0x45c630
push 0
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov bl, 1
test eax, eax
jge 0x40bdb8
mov bl, byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [esp + 0x1c]
pop edi
test eax, eax
je 0x40bdd0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebp
pop esi
mov al, bl
pop ebx
pop ecx
ret 8
mov al, byte [esp + 0xf]
pop ebp
pop esi
pop ebx
pop ecx
ret 8
mov al, byte [esp + 0xb]
pop esi
pop ebx
pop ecx
ret 8