joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba200
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4ba233
push esi
call fcn.004bd250
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4ba22c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4ba2b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4ba2a2
mov eax, dword [esi + 8]
test eax, eax
je 0x4ba257
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4ba29e
cmp eax, 2
je 0x4ba2a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ba24a
cmp eax, 3
je 0x4ba27d
cmp eax, 1
jne 0x4ba24a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4ba24a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4ba24a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004ba2e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4ba2c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004ba2e0
add esp, 4
pop esi
ret

Function at 0x4c5670
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.004c5470
pop edi
add esp, 0x104
ret 4

Function at 0x4c65f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
call edi
test eax, eax
jne 0x4c661b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x4c662b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 0
je 0x4c663c
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
call edi
test eax, eax
jne 0x4c665a
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x4c666a
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 1
je 0x4c667b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x10]
push 2
push edx
push esi
call edi
test eax, eax
jne 0x4c6699
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x4c66a9
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
pop edi
and eax, 0xffff
pop esi
pop ecx
ret 4
Function at 0x4c66c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x4c6870
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4c6839
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c6869
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c6869
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4c6869
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.00504307
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x4c6869
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x61a6ac
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x4c6839
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4c684e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c6855
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.00504307
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.004c6580
test eax, eax
je 0x4c685c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x4c679c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x4c6861
mov eax, dword [esp + 0x10]
push eax
jmp 0x4c6861
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0050421e
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x4c6880
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x4c68b0
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x4c68bf
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x4c68e2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x4c68f1
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x4c6914
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x4c6960
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x4c6ad7
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.004c6880
test eax, eax
jne 0x4c69c3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x4c6a72
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x4c6a22
mov byte [esp + 0x1a], 0
jmp 0x4c6a2a
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.004c6930
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c6ad7
cmp dword [esp + 0x30], 0x10
jne 0x4c6ad7
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x4c69d9
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x4c6acc
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c6ad7
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x4c6ad7
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x4c6a84
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x4c6af0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c6b6f
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4c6b6f
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4c6b6f
push ebx
push ebp
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ebp, eax
mov eax, ecx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x4c6cf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c6ddd
mov esi, dword [esp + 0x28]
mov ecx, edi
push esi
mov word [esp + 0x14], 0x4d42
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.004c6cb0
and eax, 0xffff
push esi
add eax, 0x36
mov ecx, edi
mov dword [esp + 0x1e], eax
call fcn.004c6cc0
imul eax, dword [esi + 8]
mov edx, dword [esp + 0x1a]
lea ecx, [esp + 0x24]
add eax, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 0xe
shr eax, 2
push edx
push ebx
mov dword [esp + 0x26], eax
call ebp
test eax, eax
je 0x4c6dd6
cmp dword [esp + 0x24], 0xe
jne 0x4c6dd6
mov eax, dword [esi + 8]
push esi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 8], eax
call fcn.004c6cc0
mov edi, eax
mov ecx, dword [esp + 0x1a]
imul edi, dword [esi + 8]
lea eax, [esp + 0x24]
add edi, ecx
push 0
push eax
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x4c6dd6
cmp dword [esp + 0x24], edi
jne 0x4c6dd6
mov ecx, dword [esi + 8]
push ebx
shl ecx, 1
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x4c9830
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5e4634]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4c9843
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4c9884
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5e46dc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4c98b6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c98ba
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4c98ab
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4c98d8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c98dc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4c98cd
xor ecx, ecx
mov eax, 0x5e4644
xor ebx, ebx
mov bl, byte [ecx + 0x5e46ec]
cmp byte [esp + ebx + 0x14], 0
je 0x4c9907
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5e4704]
cmp byte [esp + ebx + 0x14], 0
je 0x4c991e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4c98ee
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4c9877
lea edx, [esp + 0x84]
push edx
call fcn.004c9960
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4cfad0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4cfb03
push esi
call fcn.004d47a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4cfafc
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4cfb89
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4cfb72
mov eax, dword [esi + 8]
test eax, eax
je 0x4cfb27
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4cfb6e
cmp eax, 2
je 0x4cfb72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4cfb1a
cmp eax, 3
je 0x4cfb4d
cmp eax, 1
jne 0x4cfb1a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4cfb1a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4cfb1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004cfbc0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4cfba9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004cfbc0
add esp, 4
pop esi
ret

Function at 0x51627c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5162b4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005142f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005142cc
jmp 0x5162c0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51796a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5179ac
call fcn.0051d423
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5179ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5179a3
xor eax, eax
jmp 0x5179b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005179ba
pop edi
pop esi
pop ebx
ret 4
Function at 0x51d953
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x51d981
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51d99f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051d8b9
jmp 0x51d99f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51d99f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051d8b9
test edi, edi
mov eax, edi
jne 0x51d989
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x410038
Capabilities:
Read file on windows

Disassembly:
push 0x4c
mov eax, 0x416a8f
call fcn.00415adb
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0041085c
mov dword [ebp - 0x50], eax
test eax, eax
je 0x41011c
xor ebx, ebx
lea eax, [ebp - 0x50]
inc ebx
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], bl
and dword [ebp - 4], 0
lea edx, [ebp - 0x4c]
mov ecx, edi
call fcn.004108ca
test eax, eax
jne 0x41010b
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
test eax, eax
je 0x4100ef
push ecx
lea edi, [esi + 0xc]
mov byte [ebp - 4], bl
push eax
mov ecx, edi
call fcn.004049e6
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
jb 0x4100a2
mov edi, dword [edi]
push dword [ebp - 0x50]
push dword [esi + 4]
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x4100f2
cmp eax, dword [esi + 4]
jne 0x4100f2
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4100c7
mov eax, dword [eax]
mov dword [esi], eax
mov dword [ebp - 4], 4
jmp 0x4100e1
push dword [ebp - 0x50]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov al, bl
jmp 0x41011e
mov byte [esi + 8], bl
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4100ff
mov ecx, dword [eax]
xor edx, edx
mov dword [eax + 0x10], edx
mov byte [ecx], dl
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [ebp - 4], 5
push dword [ebp - 0x50]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
xor al, al
call fcn.00415a28
ret 4

Function at 0x410126
Capabilities:
Get system information on windows

Disassembly:
push 0x24
mov eax, 0x416ab6
call fcn.00415a39
mov ebx, ecx
mov byte [ebx], 0
lea eax, [ebx + 4]
and dword [ebp - 4], 0
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
pop ecx
xor eax, eax
fldz
pop ecx
push 9
pop ecx
mov dword [ebx + 0x48], eax
lea edi, [ebp - 0x30]
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
fstp qword [ebx + 0x58]
push eax
mov dword [ebx + 0x40], 0xfa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebx + 0x40]
xor edx, edx
add esi, 7
add esi, dword [ebp - 0x2c]
mov eax, esi
div dword [ebp - 0x2c]
mov eax, ebx
sub esi, edx
sub esi, 0xc
mov dword [ebx + 0x40], esi
call fcn.00415a02
ret 8

Function at 0x410722
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x21c
mov eax, 0x416b49
call fcn.00415a6d
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x228]
mov dword [ebp - 4], ebx
call fcn.00410fd0
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41077d
mov ecx, eax
call fcn.00410ffc
test al, al
jne 0x41077d
mov bl, 1
lea ecx, [ebp - 0x14]
call fcn.00410a87
mov al, bl
call fcn.00415a17
ret

Function at 0x41078d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x220
mov eax, 0x416b83
call fcn.00415a6d
Function at 0x44e170
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c56ed
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x66e5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
xorps xmm0, xmm0
mov byte [ebp - 0x35], 1
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x44e1e4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x44e1da
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0044e9f0
lea eax, [ebp - 0x34]
push eax
push 0x44e040
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
xor esi, esi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x44e246
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
nop word [eax + eax]
push 0
push 0xbb8
push 3
push 0
push 0
push 0x464
push dword [ecx + esi*4]
call edi
mov ecx, dword [ebp - 0x1c]
neg eax
sbb al, al
inc esi
and al, byte [ebp - 0x35]
mov dl, al
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov byte [ebp - 0x35], dl
sar eax, 2
cmp esi, eax
jb 0x44e210
mov byte [ebp - 0x35], dl
test ecx, ecx
je 0x44e28b
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x44e26c
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e2e1
push edx
push ecx
call fcn.004c427d
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x44e2c1
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44e2b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e2e1
push ecx
push edx
call fcn.004c427d
add esp, 8
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3ed9
mov esp, ebp
pop ebp
ret 4
call fcn.004d85ca
int3