joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466410
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x466427
add esp, 0xfffffff0
call fcn.00403500
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f850
mov eax, dword [0x486d18]
cmp word [eax + 2], 0
jne 0x46644f
mov eax, dword [0x486d18]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00467b90
mov eax, dword [0x486ddc]
cmp word [eax + 2], 0
jne 0x466469
mov eax, dword [0x486ddc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00467d88
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417b30]
call fcn.004031ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417b30]
call fcn.004031ac
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421dbc]
call fcn.00429684
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4665f0
mov eax, dword [0x486c08]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429a54
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x468328
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x486c08]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c854
test eax, eax
je 0x46655e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a50
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c87c
test eax, eax
je 0x466572
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040419c
mov eax, dword [0x486aa4]
cmp byte [eax], 0
jne 0x4665a6
mov eax, ebx
call fcn.00466718
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00468504
mov eax, ebx
call fcn.00468ec8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4665e6
call fcn.00403558
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466998
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x487be0]
cmp dword [eax + 0x30], 0
je 0x466a42
cmp dword [ebx + 0x94], 0
jne 0x466a3c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x466928
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x466a3c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x466a02
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x466a3c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419e98
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x466a11
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4675a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4675d9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040401c
jmp 0x4675e6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f80
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4686e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x468721
mov eax, esi
call fcn.0044e89c
test al, al
je 0x468721
mov eax, dword [ebx + 0x84]
call fcn.0044e598
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x468721
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044e598
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46bde8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46be16
mov eax, ebx
call fcn.0046c89c
cmp dword [ebx + 0x40], 0
je 0x46be0f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46be87
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46be79
cmp dword [ebx + 8], 0
je 0x46be38
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46be4a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46be79
cmp dword [ebx + 8], 0
je 0x46be2b
cmp eax, 3
je 0x46be5d
dec eax
jne 0x46be2b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46be2b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46be2b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46bea5
cmp dword [ebx + 0x14], 0xcc
je 0x46bea5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046beb0
pop ebx
ret
Function at 0x40eaf6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestCeilingFloor.exe_gMozillaPoisonSize], eax
call fcn.0040bf45
pop ecx
mov ecx, dword [sym.TestCeilingFloor.exe_gMozillaPoisonSize]
mov dword [sym.TestCeilingFloor.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40eb2e
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestCeilingFloor.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x40b585
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40b5c9
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40b598
jmp 0x40b5c9
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40b5b9
pop esi
pop ebp
ret

Function at 0x40c363
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40c398
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40c3c2
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40c3c2
test edi, edi
je 0x40c38f
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40c38f
test edi, edi
je 0x40c3ca
mov eax, edi
jmp 0x40c391
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40c391
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040f7ee
add esp, 0xc
int3
Function at 0x40f822
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonSize], eax
call fcn.0040c363
pop ecx
mov ecx, dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonSize]
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40f85a
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x405188], 0x30
mov dword [0x40518c], 0x1000
mov dword [0x405190], 0x401bb0
mov dword [0x405194], 0
mov dword [0x405198], 0
push dword [0x405050]
pop dword [0x40519c]
mov dword [0x4051a8], 0x10
mov dword [0x4051b0], 0x405092
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x4051a0], eax
mov dword [0x4051b4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x4051a4], eax
push 0x405188
call sub.user32.dll_RegisterClassExA
call fcn.004012f0
push 0
push dword [0x405050]
push 0
push 0
push pe_nt_image_headers32
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Form
push str.proga
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x40517c], eax
push 0
push dword [0x40517c]
call sub.user32.dll_ShowWindow
push dword [0x40517c]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x4051b8
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401745
push 0x4051b8
call sub.user32.dll_TranslateMessage
push 0x4051b8
call sub.user32.dll_DispatchMessageA
jmp 0x40171b
mov eax, dword [0x405218]
lea ecx, [0x405050]
add eax, dword [0x40510e]
call eax
mov eax, dword [0x4051c0]
push eax
call sub.kernel32.dll_ExitProcess
mov esp, ebp
pop ebp
ret
Function at 0x401f60
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 0x401f79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x401fb4
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401fb0
lea ebx, [ebx]
cmp esi, eax
jae 0x401fb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401fa0
cmp esi, eax
jb 0x401fba
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 0x405cf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
test ebx, ebx
jne 0x405cfd
xor eax, eax
add esp, 0x10
ret
mov cl, byte [esi + 0xe]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GlobalSize]
push edi
mov eax, 0x4d42
mov edi, 1
push esi
shl edi, cl
mov word [esp + 0xc], ax
call ebp
add eax, 0xe
push ebx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xe], eax
mov eax, dword [esi]
push 0xe
mov word [esp + 0x18], dx
mov word [esp + 0x16], cx
lea edx, [esp + 0x10]
lea ecx, [eax + edi*4 + 0xe]
push 1
push edx
mov dword [esp + 0x22], ecx
call fcn.00579dd2
add esp, 0x10
push ebx
push esi
call ebp
push eax
push 1
push esi
call fcn.00579dd2
add esp, 0x10
pop edi
mov eax, 1
pop ebp
add esp, 0x10
ret
Function at 0x40adc0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x98
mov eax, dword [0x614b80]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
call fcn.0040b5e0
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40af23
push edi
push esi
call fcn.005684a2
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40af19
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x5cc860
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40af19
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x5cc864
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40aef9
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 2]
movzx eax, word [eax]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40aeab
mov edx, dword [esp + 0x14]
push edx
lea eax, [ebp + 0x10]
push 0x100
push eax
call fcn.00439b20
add esp, 0xc
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40aef9
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [ebp + 0x110]
push 0x100
push edx
call fcn.00439b20
add esp, 0xc
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xa]
mov dword [ebp], ecx
movzx edx, word [eax + 8]
mov dword [ebp + 4], edx
movzx ecx, word [eax + 0xe]
mov dword [ebp + 8], ecx
movzx edx, word [eax + 0xc]
mov dword [ebp + 0xc], edx
push edi
call fcn.005684ad
add esp, 4
pop edi
mov ecx, dword [esp + 0xa0]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0057943e
add esp, 0x98
ret 4
Function at 0x40bfe0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
cmp dword [esi + 0xa8], 0
je 0x40bfee
xor eax, eax
pop ecx
ret
lea eax, [esp]
push eax
push 4
push esi
push 0x40c0c0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0xa8], eax
test eax, eax
je 0x40bfea
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov ecx, dword [esi + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, 1
pop ecx
ret

Function at 0x40c110
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x59d36b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x614b80]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [edi + 0x8cc]
cmp dword [eax + 0xa60], 1
je 0x40c2fe
mov ecx, dword [eax + 0xa64]
xor ebp, ebp
cmp ecx, ebp
je 0x40c2fe
push eax
call fcn.0042f8d0
cmp dword [edi + 0xd70], ebp
jne 0x40c262
cmp dword [edi + 0xd74], ebp
jne 0x40c262
mov ecx, dword [edi + 0xd88]
cmp ecx, ebp
je 0x40c1c5
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
je 0x40c1a6
mov eax, dword [edi + 0xd88]
mov dword [eax + 8], 7
mov ecx, dword [edi + 0xd88]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov esi, dword [edi + 0xd88]
mov ebx, 0x17013200
call fcn.00402b80
mov ecx, dword [edi + 0xd88]
mov dword [ecx + 0xc], 3
jmp 0x40c218
push 0x54
call fcn.00568473
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x40c1e2
call fcn.00402a60
jmp 0x40c1e4
xor eax, eax
mov dword [esp + 0x24], 0xffffffff
mov ebx, 0x17013200
mov esi, eax
mov dword [edi + 0xd88], eax
call fcn.00402b80
mov edx, dword [edi + 0xd88]
mov dword [edx + 0xc], 3
mov ecx, dword [edi + 0xd88]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [edi + 0xd88]
mov dword [eax + 0x14], ebp
mov ecx, dword [edi + 0xd88]
mov dword [ecx + 0x18], ebp
mov edx, dword [edi + 0xd88]
mov dword [edx + 0x1c], ebp
mov eax, dword [edi + 0xd88]
mov dword [eax + 8], 1
mov ecx, dword [edi + 0xd88]
mov esi, 6
jmp 0x40c250
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 0xd88]
cmp dword [ecx + 8], esi
jne 0x40c250
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x8cc]
xor edx, edx
mov word [ecx + 0x404], dx
cmp eax, ebp
je 0x40c293
push eax
mov eax, dword [edi + 0x8cc]
add eax, 0x404
push 0x100
push eax
call fcn.00439b90
add esp, 0xc
mov edx, dword [edi + 0x8cc]
lea ecx, [esp + 0x18]
push ecx
push 4
push edx
push 0x40c570
push ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0xac], eax
cmp eax, ebp
je 0x40c2e3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, dword [edi + 0xac]
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov eax, dword [0x62727c]
cmp eax, ebp
je 0x40c2f3
xor edx, edx
call fcn.00414560
mov eax, dword [edi + 0x8cc]
call fcn.0042f920
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x40c320
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x59e11b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x614b80]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [edi + 0x8cc]
mov eax, dword [esi + 0xa64]
xor ebp, ebp
cmp eax, ebp
je 0x40c555
mov eax, dword [0x62727c]
cmp eax, ebp
je 0x40c36d
lea edx, [ebp + 1]
call fcn.00414560
mov dword [esi + 0xa64], ebp
mov eax, dword [0x6271e8]
cmp eax, ebp
je 0x40c391
mov eax, dword [eax + 0x20]
cmp eax, ebp
je 0x40c391
push ebp
push ebp
push 0x429
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0xd70], ebp
jne 0x40c492
cmp dword [edi + 0xd74], ebp
jne 0x40c492
mov ecx, dword [edi + 0xd88]
cmp ecx, ebp
je 0x40c3f7
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
je 0x40c3d8
mov eax, dword [edi + 0xd88]
mov dword [eax + 8], 7
mov ecx, dword [edi + 0xd88]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov esi, dword [edi + 0xd88]
mov ebx, 0x17013200
call fcn.00402b80
mov ecx, dword [edi + 0xd88]
mov dword [ecx + 0xc], 3
jmp 0x40c44a
push 0x54
call fcn.00568473
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
cmp eax, ebp
je 0x40c414
call fcn.00402a60
jmp 0x40c416
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov ebx, 0x17013200
mov esi, eax
mov dword [edi + 0xd88], eax
call fcn.00402b80
mov edx, dword [edi + 0xd88]
mov dword [edx + 0xc], 3
mov ecx, dword [edi + 0xd88]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [edi + 0xd88]
mov dword [eax + 0x14], ebp
mov ecx, dword [edi + 0xd88]
mov dword [ecx + 0x18], ebp
mov edx, dword [edi + 0xd88]
mov dword [edx + 0x1c], ebp
mov eax, dword [edi + 0xd88]
mov dword [eax + 8], 1
mov ecx, dword [edi + 0xd88]
mov esi, 6
lea ecx, [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 0xd88]
cmp dword [ecx + 8], esi
jne 0x40c480
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0x8cc]
push ecx
add edx, 0x604
push 0x200
push edx
call fcn.00439b90
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x8cc]
push eax
add ecx, 4
push 0x200
push ecx
call fcn.00439b90
mov edx, dword [edi + 0x8cc]
mov eax, dword [esp + 0x48]
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
push 4
mov dword [edx + 0xa58], eax
mov edx, dword [edi + 0x8cc]
push edx
push 0x40c5f0
push ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0xac], eax
cmp eax, ebp
je 0x40c517
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, dword [edi + 0xac]
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
jmp 0x40c555
mov eax, dword [0x62727c]
cmp eax, ebp
je 0x40c527
xor edx, edx
call fcn.00414560
mov ecx, dword [edi + 0x8cc]
mov dword [ecx + 0xa64], 1
mov eax, dword [0x6271e8]
cmp eax, ebp
je 0x40c555
mov eax, dword [eax + 0x20]
cmp eax, ebp
je 0x40c555
push ebp
push ebp
push 0x42a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc