joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450960
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00493520
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4509cd
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x4509bd
cmp eax, 4
jne 0x4509cd
cmp dword [ebp - 0x110], 0x5a
jb 0x4509cd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret

Function at 0x4520b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x30]
push esi
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov edx, dword [ecx + 0x34]
mov dword [esi + 4], edx
mov eax, dword [ecx + 0x38]
mov dword [esi + 8], eax
mov edx, dword [ecx + 0x3c]
mov dword [esi + 0xc], edx
mov eax, dword [ecx + 0xb0]
cmp dword [eax + 0xe0], 0
jne 0x4521c2
cmp dword [eax + 0xe8], 0
jne 0x4521c2
cmp dword [eax + 0xe4], 0
jne 0x4521c2
cmp dword [eax + 0xec], 0
jne 0x4521c2
cmp byte [eax + 0xa8], 0
je 0x452181
cmp dword [eax + 0xd0], 0
jne 0x452155
cmp dword [eax + 0xd4], 0
jne 0x452155
push 0xfffffffffffffffb
push 0
push esi
call dword [sym.imp.USER32.dll_InflateRect]
add dword [esi], 2
dec dword [esi + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret 4
mov ecx, eax
mov eax, dword [ecx + 0xd4]
mov ecx, dword [ecx + 0xd0]
neg eax
push eax
neg ecx
push ecx
push esi
call dword [sym.imp.USER32.dll_InflateRect]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + 0x3c]
sub eax, dword [ecx + 0x34]
mov edx, dword [ecx + 4]
sub eax, dword [edx + 0xa4]
cdq
sub eax, edx
sar eax, 1
add dword [esi + 4], eax
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 0xa4]
mov eax, dword [esi + 4]
add dword [esi], 2
dec dword [esi + 8]
lea eax, [edx + eax + 2]
mov dword [esi + 0xc], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax + 0xe0]
add dword [esi], eax
mov edx, dword [ecx + 0xb0]
mov eax, dword [edx + 0xe4]
add dword [esi + 4], eax
mov edx, dword [ecx + 0xb0]
mov eax, dword [edx + 0xe8]
sub dword [esi + 8], eax
mov ecx, dword [ecx + 0xb0]
mov edx, dword [ecx + 0xec]
sub dword [esi + 0xc], edx
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x452224
cmp dword [ebp - 0x110], 1
jne 0x452224
add dword [esi + 4], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret 4
Function at 0x453d50
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi + 0x29], 1
mov edi, dword [esi + 0x78]
sub edi, dword [esi + 0x74]
xor ebx, ebx
sar edi, 2
test edi, edi
jle 0x453d90
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x453d8b
cmp byte [ecx + 0x24], 0
je 0x453d8b
cmp byte [ecx + 0x68], 0
jne 0x453d84
cmp dword [ecx + 0x10], 2
je 0x453d8b
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
inc ebx
cmp ebx, edi
jl 0x453d68
cmp byte [esi + 0x24], 0
je 0x453dc7
cmp byte [esi + 0x26], 0
je 0x453dc7
mov ecx, dword [esi + 0x1a0]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x1a0]
push 0x257
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
xor ebx, ebx
test edi, edi
jle 0x453df8
lea ecx, [ecx]
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x453df3
cmp byte [ecx + 0x24], 0
je 0x453df3
cmp dword [ecx + 0x64], 0
je 0x453df3
cmp dword [ecx + 0x10], 2
jne 0x453df3
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
inc ebx
cmp ebx, edi
jl 0x453dd0
pop edi
pop esi
pop ebx
ret

Function at 0x453ed0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 1
mov dword [ebp - 0x10], ebx
mov byte [ebx + 0x28], al
je 0x453fb8
push esi
push edi
test al, al
je 0x453f0f
mov edi, dword [ebx + 0x248]
mov byte [ebx + 0x24], 0
mov word [ebx + 0x29], 0
call fcn.00453300
mov eax, dword [ebx + 4]
call fcn.0043feb0
mov esi, dword [ebx + 0x78]
sub esi, dword [ebx + 0x74]
xor eax, eax
sar esi, 2
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
test esi, esi
jle 0x453f9b
mov ecx, dword [ebx + 0x74]
mov edi, dword [ecx + eax*4]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x453f90
cmp dword [edi + 0x14], 1
je 0x453f90
mov edx, dword [edi]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x40]
push eax
mov ecx, edi
call edx
cmp byte [ebp + 8], 0
je 0x453f90
mov eax, dword [ebx + 0x1a0]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x453f85
mov esi, dword [edi + 4]
add esi, 0x6c
call fcn.004029d0
cmp dword [ebx + 0x198], 0
je 0x453f82
mov edi, dword [edi + 8]
mov esi, dword [ebp - 0xc]
lea ebx, [ebx + 0x198]
call fcn.0044bc50
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
push 0
mov ecx, edi
call edx
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, esi
jl 0x453f24
cmp byte [ebp + 8], 0
pop edi
pop esi
jne 0x453fb8
cmp byte [ebx + 0x24], 0
jne 0x453fb8
mov eax, dword [ebx + 0x1a0]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x454880
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8fcd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e42d0]
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 esi, dword [ebp + 8]
mov edi, ecx
lea ebx, [edi + 0x25c]
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4549d3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
lea eax, [edi + 0x234]
lea esi, [ebp - 0x24]
call fcn.00405160
mov ecx, 1
mov byte [ebp - 4], cl
mov esi, dword [ebp - 0x24]
cmp dword [esi - 0xc], 0
jne 0x45494c
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x454912
mov eax, 0x104
lea ecx, [ebp - 0x24]
call fcn.00402c80
mov esi, dword [ebp - 0x24]
mov edx, dword [edi + 0x1a0]
push 0x104
push esi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004907a5
add esp, 8
test eax, eax
js 0x4549f1
cmp eax, dword [esi - 8]
jg 0x4549f1
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4549c0
mov edx, dword [0x4ea758]
mov eax, dword [ebp - 0x28]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x248]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x190]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [edi + 0x230], 0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jne 0x4549a2
sub dword [ebp - 0x20], 0x10
push 0x24
lea ecx, [ebp - 0x20]
push ecx
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0x2c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402760
mov dword [ebp - 4], 0xffffffff
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.0048f6cb
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004035c0
int3
Function at 0x45e920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ae7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ebx
push edx
mov edx, dword [ebp + 8]
push edi
push eax
push edx
call fcn.0045a690
lea esi, [esp + 0x10]
call fcn.00402740
xor eax, eax
mov dword [esp + 0x30], eax
push str.WindowButton
push edi
mov edi, esi
mov dword [ebx + 0x1a4], eax
call fcn.00457180
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x4c6738
push esi
call edi
test eax, eax
je 0x45e9af
or dword [ebx + 0x1a4], 0x20000
push 0x4c6740
push esi
call edi
test eax, eax
je 0x45e9c5
or dword [ebx + 0x1a4], 0x10000
mov esi, dword [ebp + 0x10]
push str.position
lea edi, [ebx + 0x58]
push esi
call fcn.00457180
mov edi, dword [edi]
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00457580
mov ecx, dword [eax]
mov dword [ebx + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x50], ecx
mov edx, dword [eax + 0xc]
lea eax, [ebx + 0x70]
push eax
push str.BackColor
push esi
mov dword [ebx + 0x54], edx
call fcn.00457240
push 1
push str.Hide
push str.visible
push esi
call fcn.00456fc0
test al, al
sete cl
xor eax, eax
mov byte [ebx + 0x19], cl
push esi
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.00457300
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x198], edx
mov dword [eax + 0x19c], ecx
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402760
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x45fa90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [edi + 4], 0
mov al, byte [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
mov byte [ebp - 0x119], al
mov dword [ebp - 0x120], ecx
jne 0x45fae7
lea edx, [ebp - 0x118]
push edx
mov byte [edi + 4], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x45fae7
mov byte [edi + 5], 1
test ebx, ebx
jne 0x45faf0
mov ebx, 0x13
test esi, esi
je 0x45fafa
cmp word [esi], 0
jne 0x45faff
mov esi, 0x4bc714
push 0x4bc714
push esi
call fcn.004909a6
add esp, 8
test eax, eax
jne 0x45fb23
cmp byte [edi + 5], al
jne 0x45fb23
mov esi, 0x4bc720
cmp ebx, 6
jle 0x45fb23
sub ebx, 6
movzx ecx, byte [ebp - 0x119]
mov eax, dword [ebp - 0x120]
push esi
push 0
push 2
push 0
push 0
push 0x86
push 0
push eax
neg ecx
push 0
sbb ecx, ecx
and ecx, 0x2bc
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret 8

Function at 0x460950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaf41
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edi + 0x78]
mov ecx, dword [ecx - 0xc]
lea eax, [edi + 0x78]
test ecx, ecx
je 0x460a8a
lea esi, [ebp - 0x424]
call fcn.00405160
mov dword [ebp - 4], 0
cmp dword [edi + 0x80], 0
je 0x460a04
lea edx, [ebp - 0x42c]
push edx
mov ecx, 0x4ba360
call fcn.00402b20
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x80]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00404f20
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00409bd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call fcn.00402760
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00402760
cmp byte [edi + 0x7c], 0
je 0x460a1e
mov ecx, dword [ebp - 0x424]
push 5
push 0
push 0
push ecx
push 0x4c6850
jmp 0x460a6e
xor edx, edx
push 0x40e
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.00493520
mov ecx, dword [ebp - 0x424]
push ecx
push str.__select___s_
lea edx, [ebp - 0x420]
push 0x208
push edx
call fcn.00490c40
add esp, 0x1c
push 0xa
push 0
lea eax, [ebp - 0x420]
push eax
push str.Explorer.exe
push 0x4ba364
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.00402760
jmp 0x460aa3
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 0
push eax
push 0x111
push edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
Function at 0x461f80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x461fd0
mov al, byte [ebp + 8]
mov byte [esi + 0x26], al
test al, al
jne 0x461fa1
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
push esi
call edx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push 0xe
push 1
call edx
mov eax, dword [esi + 0x78]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x461fd0
mov al, 1
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4

Function at 0x462e70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9d73
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0xc], 0
je 0x462ef3
lea esi, [ebp - 0x10]
call fcn.00402740
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
push eax
push ecx
push str._s_s
mov edi, esi
call fcn.00402d60
mov edx, dword [ebp - 0x10]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x462f09
mov dword [ebp - 4], eax
mov ecx, esi
call fcn.00402760
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x462fa0
push edi
call fcn.0048f5d8
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push ebx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462f97
cmp dword [ebp - 0x14], edi
jne 0x462f97
push 0x14
call fcn.0048fbae
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x462f87
mov ecx, dword [ebp - 0x14]
mov dword [eax], vtable.CImageData.0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp + 0xb], 1
jmp 0x462fa0
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp + 0xb], 1
jmp 0x462fa0
push esi
call fcn.0048f7ae
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402760
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x463170
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7422
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4e42d0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x463252
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463252
mov dword [esp + 0xc], 0
mov dword [esp + 0x40], 1
lea eax, [esp + 0x1c]
push eax
push 0x4baf2c
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46320d
lea ecx, [esp + 0xc]
push ecx
push 0x4c6c50
push 0x17
push 0
lea edx, [esp + 0x2c]
push edx
call esi
test eax, eax
jns 0x463277
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.DOMDOCUMENT:_Create_Failed_with_Microsoft.XMLDOM_n
call edi
lea eax, [esp + 0xc]
push eax
push 0x4c6c50
push 0x17
push 0
push 0x4b9f78
call esi
test eax, eax
jns 0x463273
push str.DOMDOCUMENT:_Create_Failed_with_CLSID_DOMDocument2_n
call edi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x463252
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46323a
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push 0
push eax
call edx
lea esi, [esp + 0x1c]
call fcn.00402350
mov byte [esp + 0x40], 3
mov edi, dword [eax]
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
lea ecx, [esp + 0x10]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xe8]
push edx
call ecx
mov byte [esp + 0x40], 1
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x10], 0
jne 0x4632f8
mov dword [esp + 0x40], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.0045a840
jmp 0x463252
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], 0
mov dword [ecx], eax
mov dword [esp + 0x40], 0xffffffff
lea edx, [esp + 0xc]
push edx
call fcn.0045a840
mov al, 1
jmp 0x463254
Function at 0x463650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8f20
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
movzx eax, word [eax + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4637b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4637b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4637b8
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4637b8
cmp dword [eax], 0x2e66622e
jne 0x4637b8
mov edx, 0x10000
cmp dword [eax + 0x3c], edx
jne 0x4637b8
cmp dword [eax + 0x40], edx
jne 0x4637b8
lea edi, [ebx + 0x14]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x34], eax
call fcn.00463fc0
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
lea ecx, [ebp + 8]
push ecx
push eax
lea edx, [ebx + 0x14]
call fcn.00464110
test al, al
je 0x46379e
mov ecx, dword [ebx + 0xc]
cmp dword [ecx - 0xc], edi
je 0x463739
lea edx, [ebx + 0x6c]
push edx
push ecx
lea edx, [ebx + 0x14]
call fcn.00464110
test al, al
je 0x46379e
mov ecx, dword [ebx + 8]
cmp dword [ecx - 0xc], edi
je 0x463752
lea eax, [ebx + 0x70]
push eax
push ecx
lea edx, [ebx + 0x14]
call fcn.00464110
test al, al
je 0x46379e
add ebx, 0x60
cmp ebx, edi
je 0x46379e
push ebx
mov ebx, dword [ebp + 8]
mov edi, ebx
call fcn.00463330
test al, al
je 0x46379a
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call esi
mov dword [ebp - 4], 0xffffffff
push ebx
call esi
mov al, 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 4
xor edi, edi
jmp 0x4637a1
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
mov dword [ebp - 4], 0xffffffff
push ebx
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x463ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, esi
je 0x463eef
push eax
call fcn.0048f6c0
add esp, 4
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x463f23
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0048f5d8
mov edx, dword [ebp - 8]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
mov esi, eax
push esi
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x463f91
cmp dword [ebp - 4], ebx
jne 0x463f91
cmp dword [esi], 0x2e66622e
jne 0x463f91
mov eax, 0x10000
cmp dword [esi + 0x3c], eax
jne 0x463f91
cmp dword [esi + 0x40], eax
jne 0x463f91
cmp dword [esi + 0x64], 0
je 0x463f91
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], esi
mov dword [edi + 0x20], esi
call fcn.00463fc0
mov bl, 1
jmp 0x463f94
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x463fab
push esi
call fcn.0048f7ae
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x466000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 8
push edi
xor edi, edi
cmp eax, edi
je 0x46601c
push eax
call fcn.0048f7ae
add esp, 4
mov dword [esi + 4], edi
mov eax, dword [ebp + 8]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x466052
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0048f5d8
mov edx, dword [ebp - 4]
add esp, 4
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
mov edi, eax
push edi
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4660d5
cmp dword [edi], 0x2e66622e
jne 0x4660d5
cmp dword [edi + 0x3c], 0x10000
jne 0x4660d5
cmp dword [edi + 0x40], 1
jne 0x4660d5
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
cmp dword [edi + 0xfc], 0
je 0x4660cf
mov eax, dword [edi + 0xf8]
lea eax, [eax + edi + 0x100]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov ecx, dword [eax + 4]
lea eax, [ecx + eax + 8]
mov dword [esi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x4660e2
test edi, edi
je 0x4660e2
push edi
call fcn.0048f7ae
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4