joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401510
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x401525
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x401534
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x14]
mov dword [edi + 8], esi
lea esi, [edi + 0xc]
push ecx
mov ecx, esi
call fcn.004571f0
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
jne 0x401555
mov ecx, esi
call fcn.00456b00
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, 0x5c
mov word [ecx + eax*2], dx
xor edx, edx
inc eax
mov word [ecx + eax*2], dx
mov dword [esi + 4], eax
lea eax, [esp + 8]
push eax
push edx
push edi
push 0x401470
push edx
push edx
mov dword [0x4bcd94], edi
mov dword [0x4bcd9c], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x4bcf10], 2
pop edi
mov dword [0x4bcd98], eax
pop esi
je 0x4015a2
call fcn.0044a310
mov ecx, dword [0x4bcd98]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4bcd9c]
mov dword [0x4bcfac], 0
test eax, eax
je 0x40162f
lea ecx, [eax - 1]
cmp ecx, 0x69
ja case.0x4015d3.4
movzx edx, byte [ecx + 0x4016c8]
jmp dword [edx*4 + 0x4016b4]
push 0x11
push 0
call fcn.0044b160
add esp, 8
mov eax, 0x80004005
pop ecx
ret 8
push 0x12
push 0
call fcn.0044b160
add esp, 8
mov eax, 0x80004005
pop ecx
ret 8
push 0x13
push 0
call fcn.0044b160
add esp, 8
mov eax, 0x80004005
pop ecx
ret 8
push eax
push 0x14
push 0
call fcn.0044b160
add esp, 0xc
mov eax, 0x80004005
pop ecx
ret 8
cmp dword [0x4bcfb4], 0
jne case.0x4015d3.104
mov ecx, dword [0x4bcd98]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov eax, dword [esp + 8]
je 0x40165a
test eax, eax
jne 0x40165a
pop ecx
ret 8
mov edx, eax
and edx, 0x80070000
cmp edx, 0x80070000
je 0x401680
push eax
push 0x21
push 0
call fcn.0044b160
add esp, 0xc
mov eax, 0x80004005
pop ecx
ret 8
and eax, 0xffff
cmp eax, 0xe
jne 0x401693
cmp dword [0x4bcf14], 0xffffffff
je case.0x4015d3.104
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
push eax
push 0x22
push 1
call fcn.0044b160
add esp, 0xc
mov eax, 0x80004005
pop ecx
ret 8
Function at 0x402660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov edi, eax
movzx eax, word [0x4bcda0]
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x4026a4
push 0x409
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x4026d1
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x4026b6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4026d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp dword [0x4bcdb0], 0
jne 0x402749
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
push str.kernel32
mov dword [0x4bcdb0], 1
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
movzx ecx, word [0x4bcda0]
push 0
push 0x409
push 0
push ecx
lea edx, [esp + 0x20]
push str._04X_c_04X_c
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x40273e
push str.SetThreadPreferredUILanguages
push str.kernel32
call edi
push eax
call ebx
mov esi, eax
test esi, esi
je 0x402749
push 0
lea eax, [esp + 0x14]
push eax
push 4
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x402ab0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
sub esp, 0xa0
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xac]
cmp dword [0x4b7188], esi
je 0x402ae9
mov eax, 0x4b7188
mov edi, edi
cmp dword [eax], edi
je 0x402ae9
inc esi
mov eax, esi
shl eax, 4
cmp dword [eax + 0x4b7188], 0
lea eax, [eax + 0x4b7188]
jne 0x402ad0
shl esi, 4
cmp dword [esi + 0x4b7188], 0
jne 0x402b03
pop edi
mov eax, 0x49769c
pop esi
add esp, 0xa0
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
push edi
lea ecx, [esp + 0x14]
push str.7zSfxString_d
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
call ebp
test eax, eax
jne 0x402bb0
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.0045e9da
add esp, 4
mov ebx, eax
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
ja 0x402ba6
call ebp
test eax, eax
jne 0x402ba6
mov eax, dword [esi + 0x4b7194]
test eax, eax
je 0x402b9e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402ba6
mov edx, dword [esi + 0x4b7194]
push edx
call fcn.00471e4a
mov dword [esi + 0x4b7194], ebx
jmp 0x402bac
mov dword [esi + 0x4b7194], ebx
jmp 0x402baf
push ebx
call fcn.00471e4a
add esp, 4
pop ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4b7194]
test eax, eax
jne 0x402c7b
mov ebp, dword [esi + 0x4b718c]
cmp dword [esi + 0x4b7190], eax
je 0x402bea
call fcn.00402a50
cmp eax, dword [0x49a2a4]
jne 0x402bea
mov ebp, dword [esi + 0x4b7190]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e9da
add esp, 4
cmp dword [0x4b41bc], 0xffffffff
mov dword [esi + 0x4b7194], eax
jne 0x402c59
movzx ecx, word [0x4bcda0]
push 0x1f
lea eax, [esp + 0x70]
push eax
push 0x1004
push ecx
mov dword [0x4b41bc], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402c59
lea edx, [esp + 0x6c]
push edx
call fcn.004731d5
add esp, 4
mov dword [0x4b41bc], eax
mov ecx, dword [esi + 0x4b7194]
mov edx, dword [0x4b41bc]
lea eax, [edi + 1]
push eax
push ecx
push edi
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4b7194]
pop ebp
pop edi
pop esi
add esp, 0xa0
ret
Function at 0x4045e0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x494128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp]
call fcn.00456bf0
mov dword [esp + 0x14], 0
cmp dword [esp + 8], 1
jae 0x40461a
push 1
lea ecx, [esp + 4]
call fcn.00456aa0
mov ecx, dword [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp]
push esi
push 1
push ecx
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x404648
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esp + 0xc]
push edx
jmp 0x4046b2
push edi
lea edi, [esi + 1]
cmp edi, dword [esp + 0x18]
jbe 0x40465c
push edi
lea ecx, [esp + 0x14]
call fcn.00456aa0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
push edi
push ecx
push eax
call ebx
mov ecx, dword [esp + 0x10]
xor edx, edx
xor eax, eax
mov word [ecx + esi*2 + 2], dx
pop edi
cmp word [ecx], ax
je 0x404687
jmp 0x404680
inc eax
cmp word [ecx + eax*2], dx
jne 0x404680
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x10], eax
mov word [edx + eax*2], cx
lea eax, [esp + 0xc]
push eax
mov ecx, ebp
call fcn.00456cc0
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0047247a
mov ecx, dword [esp + 0x1c]
add esp, 4
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4047e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x493280
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [0x4bcfbc], 3
jne 0x40483e
push 0
lea eax, [esp + 8]
push eax
push 3
lea ecx, [esp + 0xc]
push ecx
push 0xfffffffffffffff5
mov byte [esp + 0x14], 0x7a
mov byte [esp + 0x15], 0xd
mov byte [esp + 0x16], 0xa
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ebp
push esi
lea ecx, [esp + 0x10]
call fcn.004569d0
mov dword [esp + 0x30], 0
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebp]
cmp byte [ecx + esi], 0
je 0x4048a8
mov eax, dword [esp + 0x14]
push ebx
push edi
cmp byte [ecx + esi], 0xa
je 0x4048a6
cmp byte [ecx + esi], 0xd
je 0x4048a6
mov bl, byte [ecx + esi]
cmp dword [esp + 0x20], eax
jne 0x40488a
lea ecx, [esp + 0x18]
call fcn.00456960
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov byte [eax + ecx], bl
inc eax
mov edi, ecx
mov byte [edi + eax], 0
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp]
inc esi
cmp byte [ecx + esi], 0
jne 0x404868
pop edi
pop ebx
push 0xfde9
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004044a0
add esp, 0xc
mov byte [esp + 0x30], 1
cmp byte [esp + 0x40], 0
pop esi
pop ebp
jne 0x4048e7
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4b4094]
push ecx
push edx
push 0xb
push 0
call fcn.0044b160
add esp, 0x10
jmp 0x4048f8
mov eax, dword [esp + 0x14]
push eax
push 0x20
push 0
call fcn.0044b160
add esp, 0xc
mov byte [esp + 0x28], 0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047247a
mov dword [esp + 0x2c], 0xffffffff
mov edx, dword [esp + 0xc]
push edx
call fcn.0047247a
mov ecx, dword [esp + 0x28]
add esp, 8
xor al, al
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x404bc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48ea9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebp
mov ebp, dword [esp + 0x270]
push esi
push edi
push ebp
lea ecx, [esp + 0x10]
call fcn.00457190
mov dword [esp + 0x270], 0
push 0x49783c
lea ecx, [esp + 0x10]
call fcn.00457260
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404d1c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea esp, [esp]
push ebp
lea ecx, [esp + 0x10]
call fcn.004571f0
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jne 0x404c51
lea ecx, [esp + 0xc]
call fcn.00456b00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, 0x5c
mov word [ecx + eax*2], dx
inc eax
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.00457260
test byte [esp + 0x18], 0x10
je 0x404ce1
push 0x497838
lea ecx, [esp + 0x48]
push ecx
call edi
test eax, eax
je 0x404d01
push 0x497830
lea edx, [esp + 0x48]
push edx
call edi
test eax, eax
je 0x404d01
mov eax, dword [esp + 0xc]
push eax
call fcn.00404bc0
add esp, 4
test eax, eax
jne 0x404d01
mov dword [esp + 0x270], 0xffffffff
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0047247a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
add esp, 0x268
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404d6d
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404d6d
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404c30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404caf
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x404caf
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0xc]
push eax
call fcn.0047247a
mov ecx, dword [esp + 0x26c]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x268
ret
mov dword [esp + 0x270], 0xffffffff
mov edx, dword [esp + 0xc]
push edx
jmp 0x404cbf

Function at 0x404d90
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x4bcfbc], 0
je 0x404d9f
mov eax, 1
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404db7
mov eax, 1
pop esi
ret
test al, 0x10
jne 0x404dd5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404dd1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00404bc0
add esp, 4
pop esi
ret
Function at 0x404eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ead0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00456bf0
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x38]
push esi
lea ecx, [esp + 0x10]
call fcn.00456cc0
push 0x497868
lea ecx, [esp + 0x10]
call fcn.00457260
push 0x49785c
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0047247a
add esp, 4
push esi
lea ecx, [esp + 0x10]
call fcn.00456cc0
push 0x497858
lea ecx, [esp + 0x10]
call fcn.00457260
push str.__T_
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0047247a
add esp, 4
push 0x497844
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 3
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047247a
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x10]
push edx
call fcn.0047247a
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x404fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ead0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00456bf0
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x38]
push esi
lea ecx, [esp + 0x10]
call fcn.00456cc0
push 0x497868
lea ecx, [esp + 0x10]
call fcn.00457260
push str.__S_
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0047247a
add esp, 4
push esi
lea ecx, [esp + 0x10]
call fcn.00456cc0
push 0x497858
lea ecx, [esp + 0x10]
call fcn.00457260
push 0x497874
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0047247a
add esp, 4
push 0x49786c
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 3
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047247a
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x10]
push edx
call fcn.0047247a
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x405110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ead0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00456bf0
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x38]
push esi
lea ecx, [esp + 0x10]
call fcn.00456cc0
push 0x497868
lea ecx, [esp + 0x10]
call fcn.00457260
push str.__M_
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0047247a
add esp, 4
push esi
lea ecx, [esp + 0x10]
call fcn.00456cc0
push 0x497858
lea ecx, [esp + 0x10]
call fcn.00457260
push 0x497894
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0047247a
add esp, 4
push 0x49788c
lea ecx, [esp + 0x1c]
call fcn.00457190
mov byte [esp + 0x2c], 3
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00457350
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047247a
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x10]
push edx
call fcn.0047247a
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0xc]
mov dword [esi], 0
cmp eax, 0xffffffff
jne 0x405379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop esi
ret
shr al, 4
and al, 1
pop esi
ret

Function at 0x405460
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4950e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00456bf0
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x28]
push ebp
mov dword [esp + 0x14], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
cmp edi, ebx
jle 0x4054d2
lea ebx, [edi + 1]
cmp ebx, dword [esi + 8]
jbe 0x4054bc
push ebx
mov ecx, esi
call fcn.00456aa0
mov eax, dword [esi]
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], edi
mov word [eax + edi*2], cx
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4054f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48eb28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, dword [esp + 0x38]
lea eax, [esp + 4]
push esi
push eax
call fcn.00405460
mov dword [esp + 0x38], 0
lea ecx, [esp + 0xc]
push ecx
call fcn.0043ca60
add esp, 0xc
push 0x4978b4
lea ecx, [esp + 0x20]
call fcn.00457190
mov byte [esp + 0x30], 1
push 0x4978ac
lea ecx, [esp + 0x14]
call fcn.00457190
mov byte [esp + 0x30], 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
call fcn.00457350
mov byte [esp + 0x30], 1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0047247a
mov byte [esp + 0x34], 0
mov edx, dword [esp + 0x20]
push edx
call fcn.0047247a
mov eax, dword [esp + 0xc]
add esp, 8
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 4]
push ecx
call fcn.0047247a
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

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

Disassembly:
sub esp, 0x250
push esi
mov esi, dword [esp + 0x258]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407c54
xor eax, eax
pop esi
add esp, 0x250
ret
test al, 0x10
je 0x407c6b
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
add esp, 0x250
ret
mov eax, dword [0x4bcf18]
test eax, eax
jne 0x407c85
push esi
call fcn.00407bf0
add esp, 4
pop esi
add esp, 0x250
ret
cmp eax, 2
jne 0x407cb9
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407c74
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x407c74
mov eax, 1
pop esi
add esp, 0x250
ret