joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae050
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
push 0x39
xor eax, eax
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov bl, 1
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10014180
lea eax, [ebp + 8]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10041160
add esp, 0xc
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push ecx
push 0
push 0x20006
push 1
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10047d22
xor bl, bl
jmp 0x10047d53
push 4
lea eax, [ebp + 0x24]
push eax
push 4
push 0
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10047d8d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10047d83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047e2a
push edx
push ecx
call fcn.10076048
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x10047dd7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10047dcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047e2a
push edx
push ecx
call fcn.10076048
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10047e0d
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10047e03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047e2a
push edx
push ecx
call fcn.10076048
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret
call fcn.10087516
int3
Function at 0x10049660
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.100837f0
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.100837f0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100496c3
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x100496c8
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x100496e6
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x100496e8
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x100496fc
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x100e1724]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1004c210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ax, word [ebp + 0xc]
mov ecx, 0x1773
cmp cx, ax
jne 0x1004c23e
push 0
push 0
push 1
push 0
push str.pop_big_btn_click
jmp 0x1004c255
mov ecx, 0x1774
cmp cx, ax
jne 0x1004c261
push 0
push 0
push 1
push 0
push str.pop_big_pic_click
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1004c27c
push dword [esi + 0x7c]
push 1
push 0x4cb
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x74]
push 0
push 0
push 0x4cf
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x1004cbf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push dword [esi + 0x2c]
call edi
test eax, eax
jne 0x1004cc7d
mov ecx, dword [0x100da058]
mov edx, dword [0x100da054]
push eax
push dword [0x100e1720]
push eax
push dword [esi - 0x20]
mov eax, dword [0x100da060]
sub eax, ecx
push eax
mov eax, dword [0x100da05c]
sub eax, edx
push eax
push ecx
push edx
push 3
push 0
push str.tooltips_class32
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x12c
push 0
push 0x418
push eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x401
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x2c]
call edi
test eax, eax
je 0x1004ce25
cmp dword [ebp + 0xc], 0
je 0x1004cd84
lea edi, [esi + 0x30]
push ebx
push edi
call fcn.1000cdc0
add esp, 8
test al, al
je 0x1004ce25
push ebx
mov ecx, edi
call fcn.10009ac0
mov edi, dword [esi - 0x20]
lea eax, [ebp - 0x34]
push 0x30
push 0
push eax
call fcn.100837f0
push 0x110
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x114
push 0
push eax
call fcn.100837f0
add esp, 0x18
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004cd00
cmp dword [ebp - 0x144], 6
mov eax, 0x30
jae 0x1004cd05
mov eax, 0x2c
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100e1724]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x433
push dword [esi + 0x2c]
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call edi
push 0
push dword [ebx]
lea ecx, [ebp - 0x34]
push 0
push 0
push dword [esi - 0x20]
push 0
call fcn.10049660
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [esi + 0x2c]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esi - 0x20]
lea eax, [ebp - 0x34]
push 0x30
push 0
push eax
call fcn.100837f0
push 0x110
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x114
push 0
push eax
call fcn.100837f0
add esp, 0x18
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004cdd3
cmp dword [ebp - 0x144], 6
mov eax, 0x30
jae 0x1004cdd8
mov eax, 0x2c
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100e1724]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x433
push dword [esi + 0x2c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi + 0x30]
call fcn.1000a6b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004e7f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae909
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100dbc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
push dword [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push str.flash_wake
push str.CouponHelper
mov dword [ebp - 4], 0
call esi
mov edi, 0x100b4348
test eax, eax
mov edx, 0x100b530c
mov ecx, edi
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x18]
call fcn.10009b50
push dword [ebx + 4]
mov dword [ebp - 4], 1
push 0
push str.hide_big_coupon
push str.CouponHelper
call esi
test eax, eax
mov ecx, edi
mov eax, 0x100b530c
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.10009b50
push dword [ebx + 4]
mov byte [ebp - 4], 2
push 1
push str.radar
push str.CouponHelper
call esi
test eax, eax
lea ecx, [ebp - 0x10]
mov eax, 0x100b530c
cmove edi, eax
push edi
call fcn.10009b50
mov byte [ebp - 4], 3
call fcn.1000a9e0
mov ecx, eax
test ecx, ecx
je 0x1004e9c0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push str._flash_icon_:
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.10009c40
test al, al
jne 0x1004e8f0
push 0xe
push str._flash_icon_:
mov ecx, esi
call fcn.10009e80
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x1c], 1
push dword [eax - 0xc]
push eax
call fcn.1004d340
push 0x10
push str.__big_pop_wake_:
mov ecx, esi
call fcn.1004d340
mov eax, dword [ebp - 0x14]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.1004d340
push 0xe
push str.__radar_wake_:
mov ecx, esi
call fcn.1004d340
mov eax, dword [ebp - 0x10]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.1004d340
push 1
push 0x100b7538
mov ecx, esi
call fcn.1004d340
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e970
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e98e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1004e9aa
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000a7c0
int3
Function at 0x1004e9d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae93b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], edi
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 4]
push 0x104
push eax
push 0x100c71bc
push 0x100b7790
push str.CouponHelper
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.1000a9e0
mov ecx, eax
test ecx, ecx
je 0x1004eabd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10009c40
test al, al
jne 0x1004ea9e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ea80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10009e80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000a7c0
int3
Function at 0x10051080
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x100510d7
mov ebx, dword [ebp + 0xc]
mov esi, dword [edi + 0x28]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.1004a9c0
mov dword [edi + 0x28], esi
test eax, eax
jne 0x10051148
cmp ebx, 0x10
jne 0x100510e0
push dword [edi + 4]
mov dword [edi + 0x70], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [edi + 0x70], 0
jne 0x10051148
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
cmp ebx, 0x111
jne 0x1005123e
mov eax, dword [ebp + 0x10]
mov ecx, 0x138a
movzx eax, ax
cmp cx, ax
jne 0x10051154
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 1
push 0
push str.box_intro_close
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x4cb
push dword [edi + 0x74]
call esi
push 0
push 0
push 0x10
push dword [edi + 4]
call esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
mov ecx, 0x138c
cmp cx, ax
jne 0x10051213
push 0
push 0
push 1
push 0
push str.box_intro_next
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x10051199
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1c]
test eax, eax
je 0x10051199
mov eax, dword [edi + 0x78]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x100511b7
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1c]
test eax, eax
je 0x100511b7
mov eax, dword [edi + 0x7c]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x100511db
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1c]
test eax, eax
je 0x100511db
mov eax, dword [edi + 0x84]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x100511ff
call fcn.10060be0
mov eax, dword [edi + 0x88]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
jmp 0x1005113f
push 0
push 0
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1005113f
mov ecx, 0x138b
cmp cx, ax
jne 0x100510d7
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 1
push 0
push str.box_intro_know
jmp 0x10051114
cmp ebx, 0x3402
jne 0x100510d7
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x1005113f
cmp dword [edi + 0x7c], 0
je 0x1005113f
mov eax, dword [ecx]
push 0
push 1
push ecx
call dword [eax + 0x20]
mov eax, dword [edi + 0x7c]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
jmp 0x1005113f
Function at 0x10052bf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab775
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x100dbc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
je 0x10052c6f
lea eax, [ebp - 0x20]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0xd], 1
test al, al
jne 0x10052c73
mov byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x1c]
or ebx, 0xffffffff
test esi, esi
je 0x10052ca2
test byte [ebp - 0x14], 2
je 0x10052ca2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10052ca2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10052ca2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10052ccf
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10052ccf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10052ccf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x10052d48
lea eax, [ebp - 0x30]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 2
call fcn.10015e70
mov esi, eax
push str.CloseWnd
push esi
mov byte [ebp - 4], 3
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0xc8]
call fcn.10012280
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10052d48
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10052d48
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10052d48
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 4]
call esi
push 0
push dword [ebx + 0xa8]
call esi
push dword [ebx + 0xa8]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
call esi
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x10052dad
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10052d92
mov eax, dword [ebx + 0x190]
push dword [eax + 4]
call esi
mov ecx, dword [ebx + 0x190]
test ecx, ecx
je 0x10052da3
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [ebx + 0x190], 0
call fcn.10053070
mov ecx, eax
call fcn.10037e40
mov ecx, ebx
call fcn.10052ba0
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10054140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab775
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x100dbc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
je 0x100541bf
lea eax, [ebp - 0x20]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0xd], 1
test al, al
jne 0x100541c3
mov byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x1c]
or ebx, 0xffffffff
test esi, esi
je 0x100541f2
test byte [ebp - 0x14], 2
je 0x100541f2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100541f2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100541f2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1005421f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1005421f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1005421f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x10054298
lea eax, [ebp - 0x30]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 2
call fcn.10015e70
mov esi, eax
push str.OnClose
push esi
mov byte [ebp - 4], 3
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0xc8]
call fcn.10012280
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10054298
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10054298
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10054298
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push 0
push 0
push 0
push str.wnd_close
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 4]
call esi
push 0
push dword [ebx + 0xa8]
call esi
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x1005430c
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100542f1
mov eax, dword [ebx + 0x190]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebx + 0x190]
test ecx, ecx
je 0x10054302
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [ebx + 0x190], 0
push 1
call fcn.10021db0
mov ecx, eax
call fcn.10050650
mov ecx, ebx
call fcn.10052bf0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100554c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 3
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push esi
mov esi, ecx
jne 0x10055547
cmp dword [esi + 0x178], 0
je 0x10055547
mov eax, dword [esi + 0x18c]
mov dword [esi + 0x178], 0
test eax, eax
je 0x100555ce
push dword [eax + 4]
call ebx
test eax, eax
je 0x100555ce
mov eax, dword [esi + 0x18c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100555ce
mov eax, dword [esi + 0x18c]
push 0x44
push 0
push 0
push 0
push 0
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x18c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x100555ce
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x10055584
push dword [eax + 4]
call ebx
test eax, eax
je 0x10055569
mov eax, dword [esi + 0x18c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 0x18c]
test ecx, ecx
je 0x1005557a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x18c], 0
cmp dword [ebp + 0xc], 1
jne 0x100555ce
push 0x502
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0
push 0
push 0
push 1
mov dword [esi + 0x168], 0
call fcn.10053070
mov ecx, eax
call fcn.10037eb0
push 0
push 0
push 0
push 0
push 1
call fcn.10053070
mov ecx, eax
call fcn.10037eb0
cmp dword [ebp + 0x10], 0
je 0x1005566c
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x184]
test eax, eax
je 0x10055620
push dword [eax + 4]
call ebx
test eax, eax
je 0x10055605
mov eax, dword [esi + 0x184]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x10055616
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x184], 0
mov eax, dword [esi + 0x188]
test eax, eax
je 0x1005565d
push dword [eax + 4]
call ebx
test eax, eax
je 0x10055642
mov eax, dword [esi + 0x188]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x10055653
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x188], 0
mov ecx, esi
call fcn.10052bf0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10