joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ede9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49f9ed
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x42ef0d
cmp byte [ebx + 0x45], 0
je 0x42ef0d
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x42ee33
xor al, al
jmp 0x42ef0f
xor eax, eax
mov dword [esp + 0x24], 0xf
push eax
push 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
call fcn.0042f083
and dword [esp + 0x34], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x14]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42ee98
dec eax
je 0x42ee9c
dec eax
dec eax
je 0x42eefa
xor bl, bl
jmp 0x42eefc
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
mov esi, dword [esp + 0xc]
cmovae eax, edx
sub esi, eax
je 0x42eedb
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x14]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0043a7f3
add esp, 0x10
cmp esi, eax
jne 0x42ee94
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp byte [ebx + 0x45], 0
je 0x42eefa
test esi, esi
jne 0x42ee5e
push esi
push 8
lea ecx, [esp + 0x18]
call fcn.004252f2
jmp 0x42ee56
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0041f358
mov al, bl
jmp 0x42ef0f
mov al, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4341ce
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x49ff70
call fcn.0049e6bc
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.dlg::CDlgDownLoadUg.0
mov dword [edi + 0x28], vtable.dlg::CDlgDownLoadUg.2.0
mov dword [edi + method.dlg::CDlgDownLoadUg.1.virtual_0], vtable.dlg::CDlgDownLoadUg.1.0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov edx, dword [edi + 0x164]
call fcn.0045f380
cmp dword [eax + 0x14], 8
jb 0x434217
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
push 1
mov esi, eax
call fcn.0041f6b8
test esi, esi
je 0x434259
mov edx, dword [edi + 0x164]
lea ecx, [ebp - 0x2c]
call fcn.0045f380
cmp dword [eax + 0x14], 8
jb 0x434247
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041f6b8
push ebx
push 1
lea ecx, [edi + 0x144]
call fcn.0041f6b8
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + method.std::error_category.virtual_4], vtable.base::thread_base.0
mov dword [edi + 0x12c], ebx
call fcn.00495070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449a5e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51a5fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0043ceb5
mov dword [ebp - 0x14], eax
cmp dword [0x52f0d8], esi
jne 0x449b51
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x449ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x449c31
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x449c31
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x449c31
push eax
call ebx
push 0x4ba428
push edi
mov dword [0x52f0d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x52f0dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x52f0e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52f0e8], eax
test eax, eax
je 0x449b4e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52f0e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x449b76
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x449b69
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x449b8b
push 4
pop eax
jmp 0x449c33
cmp dword [ebp - 0x14], esi
je 0x449b8b
push dword [0x52f0d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x449b70
mov eax, dword [0x52f0e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x449be9
cmp dword [0x52f0e8], edi
je 0x449be9
push eax
call ebx
push dword [0x52f0e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x449be9
test eax, eax
je 0x449be9
call ecx
test eax, eax
je 0x449bde
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x449bde
test byte [ebp - 8], 1
jne 0x449be9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x449c19
mov eax, dword [0x52f0dc]
cmp eax, edi
je 0x449c16
push eax
call ebx
test eax, eax
je 0x449c16
call eax
mov esi, eax
test esi, esi
je 0x449c16
mov eax, dword [0x52f0e0]
cmp eax, edi
je 0x449c16
push eax
call ebx
test eax, eax
je 0x449c16
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x52f0d8]
call ebx
test eax, eax
je 0x449c31
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x449c33
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ab7d
mov esp, ebp
pop ebp
ret
Function at 0x45422d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x52f800]
call fcn.0041e77e
mov eax, dword [eax + 0x38]
cmp dword [eax + 0x38], 2
jne 0x4542ac
call fcn.0041e77e
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x4c], 0x78
jge 0x4542ac
mov eax, dword [esi + 0x430]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
and ecx, 0xfffffffc
cmp ecx, 8
jl 0x454278
push 2
call fcn.00498fba
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4542ac
push 0x1c
call fcn.004387c2
pop ecx
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4542c8
push ecx
push ecx
mov dword [eax + 4], 0x852
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x4542c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x853
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x454305
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0426
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov ecx, dword [0x52f784]
push ebx
push esi
push edi
mov edi, dword [0x52f800]
call fcn.00498feb
push eax
mov ecx, edi
call fcn.00495317
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x40]
xor ebx, ebx
inc ebx
cmp esi, ebx
push 0x50
push eax
cmovl esi, ebx
call fcn.0041e77e
mov ecx, dword [eax + 4]
call fcn.00421cab
and dword [esp + 0x64], 0
cmp dword [eax + 0x14], 8
jb 0x45436b
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0045da2b
add esp, 0xc
xor esi, esi
mov byte [esp + 0x64], 2
push esi
push ebx
lea ecx, [esp + 0x48]
call fcn.0041f6b8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0041ee74
sub esp, 0x18
mov byte [esp + 0x7c], 3
lea eax, [esp + 0x28]
mov ecx, esp
push eax
call fcn.0041ee74
mov ecx, dword [edi + 0x3fc]
call fcn.00492bf0
push dword [ebp + 0x10]
call fcn.00435bbf
pop ecx
push dword [edi + 4]
mov ecx, dword [0x52f784]
call fcn.00498feb
push eax
mov eax, dword [edi + 0x3fc]
push 0x474
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f6b8
push esi
push ebx
lea ecx, [esp + 0x30]
call fcn.0041f6b8
mov ecx, dword [esp + 0x5c]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x455eab
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [0x52f800]
push 0x437
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
pop esi
test eax, eax
je 0x455ed2
push 1
jmp 0x455ee8
mov ecx, dword [0x52f784]
push 3
call fcn.00498feb
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.0049e3b6
xor eax, eax
inc eax
ret 0xc
Function at 0x457add
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4a08ae
call fcn.0049e6bc
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov ebx, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
push ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00438238
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0041fba8
xor ebx, ebx
mov byte [ebp - 4], 1
cmp word [esi], bx
jne 0x457b2b
mov eax, ebx
jmp 0x457b32
push esi
call fcn.00438238
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004232bf
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x457b7e
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 8]
push 4
push ecx
push 4
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0041f6b8
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0041f6b8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457ba5
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4a08c0
call fcn.0049e6bc
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0x4cb09c
movzx eax, ax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x457bda
xor ebx, ebx
jmp 0x457be3
mov ecx, eax
call fcn.0045dcf1
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
push 1
push 1
push 0xfe
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0
mov esi, eax
push ebx
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x457c55
mov eax, dword [edi]
mov ecx, edi
push edi
call dword [eax + 8]
push eax
lea ecx, [edi + 8]
call fcn.0041ad25
test eax, eax
je 0x457c55
push dword [edi + 0x14]
push 0xfffffffffffffffc
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x457c55
mov dword [edi + 0x20], eax
mov ecx, edi
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
call fcn.0042557b
mov eax, dword [edi + 0x28]
test eax, eax
je 0x457c67
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.004238e1
mov dword [edi + 0x28], esi
test byte [edi + 0x24], 8
je 0x457c84
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457c84
mov ecx, edi
call fcn.00425542
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
xor esi, esi
inc esi
cmp eax, esi
jne 0x457ca2
xor eax, eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
jmp 0x457cb0
and dword [edi + 0x2c], 0
mov dword [edi + 0x30], 2
mov dword [edi + 0x34], esi
cmp dword [ebp + 0x28], 8
lea eax, [ebp + 0x14]
mov ecx, edi
mov dword [edi + 0x24], esi
cmovae eax, dword [ebp + 0x14]
push eax
call fcn.00423c44
push 5
xor ecx, ecx
cmp byte [ebp + 0x10], cl
pop eax
cmovne eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push esi
lea ecx, [ebp + 0x14]
call fcn.0041f6b8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457f42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a08d5
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.004580c0
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push 0x20
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x457fa2
push dword [ebp + 8]
lea eax, [esp + 0x2c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041eeaf
mov edx, edi
mov ecx, esi
call fcn.0045a44e
add esp, 0x1c
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x45806a
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], ax
cmp word [esp + 0x28], ax
je 0x457fdd
lea eax, [esp + 0x28]
push eax
call fcn.00438238
pop ecx
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0041fba8
mov dword [esp + 0x23c], ebx
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x20]
dec eax
push eax
call fcn.00424d05
cmp word [eax], 0x5c
je 0x45801f
mov ebx, 0x4cb058
push ebx
call fcn.00438238
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.004232bf
mov ebx, 0x4cb05c
push ebx
call fcn.00438238
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.004232bf
push dword [ebp + 8]
lea eax, [esp + 0x14]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041ee74
mov edx, edi
mov ecx, esi
call fcn.0045a44e
or dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x2c]
add esp, 0x1c
xor ebx, ebx
push ebx
push 1
call fcn.0041f6b8
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45809c
push dword [ebp + 8]
lea eax, [esp + 0x2c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041eeaf
mov edx, edi
mov ecx, esi
call fcn.0045a44e
add esp, 0x1c
push ebx
push ebx
push 0x836
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4580c0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
call fcn.00434eee
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
call esi
mov esi, eax
test esi, esi
je 0x458139
test dword [edi + 0xc], 0x100000
jne 0x458105
push dword [edi + 4]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push esi
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
push edi
call fcn.00438652
push dword [ebp - 4]
call fcn.00434eee
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x4580f3
xor ebx, ebx
inc ebx
test edi, edi
je 0x458144
push edi
call fcn.00438652
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45814d
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x4a08ef
call fcn.0049e6bc
sub esp, 0x270
xor ecx, ecx
inc ecx
push ebx
push esi
push edi
call fcn.00458393
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x4582bd
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4582bd
lea ecx, [ebp - 0x40]
call fcn.0045ab7f
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x258], ax
jne 0x4581c5
mov eax, ebx
jmp 0x4581d2
lea eax, [ebp - 0x258]
push eax
call fcn.00438238
pop ecx
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041fba8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push edx
mov edx, 0x439679
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00425dba
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
add esp, 0xc
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
push edx
mov edx, 0x439679
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00425dba
add esp, 0xc
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00425e23
test al, al
je 0x45828b
push dword [ebp - 0x274]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45828b
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push esi
call dword [sym.imp.PSAPI.DLL_EmptyWorkingSet]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push ebx
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0041f6b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0041f6b8
test esi, esi
jne 0x45819d
xor ecx, ecx
call fcn.00458393
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4582d8
Capabilities:
Enumerate processes
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
xor ecx, ecx
inc ecx
push ebx
push esi
push edi
xor esi, esi
call fcn.00458393
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x45835e
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x45835a
push dword [ebp - 0x290]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x45834c
push 0x28
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
mov eax, dword [ebp - 0x5c]
shr eax, 0xa
push ebx
add esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x458317
xor ecx, ecx
call fcn.00458393
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x34]
shr esi, 0xa
imul eax, esi, 0x64
mov esi, dword [ebp - 0x38]
shrd esi, ecx, 0x14
pop edi
shr ecx, 0x14
cdq
idiv esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458393
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push esi
push edi
push eax
xor edi, edi
mov esi, ecx
push 0x28
inc edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4583cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error:__d_n
call fcn.004393a9
pop ecx
pop ecx
xor edi, edi
neg esi
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x10]
sbb esi, esi
and esi, 2
push eax
mov dword [ebp - 8], esi
xor esi, esi
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45841f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 1
push esi
push str.SoftwareBahamut_
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x458450
xor eax, eax
jmp 0x4584ba
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00438560
add esp, 0xc
lea eax, [ebp - 8]
mov ebx, 0x104
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push str.Troy_legendonline
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4584a9
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call fcn.0043894d
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4584c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4a0901
call fcn.0049e6bc
sub esp, 0x450
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallFCB860B2_EA0A_45D7_BD1C_9D790AD36F12
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x458502
push 0x4cae4c
jmp 0x458619
xor eax, eax
push 0x206
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x252]
push ebx
push eax
call fcn.00438560
add esp, 0xc
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x254]
push eax
push ebx
push ebx
push str.UninstallString
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x458563
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push 0x104
push eax
call fcn.0043894d
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x458614
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp word [ebp - 0x45c], ax
je 0x45859a
lea eax, [ebp - 0x45c]
push eax
call fcn.00438238
pop ecx
push eax
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041fba8
mov edi, str.UGunInstall.exe
mov dword [ebp - 4], ebx
push edi
call fcn.00438238
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.0042207e
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00424dd5
push eax
lea ecx, [ebp - 0x30]
call fcn.0041eed4
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0041f6b8
mov edi, str.UGStart.exe
push edi
call fcn.00438238
pop ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.004232bf
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004231cd
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0041f6b8
jmp 0x458620
push 0x4caf40
mov ecx, esi
call fcn.0041eeaf
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret