joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406426
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41cca0
call fcn.00406ae4
push 8
call fcn.00409c6b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x45aa40], esi
jne 0x40645a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45aa3c], esi
mov al, byte [ebp + 0x10]
mov byte [0x45aa38], al
cmp dword [ebp + 0xc], edi
jne 0x4064a4
cmp dword [0x45c2c8], edi
je 0x406494
mov eax, dword [0x45c2c4]
sub eax, 4
mov dword [0x45c2c4], eax
cmp eax, dword [0x45c2c8]
jb 0x406494
mov eax, dword [eax]
cmp eax, edi
je 0x406475
call eax
jmp 0x406475
push 0x421080
mov eax, 0x421078
call fcn.004063a4
pop ecx
push 0x42108c
mov eax, 0x421084
call fcn.004063a4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4064d5
cmp dword [ebp + 0x10], edi
jne 0x4064e3
mov dword [0x45aa40], esi
push dword [ebp + 8]
call fcn.00406362
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4064e2
push 8
call fcn.00409bb6
pop ecx
ret
call fcn.00406b1f
ret
Function at 0x408e1f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4577d0]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x408e5b
xor eax, eax
jmp 0x408fc5
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x45af40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x408e99
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0040dede
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x408f33
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x408f96
jmp 0x408ebd
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x408ef8
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x408ee9
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x408ec9
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408f57
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x408f60
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x408ebb
jmp 0x408f60
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408f57
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x408f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x408fc0
cmp dword [ebp - 0x68], eax
je 0x408f93
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x408f88
call fcn.004073f6
mov dword [eax], 9
call fcn.004073ff
mov dword [eax], esi
jmp 0x408fbb
push dword [ebp - 0x68]
call fcn.00407408
pop ecx
jmp 0x408fbb
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x408fa8
cmp byte [edi], 0x1a
jne 0x408fa8
xor eax, eax
jmp 0x408fc3
call fcn.004073f6
mov dword [eax], 0x1c
call fcn.004073ff
and dword [eax], 0
or eax, 0xffffffff
jmp 0x408fc3
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00405fce
add ebp, 0x3a4
leave
ret
Function at 0x40a845
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40a873
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40a87a
cmp ebx, dword [eax + 4]
jae 0x40a87a
xor eax, eax
jmp 0x40aa6a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a88b
xor eax, eax
inc eax
jmp 0x40aa69
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a8a1
cmp ecx, edx
jae 0x40a9e6
cmp dword [eax + 4], 0
je 0x40a8aa
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a892
cmp dword [ebp + 8], 0
je 0x40a8cc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a9e6
cmp eax, esi
jae 0x40a9e6
mov eax, dword [0x45abd0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a8f1
cmp dword [esi*4 + 0x45abd8], edi
je 0x40a9ea
inc esi
cmp esi, eax
jl 0x40a8df
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40aa66
cmp dword [ebp - 8], 0x1000000
jne 0x40aa66
test byte [ebp - 0xc], 0xcc
je 0x40a96f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40aa66
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40aa66
cmp word [eax + 0x18], 0x10b
jne 0x40aa66
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40aa66
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a96f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a96f
test byte [ecx + 0x27], 0x80
jne 0x40a9e6
push 1
push 0x45ac18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40a883
mov ecx, dword [0x45abd0]
test ecx, ecx
mov edx, ecx
jle 0x40a9a3
lea eax, [ecx*4 + 0x45abd4]
cmp dword [eax], edi
je 0x40a9a3
dec edx
sub eax, 4
test edx, edx
jg 0x40a997
test edx, edx
jne 0x40a9d4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a9b0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a9c8
lea eax, [edx*4 + 0x45abd8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a9b6
cmp ecx, 0x10
jge 0x40a9d4
inc ecx
mov dword [0x45abd0], ecx
push 0
push 0x45ac18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40a883
xor eax, eax
jmp 0x40aa69
test esi, esi
jle 0x40a883
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x45ac18
call ebx
test eax, eax
jne 0x40a883
cmp dword [esi*4 + 0x45abd8], edi
je 0x40aa40
mov eax, dword [0x45abd0]
lea esi, [eax - 1]
test esi, esi
jl 0x40aa2e
cmp dword [esi*4 + 0x45abd8], edi
je 0x40aa2a
dec esi
jns 0x40aa1e
test esi, esi
jge 0x40aa3e
cmp eax, 0x10
jge 0x40aa39
inc eax
mov dword [0x45abd0], eax
lea esi, [eax - 1]
jmp 0x40aa40
je 0x40aa58
xor ecx, ecx
test esi, esi
jl 0x40aa58
lea eax, [ecx*4 + 0x45abd8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40aa46
push 0
push 0x45ac18
call ebx
jmp 0x40a883
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aa6e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4577d0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x457fe8]
je 0x40aaa5
inc eax
cmp eax, 0x13
jb 0x40aa96
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x457fe8]
jne 0x40abc8
mov eax, dword [0x45a9f8]
cmp eax, 1
je 0x40aba3
cmp eax, edx
jne 0x40aad5
cmp dword [0x4577c4], 1
je 0x40aba3
cmp ecx, 0xfc
je 0x40abc8
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ab0b
lea eax, [ebp - 0x7c]
push 0x41d41c
push eax
call fcn.0040c4c0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00406040
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40ab3f
mov eax, edi
push eax
call fcn.00406040
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d418
push edi
call fcn.0040e830
add esp, 0x10
push edi
call fcn.00406040
push dword [esi + 0x457fec]
mov ebx, eax
call fcn.00406040
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405a00
mov ebx, esp
push 0x41d3fc
push ebx
call fcn.0040c4c0
push edi
push ebx
call fcn.0040c4d0
push 0x41d3f8
push ebx
call fcn.0040c4d0
push dword [esi + 0x457fec]
push ebx
call fcn.0040c4d0
push 0x12010
push 0x41d3d0
push ebx
call fcn.0040e9e0
add esp, 0x2c
jmp 0x40abc8
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x457fec]
push dword [esi]
call fcn.00406040
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00405fce
add ebp, 0x90
leave
ret
Function at 0x40e9e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x45ae90], ebx
push esi
push edi
jne 0x40ea60
push 0x41cb1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ea9b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41de30
push edi
call esi
test eax, eax
mov dword [0x45ae90], eax
je 0x40ea9b
push 0x41de20
push edi
call esi
push 0x41de0c
push edi
mov dword [0x45ae94], eax
call esi
cmp dword [0x45aa00], 2
mov dword [0x45ae98], eax
jne 0x40ea60
push 0x41ddf0
push edi
call esi
test eax, eax
mov dword [0x45aea0], eax
je 0x40ea60
push 0x41ddd8
push edi
call esi
mov dword [0x45ae9c], eax
mov eax, dword [0x45ae9c]
test eax, eax
je 0x40eaa5
call eax
test eax, eax
je 0x40ea8c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x45aea0]
test eax, eax
je 0x40ea8c
test byte [ebp - 8], 1
jne 0x40eaa5
cmp dword [0x45aa0c], 4
jb 0x40ea9f
or byte [ebp + 0x12], 0x20
jmp 0x40eac4
xor eax, eax
jmp 0x40ead4
or byte [ebp + 0x12], 4
jmp 0x40eac4
mov eax, dword [0x45ae94]
test eax, eax
je 0x40eac4
call eax
mov ebx, eax
test ebx, ebx
je 0x40eac4
mov eax, dword [0x45ae98]
test eax, eax
je 0x40eac4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x45ae90]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f645
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00405a00
mov eax, dword [0x4577d0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040d6f6
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x40f77a
push 2
push esi
push dword [ebp + 8]
call fcn.0040d6f6
add esp, 0xc
cmp eax, ebx
je 0x40f77a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40f71a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00406560
push 0x8000
push dword [ebp + 8]
call fcn.004103ea
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x40f6d0
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00408e1f
add esp, 0xc
cmp eax, 0xffffffff
je 0x40f6f0
sub edi, eax
test edi, edi
jg 0x40f6c8
jmp 0x40f708
call fcn.004073ff
cmp dword [eax], 5
jne 0x40f705
call fcn.004073f6
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004103ea
pop ecx
pop ecx
jmp 0x40f762
jge 0x40f762
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d6f6
push dword [ebp + 8]
call fcn.0040db08
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40f762
call fcn.004073f6
mov dword [eax], 0xd
call fcn.004073ff
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040d6f6
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40f77c
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fce
leave
ret
Function at 0x40f78a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40f960
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x45af40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40f960
test cl, 0x48
je 0x40f7f5
cmp byte [eax + 5], 0xa
je 0x40f7f5
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f847
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40f82f
call fcn.004073f6
mov dword [eax], 9
call fcn.004073ff
mov dword [eax], esi
jmp 0x40f83f
cmp eax, 0x6d
je 0x40f960
push eax
call fcn.00407408
pop ecx
or eax, 0xffffffff
jmp 0x40f962
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40f95b
test eax, eax
je 0x40f86e
cmp byte [ebx], 0xa
jne 0x40f86e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40f877
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40f955
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40f945
cmp al, 0xd
je 0x40f8a9
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40f937
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40f8c3
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40f8be
add dword [ebp + 0x10], 2
jmp 0x40f917
mov dword [ebp + 0x10], eax
jmp 0x40f933
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f8eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40f933
cmp dword [ebp - 0xc], 0
je 0x40f933
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40f90c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40f917
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40f936
cmp ebx, dword [ebp + 0xc]
jne 0x40f91c
cmp byte [ebp - 1], 0xa
jne 0x40f91c
mov byte [ebx], 0xa
jmp 0x40f936
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040dede
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f937
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40f88d
jmp 0x40f955
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40f955
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40f962
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410915
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41092e
or eax, 0xffffffff
jmp 0x41098f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41098b
push 0x3d
push esi
call fcn.004055d8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41098b
cmp esi, eax
je 0x41098b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x45aa20]
sete cl
cmp eax, dword [0x45aa24]
mov dword [ebp - 4], ecx
jne 0x410971
mov edi, eax
call fcn.004108b4
mov dword [0x45aa20], eax
cmp eax, ebx
jne 0x4109ca
cmp dword [ebp + 0xc], ebx
je 0x410993
cmp dword [0x45aa28], ebx
je 0x410993
call fcn.0040fabc
test eax, eax
je 0x4109ca
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41099c
xor eax, eax
jmp 0x41098e
push 4
call fcn.0040578e
cmp eax, ebx
pop ecx
mov dword [0x45aa20], eax
je 0x41098b
mov dword [eax], ebx
cmp dword [0x45aa28], ebx
jne 0x4109ca
push 4
call fcn.0040578e
cmp eax, ebx
pop ecx
mov dword [0x45aa28], eax
je 0x41098b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x45aa20]
sub edi, esi
push esi
call fcn.00410867
mov edi, eax
test edi, edi
pop ecx
jl 0x410a31
cmp dword [ebx], 0
je 0x410a31
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004057a0
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x410a11
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x410a72
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x410a08
mov eax, edi
shl eax, 2
push eax
push dword [0x45aa20]
call fcn.00406125
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x410a72
jmp 0x410a6d
cmp dword [ebp - 4], 0
jne 0x410ad9
test edi, edi
jge 0x410a41
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x45aa20]
call fcn.00406125
test eax, eax
pop ecx
pop ecx
je 0x41098b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x45aa20], eax
cmp dword [ebp + 0xc], 0
je 0x410ac4
push esi
call fcn.00406040
inc eax
inc eax
push eax
call fcn.0040578e
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x410ac4
push esi
push edi
call fcn.0040c4c0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x410abd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004057a0
pop ecx
cmp dword [ebp - 4], 0
je 0x410ad1
push esi
call fcn.004057a0
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41098e
push esi
call fcn.004057a0
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x410998
Function at 0x41268b
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.00406560
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 [0x41bea0]
je 0x4127d9
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 0x4126fb
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 0x412702
cmp ebx, ebx
jne 0x412702
xor eax, eax
jmp 0x4127dc
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x41270f
mov byte [esi + 0x20], bl
jmp 0x412723
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.0040364b
test eax, eax
je 0x41274a
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403732
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x41274f
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040364b
test eax, eax
je 0x412777
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403732
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x412781
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0040364b
test eax, eax
je 0x4127a9
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403732
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x4127b3
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4127c5
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4127d9
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 0x412e3e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41a5cb
call fcn.004060cc
sub esp, 0x154
mov eax, dword [0x4577d0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x158]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x412e85
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x412e89
cmp eax, esi
jb 0x412e90
xor eax, eax
jmp 0x412f74
call fcn.00411911
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x154]
push eax
push edi
call fcn.00412dfc
push dword [ebp - 0x154]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x412f61
push eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x412ef1
xor esi, esi
jmp 0x412f64
test byte [ebp - 0x15c], 2
jne 0x412f01
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x15c], 4
jne 0x412f61
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x412f61
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x158], 0
je 0x412eed
cmp dword [ebp - 0x158], edi
jbe 0x412eed
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x158]
cmp eax, esi
jge 0x412eed
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x154]
add ecx, 0xfffffff0
call fcn.00401180
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fce
leave
ret 8

Function at 0x416f05
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4577d0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x416f58
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x416f58
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x416f60
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fce
leave
ret 8