joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440620
Capabilities:
Inspect load icon resource
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed228
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x54c1b4]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov edi, dword [sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push 0xfffffffffffffff0
mov esi, ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call ebx
and eax, 0xff3effff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
movzx eax, word [esi + 0x450]
mov ecx, dword [esi + 4]
push eax
push 0xfffffffffffffffa
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
push 1
push 0x80
push edx
call ebx
mov eax, dword [esi + 4]
push edi
push 0
push 0x80
push eax
call ebx
mov ecx, dword [esi + 4]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
call dword [0x51d3ac]
lea ecx, [esp + 0xa4]
call dword [0x51d3b8]
push 0
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x208], 0
mov ebx, dword [sym.Update.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
push edx
push 0
lea ecx, [esi + 0x348]
mov dword [esp + 0x24], vtable.CCustomCtrlBuildCallback.0
call ebx
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x2c], esp
call dword [0x51d3bc]
test eax, eax
jne 0x44079c
lea ecx, [esp + 0x1c]
call dword [0x51d408]
mov byte [esp + 0x200], 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
push eax
lea eax, [esp + 0x20]
push 0x51769c
push eax
call dword [0x51d414]
add esp, 0xc
lea ecx, [esp + 0x1c]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x200], 0
call dword [0x51d40c]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x200], 0xffffffff
call dword [0x51d3c0]
or eax, 0xffffffff
jmp 0x4407c8
push eax
mov ecx, edi
call dword [0x51d3b0]
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x200], 0xffffffff
call dword [0x51d3c0]
xor eax, eax
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4446a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2c90
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x54d674
lea ecx, [ebp - 0x2c]
call fcn.00403940
lea ecx, [esi + 0x8c]
push 0
push ecx
lea ebx, [esi + 0xa8]
lea edi, [esi + 0x70]
push edi
mov ecx, ebx
mov edx, eax
mov dword [ebp - 4], 0
call fcn.00408f30
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x49], al
jb 0x444719
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
cmp byte [ebp - 0x49], 0
je 0x44474c
cmp dword [edi + 0x14], 8
jb 0x444729
mov eax, dword [edi]
jmp 0x44472b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44474c
cmp dword [esi + 0x9c], 0
je 0x44474c
mov word [esi + 0xfd], 1
mov al, 1
jmp 0x4447b9
mov edx, 0x54d674
lea ecx, [ebp - 0x48]
call fcn.00403940
push 1
lea ecx, [esi + 0x8c]
push ecx
push edi
mov ecx, ebx
mov edx, eax
mov dword [ebp - 4], 1
call fcn.00408f30
add esp, 0xc
cmp dword [ebp - 0x34], 8
mov bl, al
jb 0x44478a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
test bl, bl
je 0x4447b7
cmp dword [edi + 0x14], 8
jb 0x444796
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4447b7
cmp dword [esi + 0x9c], 0
je 0x4447b7
mov word [esi + 0xfd], 0x101
mov al, 1
jmp 0x4447b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x445c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4c08
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x54c1b4]
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
mov ebx, 1
test byte [0x550018], bl
jne 0x445c50
or dword [0x550018], ebx
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
xor esi, esi
cmp dword [0x54ff94], esi
je 0x445def
test byte [0x550018], 1
jne 0x445c7f
or dword [0x550018], ebx
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
cmp dword [0x54ff7c], 8
mov eax, dword [0x54ff68]
jae 0x445c92
mov eax, 0x54ff68
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x445def
test byte [0x550018], 1
jne 0x445cc2
or dword [0x550018], ebx
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
lea eax, [ebp - 0x60]
mov edi, vtable.CVersionHelp.0
push eax
mov ecx, 0x54fef8
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
call fcn.004482a0
mov dword [ebp - 4], esi
test byte [0x550018], 1
jne 0x445d08
or dword [0x550018], ebx
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
lea ecx, [ebp - 0x74]
push ecx
mov ecx, 0x54ff84
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.004482a0
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004481a0
test al, al
jne 0x445def
mov edx, dword [0x54bf28]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf28
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
push 0x517b40
mov byte [ebp - 4], 2
call fcn.0042b7c0
push eax
mov edx, str.Setup
lea ecx, [ebp - 0x2c]
call fcn.0042be30
mov bl, 3
lea esi, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00403e00
mov esi, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], esi
jb 0x445d8b
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x445d96
lea ecx, [ebp - 0x2c]
push eax
push ecx
lea edi, [ebp - 0x4c]
call fcn.00407fa0
add esp, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x445db7
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
mov esi, dword [ebp - 0x4c]
xor edx, edx
mov ecx, esi
call fcn.00447fc0
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x445df3
call fcn.00407bb0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x445def
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x445e1a
call fcn.00407bb0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
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.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x446020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f13e8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
test byte [0x550018], 1
mov dword [ebp - 0x68], edi
jne 0x446071
or dword [0x550018], 1
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
push 0xffffffffffffffff
push edi
xor eax, eax
push 0x54ff68
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.004082e0
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x4460a4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44614a
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4460be
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4460d8
push 1
mov eax, 0x5118c0
lea ecx, [ebp - 0x2c]
call fcn.00407820
cmp dword [0x54d6bc], edi
je 0x446128
mov edi, 0x54d674
mov ecx, str.soyiba
call fcn.004073d0
test al, al
jne 0x44611a
mov ecx, 0x511968
call fcn.00446240
test al, al
je 0x446126
mov ecx, 0x51196c
call fcn.00446240
test al, al
je 0x446126
mov eax, edi
call fcn.00448920
test al, al
jne 0x446126
lea edx, [ebp - 0x2c]
push edx
call fcn.00447870
add esp, 4
xor edi, edi
mov dword [ebx + 0x10], edi
xor eax, eax
mov dword [ebx + 0x14], 7
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], ax
call fcn.00407a10
cmp dword [ebp - 0x18], 8
jmp 0x446215
test byte [0x550018], 1
jne 0x44616c
or dword [0x550018], 1
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
movzx edx, byte [0x54fff9]
push edx
lea esi, [ebp - 0x48]
call fcn.004023f0
add esp, 4
push 1
mov eax, 0x5118c0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00407820
lea esi, [ebp - 0x64]
call fcn.00403dc0
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00407720
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
jb 0x4461c0
mov eax, dword [ebp - 0x64]
push eax
call fcn.004bb4d8
add esp, 4
push 1
mov eax, 0x5118c0
lea ecx, [ebp - 0x48]
call fcn.00407820
mov dword [ebx + 0x10], edi
xor ecx, ecx
mov dword [ebx + 0x14], 7
lea edi, [ebp - 0x48]
mov esi, ebx
mov word [ebx], cx
call fcn.00407a10
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x4461fe
mov edx, dword [ebp - 0x48]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
jb 0x446223
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, ebx
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.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x44ff20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x54c1b4]
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
mov eax, dword [ebp + 8]
push 0xa
push 0x83
push 0
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x44fffc
test byte [0x55059c], 1
jne 0x44ffa6
or dword [0x55059c], 1
push 0x550520
mov dword [ebp - 4], eax
call fcn.00434510
push 0x4f7030
mov byte [0x550598], 0
call fcn.004bd58e
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x516330
push 0x550520
mov edx, str.Error
lea ecx, [ebp - 0x48]
call fcn.0042be30
mov edi, eax
mov esi, ebx
mov dword [ebp - 4], 1
call fcn.00407a10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x44ffe6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
mov ecx, dword [ebp - 0x4c]
push 3
push 0x518ef8
call fcn.00408810
xor al, al
jmp 0x45010f
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x50], eax
cmp eax, edi
jne 0x45005b
push 0x516328
call fcn.0042b7c0
push eax
mov edx, str.Error
lea ecx, [ebp - 0x48]
call fcn.0042be30
mov edi, eax
mov esi, ebx
mov dword [ebp - 4], 2
call fcn.00407a10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x44ffe6
mov edx, dword [ebp - 0x48]
push edx
jmp 0x44ffde
lea edx, [esi + 0x54]
mov dword [ebp - 0x5c], esi
mov esi, 8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], 0x44fed0
cmp dword [edx + 0x14], esi
jb 0x450077
mov edx, dword [edx]
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 7
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x450090
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00408810
mov edx, dword [ebp - 0x50]
push ebx
mov ebx, dword [ebp - 0x54]
lea edi, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.00402aa0
add esp, 4
test al, al
sete bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x4500e2
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
test bl, bl
je 0x45010d
mov ecx, dword [ebp - 0x4c]
push 3
push 0x518c68
call fcn.00408810
xor al, al
jmp 0x45010f
mov al, 1
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.004bb4e3
mov esp, ebp
pop ebp
ret 4
Function at 0x454810
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f33ee
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54c1b4]
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
mov ebx, 1
xor edi, edi
test byte [0x55001c], bl
jne 0x45486c
or dword [0x55001c], ebx
mov dword [ebp - 4], edi
call fcn.0044e7b0
push 0x4f70b0
call fcn.004bd58e
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
push edi
xor eax, eax
push 0x550074
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.004082e0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], edi
jne 0x45489d
cmp dword [ebp - 0x18], 8
jmp 0x454940
lea esi, [ebp - 0x48]
call fcn.00403d70
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00407720
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x4548cc
mov edx, dword [ebp - 0x48]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4548d7
lea eax, [ebp - 0x2c]
push ebx
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x55051c], bl
jne 0x454926
or dword [0x55051c], ebx
push 0x4f70f0
mov dword [0x550500], edi
mov dword [0x550504], edi
mov dword [0x550508], edi
mov dword [0x55050c], edi
mov dword [0x550510], edi
mov dword [0x550518], edi
call fcn.004bd58e
add esp, 4
mov eax, dword [0x550500]
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x18], esi
jb 0x45494e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
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.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x4599f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x459a68
lea ecx, [ebp - 0x10]
push ecx
push 0x51b204
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push esi
push esi
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x459a80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x54d5e8]
push esi
mov esi, 8
push edi
cmp dword [0x54d5fc], esi
jae 0x459a9d
mov eax, 0x54d5e8
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x459b44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x459b4c
mov ecx, dword [0x54d604]
cmp dword [0x54d618], esi
jae 0x459ad4
mov ecx, 0x54d604
mov eax, dword [0x54d620]
cmp dword [0x54d634], esi
jae 0x459ae6
mov eax, 0x54d620
push ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x459b0e
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x54fee0]
test eax, eax
je 0x459b44
cmp dword [eax + 8], 2
mov edi, eax
jl 0x459b44
push str.Main.cpp
push 2
push ecx
mov eax, esp
mov dword [ebp - 4], esp
push eax
mov ecx, 0x51b228
mov esi, 0x297
call fcn.0042fa10
push edi
mov ecx, esi
call fcn.0042d670
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45df50
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi + 0x2c], 0
push ebx
push edi
je 0x45e108
lea edi, [esi + 0x1c]
mov ebx, 8
mov dword [ebp - 0x10], edi
cmp dword [edi + 0x14], ebx
jb 0x45df76
mov eax, dword [edi]
jmp 0x45df78
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e108
cmp dword [edi + 0x14], ebx
jb 0x45df90
mov eax, dword [edi]
jmp 0x45df92
mov eax, edi
push eax
mov ecx, esi
call fcn.0045e110
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x60]
sub edi, dword [esi + 0x5c]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jns 0x45dfde
fadd dword [0x51d128]
fdivr qword [0x51d1a8]
xor edi, edi
mov dword [ebp - 8], edi
fstp dword [ebp - 0xc]
cmp ecx, edi
jbe 0x45e063
mov dword [ebp - 4], edi
add ebx, dword [ebp - 4]
cmp dword [ebx + 0x14], 8
jb 0x45dffe
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x45e03c
lea edx, [edi + 1]
mov dword [ebp - 8], edx
fild dword [ebp - 8]
test edx, edx
jns 0x45e01f
fadd dword [0x51d128]
fmul dword [ebp - 0xc]
fadd qword [0x51d1a0]
call fcn.004c4540
push eax
push 0
push 0x4c9
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
add dword [ebp - 4], 0x1c
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x45dff3
mov dword [ebp - 8], edi
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x45e0f6
mov dword [ebp - 4], edi
add ebx, dword [ebp - 4]
cmp dword [ebx + 0x14], 8
jb 0x45e090
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x45e0d2
mov eax, dword [ebp - 8]
lea ecx, [edi + eax + 1]
mov dword [ebp - 0x14], ecx
fild dword [ebp - 0x14]
test ecx, ecx
jns 0x45e0b5
fadd dword [0x51d128]
fmul dword [ebp - 0xc]
fadd qword [0x51d1a0]
call fcn.004c4540
push eax
push 0
push 0x4c9
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
add dword [ebp - 4], 0x1c
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x45e085
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x45e101
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f63e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
test byte [0x550018], 1
jne 0x45ff22
or dword [0x550018], 1
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
push 0xffffffffffffffff
push 0
push 0x54ff68
lea ecx, [edi + 0x24]
call fcn.004082e0
cmp dword [edi + 0x38], 8
mov ecx, dword [edi + 0x34]
jb 0x45ff41
mov eax, dword [edi + 0x24]
jmp 0x45ff44
lea eax, [edi + 0x24]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45ff5b
push 1
mov eax, 0x5118c0
lea ecx, [edi + 0x24]
call fcn.00407820
push 0
push 0
push edi
push fcn.00461b20
push 0
push 0
call fcn.004be51d
add esp, 0x18
mov dword [edi + 0xa0], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x461240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee698
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
test byte [0x550018], 1
jne 0x4612a2
or dword [0x550018], 1
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
push 0xffffffffffffffff
push 0
push 0x54ff68
lea ecx, [edi + 0x24]
call fcn.004082e0
cmp dword [edi + 0x38], 8
mov ecx, dword [edi + 0x34]
jb 0x4612c1
mov eax, dword [edi + 0x24]
jmp 0x4612c4
lea eax, [edi + 0x24]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4612db
push 1
mov eax, 0x5118c0
lea ecx, [edi + 0x24]
call fcn.00407820
mov ecx, dword [edi + 0x9c]
push 0
push 0
push ecx
push 0x461a90
push 0
push 0
call fcn.004be51d
add esp, 0x18
mov dword [edi + 0xa4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x461340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5a70
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x48]
call fcn.0040f4d0
push eax
mov eax, 0x51c1f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004070c0
add esp, 4
lea esi, [ebx + 0x5c]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00407a10
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x4613ae
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x4613d3
mov edx, dword [ebp - 0x48]
push edx
call fcn.004bb4d8
add esp, 4
push 0
push 0
push ebx
push 0x461ae0
push 0
push 0
call fcn.004be51d
xor ecx, ecx
add esp, 0x18
test eax, eax
mov dword [ebx + 0x94], eax
setne al
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.004bb4e3
mov esp, ebp
pop ebp
ret