joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441d00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496abb
mov eax, dword fs:[0]
push eax
push ecx
mov dword [ebp - 0x10], 0xcccccccc
mov eax, dword [0x4b62b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0042b1f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0042b1f0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.004411f0
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.004411f0
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.004411f0
mov eax, dword [ebp - 0x10]
add eax, 0x84
call fcn.00468140
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x8c], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x90], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x94], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x9c
call fcn.0041b890
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret
Function at 0x442260
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
push ecx
lea edi, [ebp - 0x160]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4b62b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x44229a
jmp 0x442457
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.00472c50
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov esi, esp
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x44230f
mov dword [ebp - 0x128], 0x114
mov esi, esp
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x44235b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x124]
mov word [edx + 0x38], ax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x120]
mov word [edx + 0x3a], ax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x14]
mov word [edx + 0x3e], ax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov ax, word [ebp - 0x11c]
mov word [edx + 0x3c], ax
jmp 0x44238b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov word [edx + 0x38], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov word [ecx + 0x3a], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
mov word [eax + 0x3e], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov word [edx + 0x3c], 0
mov dword [ebp - 0x158], 0
xor eax, eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov esi, esp
push 0x4a0278
mov edi, esp
push 0x4a028c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, esp
call fcn.00492e6b
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x442417
mov esi, esp
lea ecx, [ebp - 0x158]
push ecx
call dword [ebp - 0x160]
cmp esi, esp
call fcn.00492e6b
jmp 0x44242d
mov esi, esp
lea edx, [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, esp
call fcn.00492e6b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov dx, word [ebp - 0x158]
mov word [ecx + 0x40], dx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp esi, esp
call fcn.00492e6b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov word [edx + 0x42], ax
push edx
mov ecx, ebp
push eax
lea edx, [0x442488]
call fcn.00492e8e
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472710
add esp, 0x160
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret
Function at 0x4476e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49724b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0x54
call fcn.004729bc
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x447726
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.00445e10
mov esi, eax
jmp 0x447728
xor esi, esi
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x18], 0xffffffff
call fcn.0044b040
push eax
call fcn.0044bfa0
mov edi, eax
test edi, edi
je 0x447771
mov ecx, dword [edi]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 8]
push ebx
mov dword [esi + 0x48], edx
call fcn.0044b040
lea ecx, [edi + 0xc]
mov ebx, eax
call fcn.0041ba20
push eax
lea ecx, [ebx + 0x94]
call fcn.0044e070
mov dword [esi + 0x4c], eax
pop ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
call fcn.00445530
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20

Function at 0x447840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49724b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push 0xe8
call fcn.004729bc
add esp, 4
mov dword [esp + 8], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x447885
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.00446ac0
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ebx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00446bf0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
call fcn.00445530
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c

Function at 0x4478d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49724b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push 0xdc
call fcn.004729bc
add esp, 4
mov dword [esp + 8], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x447914
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.00446f00
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ebx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00447020
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
call fcn.00445530
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x44a7b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x494008
mov eax, dword fs:[0]
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0xc], edx
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esi + 0x3c], edi
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x40], edi
mov edi, dword [esp + 0x40]
mov dword [esi + 0x44], edi
mov edi, dword [esp + 0x44]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x48], edi
lea edi, [esi + 0x1c]
mov dword [edi], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x30], ecx
mov dword [edi + 4], ecx
mov dword [esi + 0x34], edx
mov dword [edi + 8], edx
push 0x50
mov dword [esi], vtable.miniskin::CTAnimation_class_miniskin::CVWndBase__struct_tagRECT__class_miniskin::CAnimationRect_.0
mov dword [esi + 0x38], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.004729bc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44a877
push ebp
lea eax, [esp + 0x3c]
mov edx, edi
mov ecx, ebx
call fcn.00456180
push ebp
lea edx, [edi + 8]
lea ecx, [ebx + 0x28]
lea eax, [esp + 0x44]
call fcn.00456180
mov dword [esi + 0x18], ebx
jmp 0x44a87c
xor eax, eax
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x30
Function at 0x44bb10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [ebp + 0x14], 2
call fcn.0041b890
mov esi, dword [esp + 0x3c]
lea edi, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0044ba40
push 0x14
call fcn.004729bc
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x30], 1
je 0x44bb74
mov esi, eax
call fcn.00456490
jmp 0x44bb76
xor eax, eax
mov byte [esp + 0x30], 0
lea ecx, [esp + 0xc]
mov dword [ebp + 0x38], eax
call fcn.0041ba20
mov esi, dword [ebp + 0x38]
push eax
call fcn.00456520
lea ecx, [esp + 0xc]
call fcn.0041b990
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x44ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x494a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0041b940
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
lea ecx, [esp + 0x14]
mov dword [esi + 0x2c], edx
call fcn.0041b990
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x451ce0
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x451d21
test edi, edi
jle 0x451d97
test ebx, ebx
jle 0x451d97
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push 0x50
push ebx
push edi
push ebp
push ecx
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
pop ebp
ret 8
cmp dword [0x4ba364], 0
jne 0x451d97
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
test edi, edi
jle 0x451d4d
test ebx, ebx
jle 0x451d4d
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push 0x50
push ebx
push edi
push ebp
push eax
push 0xffffffffffffffff
push ecx
jmp 0x451d5d
mov edx, dword [esi + 4]
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
xor eax, eax
call fcn.0044f900
cmp dword [esi + 0x88], 0
mov dword [0x4ba364], esi
jne 0x451d97
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x451c60
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x88], eax
pop esi
pop ebp
ret 8
Function at 0x454a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, 1
cmp dword [esp + 0xc], eax
mov dword [esp], 0
jb 0x454b87
cmp dword [esp + 0x10], eax
jb 0x454b87
mov ecx, dword [esi]
test ecx, ecx
je 0x454ab4
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
call eax
mov dword [esi], 0
mov eax, dword [0x4ba5b8]
test eax, eax
jne 0x454ac9
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4ba5b8], eax
movzx ecx, word [esp + 8]
push edi
push 0x4a862c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x454ae7
pop edi
pop ecx
ret 0xc
mov edx, dword [0x4ba5b8]
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x454b0b
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
xor eax, eax
pop edi
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x454b2d
push ebp
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop ebp
pop edi
pop ecx
ret 0xc
mov eax, dword [0x4ba5b8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call fcn.00454930
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x454b75
mov ecx, eax
call fcn.00409910
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
call fcn.00409990
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0xc], 1
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0xc]
pop ebx
pop ebp
pop edi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x456490
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49724b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
xor edi, edi
push 0x34
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.004729bc
add esp, 4
cmp eax, edi
je 0x4564fc
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x456520
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x497a28
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push edi
push ebp
push str.open_pack_file_fileName_s
push 1
push str..ResPackFile.cpp
call fcn.00492c30
xor ebx, ebx
add esp, 0x10
cmp dword [esi], ebx
jne 0x45655f
cmp dword [esi + 4], ebx
je 0x45658e
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x456570
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x456583
push eax
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x45658e
push eax
call edi
mov dword [esi], ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4565c2
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [esi + 0xc]
push ecx
push ebx
push ebx
push 4
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [esi + 8], edi
je 0x4565ac
mov dword [esp + 0xc], vtable.minilib::CMemFile.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov ebp, dword [esi + 0xc]
push ebx
call fcn.00473509
mov ecx, dword [esi + 0x10]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
call fcn.00456310
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x458ab0
Capabilities:
Create thread

Disassembly:
sub esp, 0xec
mov eax, dword [0x4b62b0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
push edi
mov edi, ecx
je 0x458ae9
pop edi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00472710
add esp, 0xec
ret
push ebp
mov ecx, esi
call fcn.00459290
push edi
lea ecx, [esi + 0x10]
call fcn.00415f80
xor eax, eax
push 0xc6
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x32]
push ebx
push eax
mov dword [esi + 0x3c], 1
mov byte [esp + 0x18], bl
mov dword [esp + 0x2c], ebx
mov word [esp + 0x38], bx
call fcn.00472c50
add esp, 0xc
push 1
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0xc]
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
lea ecx, [esp + 0x34]
push 0x63
push ecx
call fcn.004771c8
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
push 1
push 1
lea eax, [esp + 0x2c]
push eax
call edi
mov ebp, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x458bb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 4], ebp
call edi
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, ebx
pop ebp
je 0x458bd1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov dword [esi + 8], edi
cmp dword [esi + 4], ebx
je 0x458c23
cmp edi, ebx
je 0x458c23
push ebx
push ebx
push esi
push 0x458ff0
push ebx
push ebx
call fcn.00475d94
mov edi, eax
mov eax, dword [esi + 0xc]
add esp, 0x18
cmp eax, ebx
je 0x458c02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
xor eax, eax
cmp edi, ebx
mov dword [esi + 0xc], edi
pop edi
setne al
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00472710
add esp, 0xec
ret
mov ecx, dword [esp + 0xf0]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00472710
add esp, 0xec
ret
Function at 0x459200
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x2c], 0
push esi
lea esi, [eax + 0x2c]
jne 0x45927b
push 0x4a8a40
lea ecx, [eax + 0x10]
call fcn.0041ba20
push eax
push esi
call fcn.004772aa
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x45927b
push edi
push 2
push 0
push eax
call fcn.00477381
mov eax, dword [esi]
push eax
call fcn.0047759e
mov ecx, dword [esi]
push 0
push 0
push ecx
mov edi, eax
call fcn.00477381
add esp, 0x1c
test edi, edi
pop edi
jne 0x45927b
mov edx, dword [esi]
push edx
push 2
lea eax, [esp + 0xc]
mov word [esp + 0xd], 0
push 1
push eax
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
mov byte [esp + 0x16], 0
call fcn.00476cc0
add esp, 0x10
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ecx
ret

Function at 0x459290
Capabilities:
Get file size
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4979f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b62b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
add edi, 0x10
mov ecx, edi
call fcn.0041ba20
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x459365
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4592f6
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x80000
jb 0x459365
mov ecx, edi
call fcn.0041ba20
push eax
lea ecx, [esp + 0x14]
call fcn.00402310
lea esi, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00459380
mov ecx, edi
call fcn.0041ba20
mov ecx, esi
mov edi, eax
call fcn.0041cae0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
push 0
push esi
call ebx
push 1
push esi
call fcn.0045b610
add esp, 8
push 0
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x10]
call fcn.004023a0
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x45a0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4949b3
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b62b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea ebx, [esi + 0x20]
xor ebp, ebp
mov ecx, ebx
mov dword [esi + 0xc], ebp
mov dword [esi], vtable.TiXmlNode.0
call fcn.0040f960
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esp + 0x1c], ebp
lea edi, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
or eax, 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0x14]
mov dword [edi + 0xc], ebp
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.0040f960
lea ecx, [edi + 0x30]
call fcn.0040f960
mov dword [edi + 0x10], ebp
mov dword [edi + 0x50], edi
mov dword [edi + 0x4c], edi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 1
push eax
mov ecx, ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x18], ebp
call fcn.0040fa40
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x45ad60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x494979
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b62b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], edi
mov dword [esi], vtable.TiXmlNode.0
call fcn.0040f960
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esp + 0x1c], edi
lea edi, [esi + 0x44]
mov ecx, edi
mov dword [esi], vtable.TiXmlDeclaration.0
call fcn.0040f960
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.0040f960
lea ebp, [esi + 0x7c]
mov ecx, ebp
call fcn.0040f960
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.0040fa40
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0040fa40
mov edx, dword [esp + 0x30]
push edx
mov ecx, ebp
call fcn.0040fa40
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10