joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfc22
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x30]
call fcn.0040e060
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e320
push dword [ebx + 0x28]
call fcn.00589955
mov edx, dword [ebx + 0x24]
or esi, 0xffffffff
add esp, 4
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4095ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x20]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4095d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x1c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4095ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x18]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409608
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x409635
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x409635
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x409635
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 1
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x409662
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x409662
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x409662
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 2
mov edi, dword [ebx + 4]
test edi, edi
je 0x40968e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40968e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40968e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
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 0x40aa70
Capabilities:
Get file size

Disassembly:
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40aa95
xor eax, eax
pop edi
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
Function at 0x40aab0
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40aab8
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40aadd
xor eax, eax
pop edi
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40ab00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfcdf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0x28]
push esi
mov dword [esi], vtable.CWebViewMgr.0
mov dword [esi + 4], vtable.CWebViewMgr.1.0
call fcn.0040d9c0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x40ab9d
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [ebp - 4], 4
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x40abc1
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x54], eax
mov byte [ebp - 4], 5
lea eax, [esi + 0x24]
push dword [ebp - 0x10]
mov dword [esi + 0x3c], 0
push eax
push 0x662430
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], 0
call fcn.0040edd0
add esp, 0xc
movzx eax, ax
lea ecx, [esi + 4]
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.0040ed20
mov eax, dword [esi + 0x2c]
mov dword [eax + 0x38], 0x40d690
mov dword [eax + 0x3c], 0
mov eax, dword [esi + 0x2c]
mov dword [eax + 0x30], 0x40d5d0
mov dword [eax + 0x34], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40add0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfd48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6619c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x32
xor eax, eax
mov dword [ebp - 0x14], 7
push str.https:__cdn.pdfxd.com_download_pdf_cefnew_small.7z
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407250
push str.cefncefnew_small.7z
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00408ee0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040b530
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004090c0
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40ae61
mov eax, dword [eax]
jmp 0x40ae63
xor eax, eax
push eax
lea ecx, [ebp - 0x34]
call fcn.00406970
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40ae7f
call fcn.00409220
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aea0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x40aeb0
call fcn.00409220
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aed6
xor ebx, ebx
jmp 0x40aee8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.0047f6d0
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
shr ebx, 0x1f
addsd xmm1, qword [ebx*8 + 0x63f470]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x40af21
comisd xmm0, xmmword [0x63f2f0]
jbe 0x40af21
mov esi, 1
jmp 0x40af23
xor esi, esi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40af3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40af54
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004086c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058995a
mov esp, ebp
pop ebp
ret
Function at 0x40b530
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfe29
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov edx, str.webview
mov dword [ebp - 0x14], 0
call fcn.0047d3e0
mov dword [ebp - 4], 0
push dword [esi]
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b596
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.cef
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.00406720
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b5bf
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b5da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b900
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfee0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.0040b530
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
or edi, 0xffffffff
test eax, eax
je 0x40ba77
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40ba77
xor esi, esi
push 0x631a14
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00406720
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [esi + 0x6310d8]
mov edx, eax
call fcn.00406720
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b9a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
test eax, eax
mov eax, edi
je 0x40ba65
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b9cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, 0x30
jb 0x40b960
push str.ceflibcef.dll
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00406720
add esp, 4
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004825c0
mov byte [ebp - 4], 3
mov ecx, dword [0x67c318]
test ecx, ecx
jne 0x40ba11
push 0x80004005
call fcn.00402480
push ecx
push dword [eax]
call fcn.005aadd3
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
test eax, eax
mov eax, edi
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ba3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x18]
movzx esi, bl
add edx, 0xfffffff0
xor esi, 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ba79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ba79
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ba77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40ba98
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
Function at 0x40d3c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0250
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
push dword [eax + 0x44]
lea ebx, [eax + 0x44]
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d585
lea ecx, [ebp - 0x10]
call fcn.0040b530
mov dword [ebp - 4], edi
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.00499700
neg eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
sbb edi, edi
add edx, 0xfffffff0
inc edi
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d43e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x40d453
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test edi, edi
jne 0x40d530
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
movlpd qword [ebp - 0x28], xmm0
call fcn.0040b530
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.0046deb0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d4b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
lea ecx, [ebp - 0x18]
call fcn.004825c0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx]
cmp dword [ecx - 4], 1
jle 0x40d4d6
push dword [ecx - 0xc]
mov ecx, ebx
call fcn.00407040
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.0058a850
mulsd xmm0, qword [0x63f300]
sub esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
movsd qword [esp], xmm0
push dword [eax]
call fcn.0040aa70
push eax
lea eax, [ebp - 0x10]
push str.CEFUnzip_fileSize:_d_md5:_s_DiskFreeSpace:_.2f
push eax
call fcn.00408880
mov byte [ebp - 4], 1
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d52d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x40d541
call fcn.0040bab0
mov ecx, ebx
call fcn.00406ad0
mov ecx, 0x631140
test edi, edi
mov eax, 0x631138
push esi
cmove eax, ecx
push eax
push 0x631118
call fcn.0046d540
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d585
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
push 0
push edi
push 0xdadb
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
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 0x410c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x410c3e
mov eax, 0x8000ffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x410c68
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x410c62
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x410d75
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x410c9e
cmp byte [edi + 0x18], al
je 0x410c92
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00410940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x410cd3
call fcn.00410940
push ecx
mov ecx, esi
mov edi, eax
call fcn.00410a80
test eax, eax
jns 0x410d73
test edi, edi
cmovns edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.00410b50
mov dword [esp + 0xc], eax
test eax, eax
jns 0x410d01
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esi
call fcn.00410a80
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x410cae
push 0
push 0
push ebx
mov ecx, esi
call fcn.00410b50
mov edi, eax
test edi, edi
jns 0x410d3b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esi
call fcn.00410a80
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x410e10
push 0
push 0
call fcn.005b3d65
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x410cae
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410d73
call fcn.00410940
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0534
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
lea edi, [esi + 0x20]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x24], vtable.CSingletonBase_class_CCCMgr_.0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x28]
push esi
mov dword [esi], vtable.CCCMgr.0
mov dword [esi + 0x24], vtable.CCCMgr.1.0
call fcn.00411c60
mov byte [ebp - 4], 2
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x411423
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
mov dword [esi + 0x40], 0
push edi
push 0x6624f0
call fcn.0040edd0
add esp, 0xc
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.0040ed20
mov eax, dword [esi + 0x2c]
mov ecx, esi
mov dword [eax + 0x38], 0x4116c0
mov dword [eax + 0x3c], 0
call fcn.00411740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0924
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
lea edi, [esi + 0x20]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x24], vtable.CCCCallback.0
mov dword [esi + 0x28], vtable.CSingletonBase_class_CKPMgr_.0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x2c]
push esi
mov dword [esi], vtable.CKPMgr.1.0
mov dword [esi + 0x24], vtable.CKPMgr.2.0
mov dword [esi + 0x28], vtable.CKPMgr.0
call fcn.00414d40
mov byte [ebp - 4], 2
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x413c71
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [ebp - 4], 3
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x413c95
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
push edi
push 0x662610
call fcn.0040edd0
add esp, 0xc
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.0040ed20
mov eax, dword [esi + 0x30]
mov dword [eax + 0x30], 0x413f70
mov dword [eax + 0x34], 0
mov eax, dword [esi + 0x30]
mov dword [eax + 0x38], 0x40d690
mov dword [eax + 0x3c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414700
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0a68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x6619c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x1c], 0
mov ecx, dword [eax]
mov eax, dword [0x67ca0c]
cmp eax, dword [ecx + 4]
jle 0x414791
push 0x67ca0c
call fcn.00589aca
add esp, 4
cmp dword [0x67ca0c], 0xffffffff
jne 0x414791
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x41476d
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5da150
mov dword [0x67ca10], eax
call fcn.00589f8d
push 0x67ca0c
call fcn.00589a8b
add esp, 8
mov eax, dword [0x67ca10]
cmp dword [eax - 0xc], 0
jne 0x41485e
push 0x631a14
lea ecx, [ebp - 0x18]
call fcn.00406970
push str.kittip
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406720
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov edx, dword [eax]
call fcn.0047d3e0
push eax
mov ecx, 0x67ca10
mov byte [ebp - 4], 2
call fcn.00407150
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414804
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414822
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x414841
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x67ca10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41485e
push eax
push dword [0x67ca10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [0x67ca10]
lea ecx, [ecx - 0x10]
call fcn.00407870
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4