joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425ca4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x449704]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x425d1f
push ebx
call fcn.00425c6d
test eax, eax
pop ecx
jne 0x425cf1
call fcn.0041e9cc
mov dword [eax], 0xf
call fcn.0041e9c3
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0041b931
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x425d31
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x425ce1
inc eax
cmp eax, 0x104
ja 0x425ce1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x425d69
cmp eax, dword [ebp + 0x10]
jg 0x425d4c
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041d4e7
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x425d7e
call fcn.0041e9c3
mov dword [eax], 0xc
jmp 0x425ce1
cmp eax, dword [ebp + 0x10]
jle 0x425d7e
call fcn.0041e9c3
mov dword [eax], 0x22
jmp 0x425ce1
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00421690
pop ecx
pop ecx
jmp 0x425ce3

Function at 0x426279
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44ce00], ebx
push esi
push edi
jne 0x4262f9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x426334
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f804
push edi
call esi
test eax, eax
mov dword [0x44ce00], eax
je 0x426334
push 0x43f7f4
push edi
call esi
push 0x43f7e0
push edi
mov dword [0x44ce04], eax
call esi
cmp dword [0x44ca1c], 2
mov dword [0x44ce08], eax
jne 0x4262f9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44ce10], eax
je 0x4262f9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44ce0c], eax
mov eax, dword [0x44ce0c]
test eax, eax
je 0x42633e
call eax
test eax, eax
je 0x426325
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44ce10]
test eax, eax
je 0x426325
test byte [ebp - 8], 1
jne 0x42633e
cmp dword [0x44ca28], 4
jb 0x426338
or byte [ebp + 0x12], 0x20
jmp 0x42635d
xor eax, eax
jmp 0x42636d
or byte [ebp + 0x12], 4
jmp 0x42635d
mov eax, dword [0x44ce04]
test eax, eax
je 0x42635d
call eax
mov ebx, eax
test ebx, ebx
je 0x42635d
mov eax, dword [0x44ce08]
test eax, eax
je 0x42635d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44ce00]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426797
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x4267c2
cmp eax, 1
je 0x4267c2
jle 0x4267ca
cmp eax, 3
jle 0x4267c2
cmp eax, 4
jne 0x4267ca
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4267f5
call fcn.0041e9c3
mov dword [eax], 0x16
call fcn.0041e9cc
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x42696e
inc eax
cmp byte [eax], bl
jne 0x4267e4
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4267f5
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4267e4
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041dee0
mov dword [ebp - 0x68], esi
mov esi, dword [0x44dee4]
add esp, 0xc
cmp esi, ebx
je 0x42683c
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x44df00]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x42683c
dec esi
dec ecx
cmp esi, ebx
jne 0x42681c
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call fcn.0041d7a1
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x4268a2
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x44df00]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x42688e
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x426893
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x426867
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x4268d3
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x4268b9
mov edi, esi
jmp 0x4268bc
push 3
pop edi
cmp edx, edi
jge 0x4268cc
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x4268b0
mov dword [ebp - 0xc], 8
call fcn.0041e9c3
mov dword [eax], ebx
call fcn.0041e9cc
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0041d4f9
cmp esi, ebx
pop ecx
jne 0x426923
push edi
call fcn.0041e9d5
pop ecx
or eax, 0xffffffff
jmp 0x42696c
cmp dword [ebp + 8], 2
jne 0x42692f
push ebx
call fcn.0041e223
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x42695c
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x426965
cmp dword [ebp + 8], 4
je 0x426955
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426b6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x426b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e9d5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x426baf
test byte [esp + 8], 2
je 0x426baf
call fcn.0041e9c3
mov dword [eax], 0xd
call fcn.0041e9cc
mov dword [eax], 5
jmp 0x426b88
xor eax, eax
ret

Function at 0x426d09
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041c790
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x426d9e
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x44ca1c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x426d9e
cmp eax, 1
je 0x426db6
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x426d9e
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x426d73
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x426d9a
xor eax, eax
inc eax
jmp 0x426dd2
cmp esi, ebx
jae 0x426da2
xor eax, eax
jmp 0x426dd2
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44ca1c]
jmp 0x426db8
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428903
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x42896e
push 0x3d
push dword [ebp + 8]
call fcn.0041dc4b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x42896e
cmp dword [ebp + 8], esi
je 0x42896e
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x44ca3c]
cmp eax, dword [0x44ca40]
jne 0x428954
mov edi, eax
call fcn.004288a2
mov dword [0x44ca3c], eax
cmp eax, ebx
jne 0x4289ad
cmp dword [ebp + 0xc], ebx
je 0x428976
cmp dword [0x44ca44], ebx
je 0x428976
call fcn.004284c1
test eax, eax
je 0x4289ad
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x428ab1
push 4
call fcn.0041d4e7
cmp eax, ebx
pop ecx
mov dword [0x44ca3c], eax
je 0x42896e
mov dword [eax], ebx
cmp dword [0x44ca44], ebx
jne 0x4289ad
push 4
call fcn.0041d4e7
cmp eax, ebx
pop ecx
mov dword [0x44ca44], eax
je 0x42896e
mov dword [eax], ebx
mov ebx, dword [0x44ca3c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00428855
mov edi, eax
test edi, edi
pop ecx
jl 0x428a06
cmp dword [ebx], 0
je 0x428a06
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0041d4f9
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4289ee
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x428a3c
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4289e5
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0041dcc6
test eax, eax
pop ecx
pop ecx
je 0x428a3c
jmp 0x428a37
cmp dword [ebp - 4], 0
jne 0x428aaa
test edi, edi
jge 0x428a16
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0041dcc6
test eax, eax
pop ecx
pop ecx
je 0x42896e
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x44ca3c], eax
cmp dword [ebp + 0xc], 0
je 0x428a93
push dword [ebp + 8]
call fcn.0041dba0
inc eax
inc eax
push eax
call fcn.0041d4e7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x428a93
push dword [ebp + 8]
push esi
call fcn.00421690
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x428a8c
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0041d4f9
pop ecx
cmp dword [ebp - 4], 0
je 0x428aa2
push dword [ebp + 8]
call fcn.0041d4f9
pop ecx
mov eax, dword [ebp - 8]
jmp 0x428971
push esi
call fcn.0041d4f9
pop ecx
xor eax, eax
jmp 0x428971
Function at 0x42a2f5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x437af6
call fcn.0041dc2c
sub esp, 0x14c
mov eax, dword [0x449704]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x42a33f
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x42a3d4
push ebx
call fcn.00429c9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0042a2b3
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x42a3c6
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x42a3c9
test byte [ebp + 8], 2
jne 0x42a394
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x42a3c6
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42a3c6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401c20
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0041b931
leave
ret 8

Function at 0x42aa67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x42aa9e
call fcn.00434636
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42aaaf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x42aae8
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x42aacd
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x42aad5
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x42aae6
test ax, ax
jne 0x42aae6
test si, si
je 0x42aae8
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x42aaf7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x42ad49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x437b5b
call fcn.0041dc2c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00434636
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x42ad97
call fcn.00434636
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ada8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x42adb4
or eax, 0xffffffff
jmp 0x42aeb7
mov ecx, esi
call fcn.0042a891
mov dword [ebp - 0x14], eax
call fcn.0042c532
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x42adf7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42adf7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42adf7
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0042d79e
push dword [ebp - 0x14]
call fcn.0042c48a
push edi
push eax
push ebx
mov ecx, esi
call fcn.0042ab3c
xor ebx, ebx
cmp eax, ebx
je 0x42ae6b
test byte [esi + 0x38], 0x10
je 0x42ae39
push 4
pop edi
mov ecx, esi
call fcn.0042e415
test ah, 1
je 0x42ae31
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042bf2e
cmp dword [esi + 0x1c], ebx
je 0x42ae6b
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0042e66b
jmp 0x42ae6b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x42ae7f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x42ae98
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42ae98
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042a8cb
cmp dword [esi + 0x54], ebx
je 0x42aeb4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42cee8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x42cf22
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.0041206b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041214c
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x42e10b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42e14e
call fcn.00434636
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42e14e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42e169
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042d272
test ebx, ebx
mov esi, eax
je 0x42e167
test edi, edi
je 0x42e167
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42ea1d
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x437c62
call fcn.0041dc2c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42ea37
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42ea83
call fcn.00429c9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42f9b8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x42f9eb
push dword [ebp + 8]
call edi
push eax
call fcn.00430609
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x42fa16
test byte [ebp - 4], 1
je 0x42fa16
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42fa16
push dword [ebp + 8]
call edi
push eax
call fcn.00430609
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42fac6
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0042f90e
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42fa4c
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0042f90e
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x42fa65
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0042f90e
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42fa90
push dword [ebp + 8]
call edi
push eax
call fcn.00430609
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x42fab0
push dword [ebp + 8]
call edi
push eax
call fcn.00430609
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42fac6
push dword [ebp + 8]
call edi
push eax
call fcn.00430609
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x42faee
test byte [ebp - 4], 1
jne 0x42faee
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42faee
push dword [ebp + 8]
call edi
push eax
call fcn.00430609
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42faf5
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0041dee0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x43b8c8]
je 0x42fbfc
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42fb65
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x42fb6c
cmp ebx, ebx
jne 0x42fb6c
xor eax, eax
jmp 0x42fbff
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x42fb79
mov byte [esi + 0x20], bl
jmp 0x42fb8d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00414881
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00414881
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00414881
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x42fbe8
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x42fbfc
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x431f9f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x449704]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x431ff1
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x431ff1
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x431ffd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0041b931
leave
ret 8