joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cc50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4551fd
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebx + 0x250]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x42cd93
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov edi, dword [edi]
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x218]
sub ecx, 0x10
call fcn.00402bb0
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
cmp dword [esi - 0xc], 0
jne 0x42cd10
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x42ccd6
push 0x104
lea ecx, [ebp + 8]
call fcn.00401740
mov esi, dword [ebp + 8]
push 0x104
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.0043e3ad
add esp, 8
test eax, eax
js 0x42cda6
cmp eax, dword [esi - 8]
jg 0x42cda6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x42cd75
push dword [ebx + 0x260]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x208]
mov dword [ebp + 8], eax
push dword [ecx + 0x74]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x210], 0
movq xmm0, qword [ebx + 0x250]
movq qword [ebp - 0x20], xmm0
movq xmm0, qword [ebx + 0x258]
movq qword [ebp - 0x18], xmm0
je 0x42cd57
add dword [ebp - 0x20], 0x14
sub dword [ebp - 0x14], 2
push 0x24
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42cd93
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004018e0
int3
Function at 0x42f530
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov cl, byte [ebp + 8]
test cl, cl
je 0x42f5ab
cmp dword [ebx + 0x1cc], 0
push edi
lea edi, [ebx + 0x188]
je 0x42f5aa
cmp dword [edi + 4], 0
je 0x42f5aa
cmp dword [edi + 0xc], 0
je 0x42f5aa
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x42f5a7
mov eax, dword [edi]
push esi
lea esi, [edi + 0x20]
push esi
push dword [edi + 0x3c]
mov ecx, edi
call dword [eax + 0x1c]
mov eax, dword [edi]
push dword [edi + 0x3c]
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [edi + 0x3c]
push esi
push dword [edi + 0x38]
call fcn.00416ce0
mov eax, dword [edi]
push dword [edi + 0x38]
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi]
push dword [edi + 0x38]
mov ecx, edi
call dword [eax + 0x18]
push ecx
push esi
mov ecx, edi
call fcn.00427310
pop esi
mov cl, byte [ebp + 8]
pop edi
xor eax, eax
mov edx, 5
test cl, cl
cmovne eax, edx
push eax
push dword [ebx + 0x1dc]
mov byte [ebx + 0xc], cl
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
jne 0x42f5ef
lea eax, [ebp + 0xb]
push eax
push 0
push 0
push 0x2a3
push dword [ebx + 0x1dc]
lea ecx, [ebx + 0x80]
mov byte [ebp + 0xb], 0
call fcn.00425b50
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x42f7d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0x1c], 1
mov byte [ebx + 0x29], dl
je 0x42f93f
push esi
test dl, dl
je 0x42f824
mov esi, dword [ebx + 0x26c]
mov byte [ebx + 0x2b], 0
mov ecx, dword [esi + 0x1b4]
test ecx, ecx
je 0x42f812
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x1b4], 0
mov ecx, dword [ebx + 8]
call fcn.00415e60
mov edx, dword [ebp + 8]
mov dword [ebx + 0x70], 0
mov esi, dword [ebx + 0x84]
push edi
mov edi, dword [ebx + 0x88]
cmp esi, edi
je 0x42f892
mov ecx, dword [esi]
mov dword [ebp - 4], ecx
cmp dword [ecx + 0x1c], 1
je 0x42f88b
mov eax, dword [ecx]
push edx
call dword [eax + 0x5c]
mov edx, dword [ebp + 8]
test dl, dl
je 0x42f88b
mov eax, dword [ebx + 0x1dc]
mov dword [ebp - 8], eax
test eax, eax
je 0x42f88b
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 8]
add ecx, 0xb4
call fcn.00401610
cmp dword [ebx + 0x1d4], 0
lea ecx, [ebx + 0x1d4]
je 0x42f888
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push dword [ebp - 8]
call fcn.00426940
mov edx, dword [ebp + 8]
add esi, 4
cmp esi, edi
jne 0x42f835
test dl, dl
je 0x42f911
push dword [ebp + 8]
lea ecx, [ebx + 0x90]
push dword [ebx + 0x88]
push dword [ebx + 0x84]
push dword [ebx + 0x94]
call fcn.00426030
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x9c]
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0xa8]
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb8], eax
mov eax, dword [ebx + 0xc0]
mov dword [ebx + 0xc4], eax
mov eax, dword [ebx + 0xcc]
pop edi
mov dword [ebx + 0xd0], eax
pop esi
mov dword [ebx + 0xd8], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x90]
mov edi, dword [ebx + 0x94]
cmp esi, edi
je 0x42f93d
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
cmp byte [eax + 0x64], 0
je 0x42f936
push 0
push dword [eax + 0x60]
call ebx
add esi, 4
cmp esi, edi
jne 0x42f927
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4551fd
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
lea eax, [ebx + 0x294]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4302a4
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax + 8]
mov edi, dword [edi]
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x274]
sub ecx, 0x10
call fcn.00402bb0
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
cmp dword [esi - 0xc], 0
jne 0x430223
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4301e6
push 0x104
lea ecx, [ebp + 8]
call fcn.00401740
mov esi, dword [ebp + 8]
push 0x104
push esi
push dword [ebx + 0x1dc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.0043e3ad
add esp, 8
test eax, eax
js 0x4302b5
cmp eax, dword [esi - 8]
jg 0x4302b5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x430284
push dword [ebx + 0x2a4]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x26c]
mov dword [ebp + 8], eax
push dword [ecx + 0x74]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x270], 0
movq xmm0, qword [ebx + 0x294]
movq qword [ebp - 0x1c], xmm0
movq xmm0, qword [ebx + 0x29c]
movq qword [ebp - 0x14], xmm0
je 0x43026a
add dword [ebp - 0x1c], 0x14
push 0x24
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4302a2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004018e0
int3

Function at 0x4334d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0xc], bl
test bl, bl
jne 0x4334ef
push 0
push dword [esi + 0x88]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x7c]
test eax, eax
je 0x433509
mov ecx, dword [esi + 0x20]
push 0xe
mov eax, dword [ecx]
push 1
call dword [eax + 0x40]
jmp 0x433526
mov ecx, dword [esi + 0x24]
test bl, bl
je 0x433540
mov eax, dword [esi + 8]
mov edx, dword [ecx]
cmp dword [eax + 0x1c], 0
push 0
sete al
movzx eax, al
push eax
push esi
call dword [edx + 0x20]
test bl, bl
je 0x433546
push 5
push dword [esi + 0x88]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
mov eax, dword [ecx]
push esi
call dword [eax + 0x24]
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x434370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x4343ec
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x4343a5
push edi
mov ecx, esi
call fcn.00401740
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x4343cd
mov ecx, dword [esi]
test ecx, ecx
je 0x4343d1
push dword [ecx - 8]
push ecx
call fcn.0043e3ad
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x4343ec
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4343ec
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004018e0
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4359e1
push eax
call fcn.0043ca9f
add esp, 4
mov dword [esi + 4], 0
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x435a2d
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push ebx
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call fcn.0043c71a
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435aca
cmp dword [edi], 0x2e66622e
jne 0x435aca
cmp dword [edi + 0x3c], 0x10000
jne 0x435aca
cmp dword [edi + 0x40], 1
jne 0x435aca
mov eax, dword [ebp - 4]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp dword [edi + 0xfc], 0
je 0x435ab3
mov ecx, dword [edi + 0xf8]
add ecx, 0x100
add ecx, edi
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [ecx + 4]
add eax, 8
add eax, ecx
mov dword [esi + 0x18], eax
push ebx
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x435ad7
push edi
call fcn.0043ca9f
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x438c90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push ebx
push esi
mov byte [ecx + 0xc], al
mov esi, dword [ecx + 0xc0]
push edi
mov edi, dword [ecx + 0xc4]
test al, al
jne 0x438ccf
cmp esi, edi
je 0x438cf0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push 0
push dword [eax + 0x60]
call ebx
add esi, 4
cmp esi, edi
jne 0x438cb6
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
cmp esi, edi
je 0x438cf0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
lea esp, [esp]
mov eax, dword [esi]
push 5
push dword [eax + 0x60]
call ebx
add esi, 4
cmp esi, edi
jne 0x438ce0
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x438fa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
mov byte [ebx + 0x29], al
test al, al
je 0x438fcb
mov ecx, dword [ebx + 8]
mov word [ebx + 0x2a], 0
call fcn.00415e60
mov dword [ebx + 0x70], 0
mov esi, dword [ebx + 0x84]
mov edi, dword [ebx + 0x88]
cmp esi, edi
je 0x438ff2
mov ebx, dword [ebp + 8]
mov edi, edi
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x5c]
add esi, 4
cmp esi, edi
jne 0x438fe0
mov ebx, dword [ebp - 4]
cmp byte [ebp + 8], 0
je 0x439073
push dword [ebp + 8]
lea ecx, [ebx + 0x90]
push dword [ebx + 0x88]
push dword [ebx + 0x84]
push dword [ebx + 0x94]
call fcn.00426030
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x9c]
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0xa8]
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb8], eax
mov eax, dword [ebx + 0xc0]
mov dword [ebx + 0xc4], eax
mov eax, dword [ebx + 0xcc]
pop edi
mov dword [ebx + 0xd0], eax
pop esi
mov dword [ebx + 0xd8], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x90]
mov edi, dword [ebx + 0x94]
cmp esi, edi
je 0x4390a6
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
lea esp, [esp]
mov eax, dword [esi]
cmp byte [eax + 0x64], 0
je 0x43909f
push 0
push dword [eax + 0x60]
call ebx
add esi, 4
cmp esi, edi
jne 0x439090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x439e90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455558
push eax
mov dword fs:[0], esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x439ec7
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [section..data]
push ebx
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push dword [esi + 0x20]
push 0x45be14
push eax
call fcn.004012e0
mov esi, dword [ebp - 0x10]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor bl, bl
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x439fb4
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x439faa
push edi
call fcn.0043c71a
add esp, 4
lea ecx, [ebp + 8]
push 0
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x439f9e
cmp dword [ebp + 8], edi
jne 0x439f9e
push 0x14
call fcn.0043df34
add esp, 4
test eax, eax
je 0x439f93
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], vtable.CImageData.0
mov dword [eax + 4], 0
mov dword [eax + 8], edx
mov dword [eax + 0x10], edx
mov dword [ecx], eax
mov bl, 1
jmp 0x439faa
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov bl, 1
jmp 0x439faa
mov edx, dword [ebp - 0x14]
push edx
call fcn.0043ca9f
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x439fd5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x43a0f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0xc]
push edi
push dword [eax + 0x14]
movzx eax, word [eax + 0x10]
push eax
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x43a179
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43a179
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x43a179
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x43a179
cmp dword [eax], 0x2e66622e
jne 0x43a179
cmp dword [eax + 0x3c], 0x10000
jne 0x43a179
cmp dword [eax + 0x40], 0x10000
jne 0x43a179
lea ecx, [esi + 0x20]
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
call fcn.0043a800
lea ecx, [esi + 0x20]
call fcn.0043a440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x43a720
push eax
call fcn.0043ca9f
add esp, 4
mov dword [esi + 0x20], 0
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x43a765
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp + 8], eax
call fcn.0043c71a
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a7db
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x43a7db
cmp dword [edi], 0x2e66622e
jne 0x43a7db
cmp dword [edi + 0x3c], 0x10000
jne 0x43a7db
cmp dword [edi + 0x40], 0x10000
jne 0x43a7db
cmp dword [edi + 0x64], 0
je 0x43a7db
mov ecx, esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
call fcn.0043a800
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x43a7f1
push edi
call fcn.0043ca9f
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43b0e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455650
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x43b11e
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b108
mov dword [esp + 0x14], 0
lea eax, [esp + 0x18]
push eax
push 0x464820
mov dword [esp + 0x3c], 0
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43b16b
lea eax, [esp + 0x14]
push eax
push 0x464844
push 0x17
push 0
lea eax, [esp + 0x28]
push eax
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x43b194
lea eax, [esp + 0x14]
push eax
push 0x464844
push 0x17
push 0
push 0x45bdfc
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43b23a
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xfc]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jns 0x43b1bd
push eax
call fcn.004018e0
mov eax, 8
push esi
mov word [esp + 0x1c], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x43b1f6
test esi, esi
je 0x43b1f6
mov eax, 0xa
push 0x8007000e
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0x8007000e
call fcn.004018e0
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
movq xmm0, qword [esp + 0x1c]
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
push eax
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x38]
movq qword [ecx + 8], xmm0
call dword [edx + 0xe8]
lea eax, [esp + 0x18]
push eax
call ebx
cmp word [esp + 0x10], 0
jne 0x43b23e
mov eax, dword [esp + 0x14]
xor bl, bl
jmp 0x43b24c
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [edi], ecx
mov bl, 1
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x43b25e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d4f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46e150]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0044361a
mov dword [ebp - 0x14], eax
cmp dword [0x47233c], edi
jne 0x44d5e6
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44d573
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44d6c6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44d6c6
push 0x45b5b4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44d6c6
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x47233c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x472340], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x472344], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47234c], eax
test eax, eax
je 0x44d5e3
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x472348], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44d60b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44d5fe
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44d620
push 4
pop eax
jmp 0x44d6c8
cmp dword [ebp - 0x14], edi
je 0x44d620
push dword [0x47233c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44d605
mov eax, dword [0x472348]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44d67e
cmp dword [0x47234c], esi
je 0x44d67e
push eax
call ebx
push dword [0x47234c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44d67e
test eax, eax
je 0x44d67e
call ecx
test eax, eax
je 0x44d673
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 0x44d673
test byte [ebp - 8], 1
jne 0x44d67e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44d6ae
mov eax, dword [0x472340]
cmp eax, esi
je 0x44d6ab
push eax
call ebx
test eax, eax
je 0x44d6ab
call eax
mov edi, eax
test edi, edi
je 0x44d6ab
mov eax, dword [0x472344]
cmp eax, esi
je 0x44d6ab
push eax
call ebx
test eax, eax
je 0x44d6ab
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x47233c]
call ebx
test eax, eax
je 0x44d6c6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44d6c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044009c
leave
ret