joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x44cd18
push 0x4371c0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x451050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x2c], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40909b
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 7
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
call ebx
mov ecx, dword [ebp - 0x1c]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x409159
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push 7
push edi
call ebx
test eax, eax
je 0x409159
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x409159
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x409159
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x40], 0x120116
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040917d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4091a0
Capabilities:
Find taskbar

Disassembly:
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4091e5
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
test eax, eax
je 0x4091e4
push 0
push str.SysPager
push 0
push eax
call esi
test eax, eax
je 0x4091e4
push 0
push str.ToolbarWindow32
push 0
push eax
call esi
pop esi
ret
Function at 0x40a140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x104
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, ebp
test eax, eax
jge 0x40a17a
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a171
sub eax, edx
xor edx, edx
mov esi, eax
mov edi, edi
mov bl, dl
add bl, 0xd
mov byte [edx + 0x459b98], dl
mov byte [esp + edx + 0x10], bl
test eax, eax
jle 0x40a1a9
mov cl, byte [edi]
add cl, al
xor cl, bl
sub esi, 1
mov byte [esp + edx + 0x10], cl
jne 0x40a1a8
mov edi, ebp
mov esi, eax
jmp 0x40a1a9
inc edi
inc edx
cmp edx, 0x100
jl 0x40a180
xor eax, eax
xor ecx, ecx
mov dword [0x459c98], eax
mov dword [0x459c9c], eax
mov dl, byte [eax + 0x459b98]
movzx esi, byte [esp + eax + 0x10]
movzx edi, dl
add esi, ecx
add edi, esi
and edi, 0xff
mov ecx, edi
mov bl, byte [ecx + 0x459b98]
mov byte [eax + 0x459b98], bl
inc eax
cmp eax, 0x100
mov byte [ecx + 0x459b98], dl
jl 0x40a1c0
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00433c32
add esp, 0x104
ret
Function at 0x40b3d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4442c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x451050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
jne 0x40b43e
push 0x44cbc4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], edi
call fcn.0043519b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
push esi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x40b46d
push 0x44cbc4
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], edi
call fcn.0043519b
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40b493
mov dword [ebp - 0x30], eax
push 0x44cbc4
lea eax, [ebp - 0x30]
push eax
call fcn.0043519b
mov ecx, 0xfeff
cmp word [edi], cx
jne 0x40b4af
shr esi, 1
lea edx, [edi + 2]
push esi
push edx
call fcn.0040afe0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40b4c1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40b4cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x40b4db
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jne 0x40b503
call fcn.0040bb00
jmp 0x40b52b
lea esi, [ebp - 0x38]
call fcn.0040ba20
lea esi, [ebp - 0x24]
mov edi, eax
call fcn.0040b9f0
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.0040c4a0
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4442f3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.0040bb00
mov edi, 0x4586e4
call fcn.00403530
test esi, esi
je 0x40b746
cmp word [esi], 0
je 0x40b746
mov ebx, str.lang_
lea esi, [esp + 0x30]
call fcn.00403ca0
mov edi, dword [esp + 0x10]
mov eax, edi
mov dword [esp + 0xa0], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b5d0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x34]
call fcn.004037d0
push 4
mov eax, str..lng
lea ecx, [esp + 0x34]
call fcn.004037d0
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x40b60a
lea eax, [esp + 0x34]
push eax
call fcn.0040b3d0
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x40b72e
lea eax, [esp + 0x4c]
push eax
push 0x2711
mov ebx, 0x20
call fcn.0040af30
lea ecx, [esp + 0x54]
push ecx
call fcn.00434b9b
add esp, 0xc
cmp eax, 0x12c
jge 0x40b714
call fcn.0040bb00
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], dx
push 0x13
mov eax, str.The_language_file__
lea esi, [esp + 0x18]
mov byte [esp + 0xa4], 1
call fcn.00403960
mov eax, esi
push eax
mov eax, edi
call fcn.00403500
push 0x24
mov eax, str..lng__does_not_support_WinSnap_v3.x_
mov ecx, esi
call fcn.004037d0
push ebx
mov eax, str._r_n_r_nPlease_visit_NTWind_Forums__
mov ecx, esi
call fcn.004037d0
push 0x1c
mov eax, str.http:__www.ntwind.com_forum_
mov ecx, esi
call fcn.004037d0
push 0x56
mov eax, str.__to_download_the_updated_language_file._r_n_r_nWould_you_like_to_visit_NTWind_Forums_now_
mov ecx, esi
call fcn.004037d0
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40b6d1
lea eax, [esp + 0x18]
mov ecx, dword [0x459f80]
push 0x34
push 0x447ce8
push eax
push ecx
call fcn.004087f0
add esp, 0x10
cmp eax, 6
jne 0x40b705
push 1
push 0
push 0
push str.http:__www.ntwind.com_forum_
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea esi, [esp + 0x14]
call fcn.004034a0
mov esi, dword [esp + 0x10]
jmp 0x40b72e
push 0x4586e4
mov eax, edi
call fcn.004034d0
push 0xffffffffffffffff
push 0
mov ecx, 0x458700
call fcn.004038b0
cmp dword [esp + 0x48], 8
jb 0x40b742
mov edx, dword [esp + 0x34]
push edx
call fcn.00434772
add esp, 4
mov eax, esi
jmp 0x40b74b
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00433c32
mov esp, ebp
pop ebp
ret
Function at 0x40e140
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4436e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x451050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
jne 0x40e1ae
push 0x44cbc4
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], edi
call fcn.0043519b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x800
jbe 0x40e1d1
push 0x44cbc4
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], edi
call fcn.0043519b
push edi
push esi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x40e1f6
push 0x44cbc4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], edi
call fcn.0043519b
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x40e21c
push 0x44cbc4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.0043519b
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
mov edx, edi
call fcn.0040db50
add esp, 0x10
test eax, eax
jne 0x40e24d
mov dword [ebp - 0x2c], eax
push 0x44cbc4
lea eax, [ebp - 0x2c]
push eax
call fcn.0043519b
mov eax, dword [0x459cd0]
test eax, eax
jne 0x40e265
push 4
call fcn.00434866
add esp, 4
mov dword [0x459cd0], eax
mov dword [eax], 1
mov esi, 1
mov dword [ebp - 4], 0xffffffff
jmp 0x40e29b
test edi, edi
je 0x40e2a6
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e2b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x40e2c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40e2d5
push 0x44cbc4
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], esi
call fcn.0043519b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e5a0
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x824
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x834]
push edi
lea eax, [esp + 0x30]
mov edi, ecx
mov ecx, eax
mov edx, 0x400
sub esi, ecx
mov edi, edi
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x40e5f0
movzx ecx, word [esi + eax]
test cx, cx
je 0x40e5f0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40e5d0
jmp 0x40e5f4
test edx, edx
jne 0x40e5f7
sub eax, 2
xor edx, edx
mov word [eax], dx
mov ecx, 0x400
lea eax, [esp + 0x30]
cmp word [eax], 0
je 0x40e615
add eax, 2
sub ecx, 1
jne 0x40e605
jmp 0x40e635
test ecx, ecx
je 0x40e635
mov eax, 0x400
sub eax, ecx
mov ecx, 0x400
sub ecx, eax
lea edx, [esp + eax*2 + 0x30]
mov eax, 0x447d40
call fcn.0040d850
mov ecx, 0x400
lea eax, [esp + 0x30]
mov edi, edi
cmp word [eax], 0
je 0x40e650
add eax, 2
sub ecx, 1
jne 0x40e640
jmp 0x40e66d
test ecx, ecx
je 0x40e66d
mov eax, 0x400
sub eax, ecx
mov ecx, 0x400
sub ecx, eax
lea edx, [esp + eax*2 + 0x30]
mov eax, edi
call fcn.0040d850
mov ebx, str.WinSnap.key
lea esi, [esp + 0x14]
call fcn.00403ca0
mov eax, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jae 0x40e68e
lea eax, [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e759
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 2
push 0x447d6c
push esi
call ebx
test eax, eax
je 0x40e73d
cmp dword [esp + 0x10], 2
jne 0x40e73d
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov edi, eax
lea eax, [esp + 0x14]
push eax
add edi, edi
push edi
lea ecx, [esp + 0x3c]
push ecx
push esi
call ebx
test eax, eax
je 0x40e714
cmp edi, dword [esp + 0x10]
jne 0x40e714
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x14]
call fcn.004034a0
mov eax, 1
jmp 0x40e76e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x40e729
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x2c], ebp
jb 0x40e76c
mov edx, dword [esp + 0x18]
push edx
jmp 0x40e764
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x40e752
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x2c], ebp
jb 0x40e76c
mov eax, dword [esp + 0x18]
push eax
call fcn.00434772
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00433c32
add esp, 0x824
ret
Function at 0x40e880
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [0x459f88], 0
mov dword [esp + 0xc], 0x114
call fcn.00437610
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e944
cmp dword [esp + 0x10], 2
jne 0x40e944
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x40e944
mov ecx, dword [esp + 8]
jne 0x40e8fd
cmp ecx, 1
jae 0x40e902
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00433c32
add esp, 0x118
ret
cmp eax, 5
jbe 0x40e90c
or dword [0x459f88], 0x10000000
cmp eax, 6
jne 0x40e92a
or dword [0x459f88], 0x20000000
cmp ecx, 1
jb 0x40e92a
or dword [0x459f88], 0x40000000
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00433c32
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00433c32
add esp, 0x118
ret
Function at 0x40ed80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov ebx, str.WinSnap.chm
lea esi, [esp + 8]
call fcn.00403ca0
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x40edad
lea eax, [esp + 0xc]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push 0
push eax
push str.open
push 0
call esi
cmp eax, 0x20
ja 0x40eddc
push 1
push 0
push 0
push str.http:__www.ntwind.com_software_winsnap.html
push str.open
push 0
call esi
cmp dword [esp + 0x20], 8
pop esi
pop ebx
jb 0x40edf2
mov eax, dword [esp + 4]
push eax
call fcn.00434772
add esp, 4
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00433c32
add esp, 0x20
ret
Function at 0x40f660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push 0x84
lea eax, [esp + 4]
push 0
push eax
call fcn.00437610
mov ecx, dword [0x459fc0]
mov edx, dword [0x459fc4]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x459f94]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x4524b4]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x4524bc]
mov dword [esp + 0x10], edx
mov edx, dword [0x4524b0]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x4524c0]
mov dword [esp + 0x30], edx
mov edx, dword [0x4524b8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x4524c8]
mov dword [esp + 0x2c], edx
mov edx, dword [0x4524ac]
or eax, 0xffffffff
mov dword [esp + 0x44], ecx
mov ecx, dword [0x4524d4]
mov dword [esp + 0x38], edx
mov edx, dword [0x4524c4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x4524d8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x4524a8]
mov dword [esp + 0x40], edx
mov edx, dword [0x4524d0]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [0x4524a0]
mov dword [esp + 0x48], edx
mov edx, dword [0x459f98]
mov ecx, 8
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], edx
cmp dword [0x458788], ecx
jb 0x40f74c
mov edx, dword [0x458774]
mov dword [esp + 0x4c], edx
jmp 0x40f754
mov dword [esp + 0x4c], 0x458774
mov edx, dword [0x4524e4]
mov dword [esp + 0x50], edx
mov edx, dword [0x4524e8]
mov dword [esp + 0x54], edx
mov edx, dword [0x4524ec]
mov dword [esp + 0x58], edx
mov edx, dword [0x4524f0]
mov dword [esp + 0x5c], edx
cmp dword [0x458830], ecx
jb 0x40f790
mov edx, dword [0x45881c]
mov dword [esp + 0x60], edx
jmp 0x40f798
mov dword [esp + 0x60], 0x45881c
cmp dword [0x45884c], ecx
jb 0x40f7ac
mov ecx, dword [0x458838]
mov dword [esp + 0x64], ecx
jmp 0x40f7b4
mov dword [esp + 0x64], 0x458838
test dword [0x452498], 0x80000
mov edx, dword [0x4524f8]
mov ecx, dword [0x4524f4]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 7
mov dword [esp + 0x74], 1
je 0x40f807
mov edx, dword [0x459fc8]
mov ecx, dword [0x459fcc]
mov dword [esp + 0x78], edx
mov edx, dword [0x459fd0]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
jmp 0x40f80f
mov dword [esp + 0x78], 0
test eax, 0x100000
je 0x40f833
test eax, 0x200000
je 0x40f833
movzx eax, word [0x4524cc]
movzx ecx, word [0x4524ce]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0042d6b0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4102c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
cmp dword [0x459fec], 0
jne 0x410328
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
mov dword [0x459fe4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x459fe8], eax
lea eax, [esp]
push eax
push 4
push 0
push 0x4101f0
push 0
push 0
call fcn.004342e0
add esp, 0x18
mov dword [0x459fec], eax
test eax, eax
jne 0x410312
pop ecx
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x459fec]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ecx
ret
Function at 0x412590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x54
mov edi, ecx
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x18], eax
mov esi, edx
mov dword [esp + 0x1c], 0x58
call fcn.00437610
add esp, 0xc
mov dword [esp + 0x14], edi
test esi, esi
jne 0x4125ed
cmp dword [0x4587f8], 8
mov esi, dword [0x4587e4]
jae 0x4125ed
mov esi, 0x4587e4
push esi
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412601
test al, 0x10
jne 0x412609
mov dword [esp + 0x3c], 0
push 0x800
lea edx, [esp + 0x6c]
push 0
push edx
call fcn.00437610
add esp, 0xc
xor esi, esi
xor edi, edi
cmp esi, 0x400
jae 0x412697
lea eax, [esp + esi*2 + 0x68]
push eax
lea ecx, [edi + 0x4e48]
mov ebx, 0x400
sub ebx, esi
push ecx
call fcn.0040af30
mov ebx, dword [edi*4 + 0x452520]
lea esi, [esi + eax + 1]
mov ecx, 0x400
add esp, 8
sub ecx, esi
mov edx, 0
je 0x412665
cmp ecx, 0x7fffffff
jbe 0x41266a
mov edx, 0x80070057
mov eax, edx
test edx, edx
jl 0x41267b
lea edx, [esp + esi*2 + 0x68]
mov eax, ebx
call fcn.004012b0
test eax, eax
jne 0x412691
mov edx, dword [edi*4 + 0x452520]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax + 1]
inc edi
cmp edi, 5
jb 0x412621
lea eax, [esp + esi*2 + 0x68]
xor ecx, ecx
xor edx, edx
mov word [eax], cx
mov word [eax - 2], dx
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x6c]
mov ebx, 0x400
sub ebx, esi
push 0x4e3f
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x404
call fcn.0040af30
lea esi, [esi + eax + 1]
mov ecx, 0x400
add esp, 8
sub ecx, esi
mov eax, 0
je 0x4126ed
cmp ecx, 0x7fffffff
jbe 0x4126f2
mov eax, 0x80070057
test eax, eax
jl 0x412717
lea edx, [esp + esi*2 + 0x68]
mov eax, str..bmp_.dib_.jpg_.jpeg_.jpe_.png_.gif_.tif_.tiff
call fcn.004012b0
test eax, eax
jne 0x412717
push str..bmp_.dib_.jpg_.jpeg_.jpe_.png_.gif_.tif_.tiff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax + 1]
lea eax, [esp + esi*2 + 0x68]
push eax
mov ebx, 0x400
sub ebx, esi
push 0x4e3e
call fcn.0040af30
lea esi, [esi + eax + 1]
mov ecx, 0x400
add esp, 8
sub ecx, esi
mov eax, 0
je 0x41274a
cmp ecx, 0x7fffffff
jbe 0x41274f
mov eax, 0x80070057
test eax, eax
jl 0x412774
lea edx, [esp + esi*2 + 0x68]
mov eax, 0x4482a8
call fcn.004012b0
test eax, eax
jne 0x412774
push 0x4482a8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax + 1]
lea eax, [esp + esi*2 + 0x68]
xor ecx, ecx
xor edx, edx
mov word [eax], cx
mov ecx, dword [esp + 0x2c]
mov word [eax - 2], dx
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x28], 6
mov word [ecx], ax
mov esi, 1
add dword [0x459ff4], esi
push edx
mov dword [esp + 0x48], 0x81024
mov dword [esp + 0x58], 0x408e90
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
sub dword [0x459ff4], esi
mov ecx, dword [esp + 0x86c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00433c32
mov esp, ebp
pop ebp
ret