joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40309b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x795878]
sub esi, dword [0x40afa8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x7a26cc], eax
jle 0x403203
push dword [0x79d888]
call fcn.0040324c
push ebx
push ebx
push dword [0x40afa8]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x79d884], esi
mov dword [0x795874], ebx
mov ebp, 0x789874
mov eax, dword [0x79587c]
mov edi, 0x4000
sub eax, dword [0x79d888]
cmp eax, edi
jg 0x403110
mov edi, eax
mov esi, 0x791874
push edi
push esi
call fcn.0040321a
test eax, eax
je 0x4031eb
add dword [0x79d888], edi
mov dword [0x40afb0], esi
mov dword [0x40afb4], edi
cmp dword [0x7a26d0], ebx
je 0x403167
cmp dword [0x7a2760], ebx
jne 0x403167
mov eax, dword [0x79d884]
push ebx
sub eax, dword [0x795878]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afa8]
mov dword [0x795874], eax
call fcn.00402c25
pop ecx
push 0x40afb0
mov dword [0x40afb8], ebp
mov dword [0x40afbc], 0x8000
call fcn.00406080
test eax, eax
jl 0x403215
mov esi, dword [0x40afb8]
sub esi, ebp
je 0x4031c5
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031f0
cmp esi, dword [esp + 0x10]
jne 0x4031f0
add dword [0x40afa8], esi
cmp dword [0x40afb4], ebx
jne 0x403136
jmp 0x4031d1
cmp dword [0x40afb4], ebx
jne 0x403215
cmp edi, ebx
je 0x403215
mov eax, dword [0x795878]
mov ecx, eax
sub ecx, dword [0x40afa8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4031f4
jmp 0x4030fa
or eax, 0xffffffff
jmp 0x40320d
push 0xfffffffffffffffe
jmp 0x403217
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c25
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x40320d
Function at 0x40547d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0cd0], 0x44
push eax
xor eax, eax
push 0x7a0cd0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054b8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40555e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405814
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405592
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2748], eax
jmp 0x40572b
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4055b0
test eax, eax
je 0x4056d6
test byte [ebp + 0xc], 2
je 0x4056d6
mov esi, 0x79fcd0
push edi
push esi
call fcn.00405c48
test ebx, ebx
je 0x4055cd
push str..
push esi
call fcn.00405c6b
jmp 0x4055d3
push edi
call fcn.00405778
cmp byte [edi], 0
jne 0x4055e1
cmp byte [0x79fcd0], 0x5c
jne 0x4055ec
push 0x409010
push edi
call fcn.00405c6b
push edi
call fcn.00405c5e
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4056cc
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040575c
cmp byte [eax], 0
je 0x405632
cmp byte [ebp - 0x18], 0
je 0x405632
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x40564d
cmp byte [esi + 1], 0
je 0x4056ab
cmp al, al
jne 0x40564d
cmp byte [esi + 1], al
jne 0x40564d
cmp byte [esi + 2], 0
je 0x4056ab
push esi
push ebx
call fcn.00405c48
test byte [ebp - 0x148], 0x10
je 0x405672
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056ab
push dword [ebp + 0xc]
push edi
call fcn.0040555e
jmp 0x4056ab
push edi
call fcn.004058fe
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4056a3
test byte [ebp + 0xc], 4
je 0x40569b
push edi
push 0xfffffffffffffff1
call fcn.00404fb1
push 0
push edi
call fcn.00405995
jmp 0x4056ab
inc dword [0x7a2748]
jmp 0x4056ab
push edi
push 0xfffffffffffffff2
call fcn.00404fb1
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405610
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4056d6
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40572b
cmp dword [ebp - 8], esi
jne 0x4056eb
inc dword [0x7a2748]
jmp 0x40572b
push edi
call fcn.00405f6d
test eax, eax
je 0x40572b
push edi
call fcn.00405731
push edi
call fcn.004058fe
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405723
test byte [ebp + 0xc], 4
je 0x4056e3
push edi
push 0xfffffffffffffff1
call fcn.00404fb1
push esi
push edi
call fcn.00405995
jmp 0x40572b
push edi
push 0xffffffffffffffe5
call fcn.00404fb1
pop edi
pop esi
leave
ret 8
Function at 0x405814
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a00d0
push esi
call fcn.00405c48
push esi
call fcn.004057c5
mov edi, eax
test edi, edi
jne 0x405835
xor eax, eax
jmp 0x405887
push edi
call fcn.00405ed4
test byte [0x7a26d8], 0x80
je 0x40584e
mov al, byte [edi]
test al, al
je 0x405831
cmp al, 0x5c
je 0x405831
sub edi, esi
push esi
call fcn.00405c5e
cmp eax, edi
push esi
jle 0x405871
call fcn.00405f6d
test eax, eax
je 0x405869
test byte [eax], 0x10
je 0x405831
push esi
call fcn.00405778
jmp 0x405850
call fcn.00405731
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40591a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40591d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40594c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405991
mov eax, edi
dec edi
test eax, eax
jne 0x405957
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40598b
Function at 0x405995
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405f94
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4059b9
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405af2
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0e58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0e58
je 0x4059fd
push 1
push 0
push esi
call fcn.0040591d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405af8
cmp eax, edi
jg 0x405af8
mov esi, 0x7a08d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405af8
cmp eax, edi
jg 0x405af8
push esi
push ebp
push str._s_s_r_n
push 0x7a04d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a26d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405c7c
push 4
push 0xc0000000
push esi
call fcn.0040591d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405af2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405aeb
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405aeb
cmp edi, dword [esp + 0x18]
jne 0x405aeb
push str._Rename__r_n
push esi
call fcn.0040588c
test eax, eax
jne 0x405aff
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405c48
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a04d0
push eax
call fcn.004058d8
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2750]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409348
push eax
call fcn.0040588c
test eax, eax
je 0x405ab6
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405b26
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405b1b
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405ab8
Function at 0x405b2e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405b9f
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405b8e
cmp dword [ebp + 0x14], 1
je 0x405b90
cmp dword [ebp + 0x14], 2
je 0x405b90
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40600a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x7a125c], esi
push edi
jne 0x406044
mov ecx, 0x7a1258
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406020
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x7a1658
jl 0x40601b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406079
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1258]
xor eax, esi
inc ecx
dec edx
jne 0x40605c
pop edi
pop esi
not eax
ret 0xc
Function at 0x419b82
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427760
push 0x41b70c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.00419b1c]
test eax, eax
je 0x419bca
mov dword [ebp - 4], 1
call eax
jmp 0x419bc6
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x419bd3
jmp fcn.00419b1c

Function at 0x41b81d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4300e8
cmp edx, dword [eax]
je 0x41b83f
add eax, 8
inc ecx
cmp eax, 0x430178
jl 0x41b830
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4300e8]
jne 0x41b96d
mov eax, dword [0x4378b0]
cmp eax, 1
je 0x41b947
test eax, eax
jne 0x41b870
cmp dword [0x42fe08], 1
je 0x41b947
cmp edx, 0xfc
je 0x41b96d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b8a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041a9b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d2f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b8ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d2f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427ae4
push edi
call fcn.0041e380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041a9b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a9c0
lea eax, [ebp - 0xa0]
push 0x427ac4
push eax
call fcn.0041a9c0
push dword [esi + 0x4300ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a9c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041e2f0
add esp, 0x2c
pop edi
jmp 0x41b96d
lea eax, [ebp + 8]
lea esi, [esi + 0x4300ec]
push 0
push eax
push dword [esi]
call fcn.0041d2f0
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]
pop esi
leave
ret
Function at 0xd9c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd9c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd9c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9c06a
add dl, dl
jne 0xd9c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9c0dc
xor eax, eax
add dl, dl
jne 0xd9c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9c17d
add dl, dl
jne 0xd9c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd9c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd9c075
mov eax, 1
add dl, dl
jne 0xd9c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9c0e1
sub eax, ebx
mov ebx, 1
jne 0xd9c128
mov ecx, 1
add dl, dl
jne 0xd9c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9c136
cmp eax, 0x7d00
jae 0xd9c16d
cmp eax, 0x500
jb 0xd9c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9c075
cmp eax, 0x7f
ja 0xd9c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd9c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100225d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x1009b38], 0
mov dword [ebp - 0x18], 0x10011ac
mov dword [ebp - 0x14], 0x1001e2f
mov dword [ebp - 0x10], 0x10011a0
mov dword [ebp - 0xc], 0x10020a9
mov dword [ebp - 8], 0x1001190
mov dword [ebp - 4], fcn.01001df6
jne 0x10023b9
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10023af
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x10022b9
push ebx
push esi
push edi
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10022d6
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, 0x1001188
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1002317
push 0x10011ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1002313
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x100236e
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x1002319
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002333
mov esi, 0x1001180
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10023ac
push 0x10011ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100236a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x10023ac
xor edi, edi
push dword [ebp + edi*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x14], eax
je 0x100238b
inc edi
cmp edi, 3
jl 0x1002370
jmp 0x1002394
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x10023ac
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x1008008], ecx
add eax, 8
cmp eax, 0x18
jl 0x100239a
pop edi
pop esi
pop ebx
mov dword [0x1009b38], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x1008008]
leave
ret 4

Function at 0x1002597
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 1]
mov eax, dword [ebp + 0x10]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jne 0x10025b4
push dword [ecx + eax*4]
push 0x2711
jmp 0x10025df
push esi
lea esi, [ecx + eax*4]
push 0
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
call fcn.010030ff
add esp, 0xc
cmp eax, dword [ebp + 0x14]
jb 0x10025d8
cmp eax, dword [ebp + 0x18]
ja 0x10025d8
pop esi
pop ebp
ret 0x14
push dword [esi]
push 0x2712
push 1
call fcn.01006d2e
add esp, 0xc
push 1
call fcn.01003383
int3
Function at 0x402460
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5a1af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push eax
mov dword [esp + 0x28], 1
call ebp
cmp eax, 0x3e8
jle 0x4024f9
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xbb
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4024f9
mov edx, dword [esi + 0x20]
push 0
push 0x1f4
push 0xbb
push edx
call ebp
test eax, eax
jg 0x4024da
mov eax, dword [esi + 0x20]
push 0
push edi
push 0xc1
push eax
call ebp
add eax, edi
mov ecx, dword [esi + 0x20]
push eax
push edi
push 0xb1
push ecx
call ebp
mov edx, dword [esi + 0x20]
push 0x63b90c
push 0
push 0xc2
push edx
call ebp
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0xa
push 0xd
push eax
push ecx
mov byte [esp + 0x28], 2
call fcn.004ec660
push eax
lea edx, [esp + 0x20]
push 0x60c0ec
push edx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x44]
add esp, 0x1c
test edx, edx
je 0x4025d3
push ebx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4025d2
jmp 0x402556
mov edx, dword [esp + 0x2c]
mov al, byte [ebx + edx]
cmp al, 0xd
jne 0x402583
push 0xd
lea ecx, [esp + 0x14]
call fcn.0059b7b2
push 0xa
lea ecx, [esp + 0x14]
call fcn.0059b7b2
push 0x60c0e4
lea ecx, [esp + 0x14]
call fcn.0059b7ac
jmp 0x4025bf
cmp al, 0x3e
jne 0x4025b5
push 0xd
lea ecx, [esp + 0x14]
call fcn.0059b7b2
push 0xa
lea ecx, [esp + 0x14]
call fcn.0059b7b2
push 0x60c0e4
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov eax, dword [esp + 0x2c]
mov cl, byte [ebx + eax]
push ecx
jmp 0x4025b6
push eax
lea ecx, [esp + 0x14]
call fcn.0059b7b2
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jl 0x402552
pop ebx
push 0xd
lea ecx, [esp + 0x10]
call fcn.0059b7b2
push 0xa
lea ecx, [esp + 0x10]
call fcn.0059b7b2
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push eax
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x20]
push ecx
push 0
push 0xc2
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x402660
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5a1b30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push eax
mov dword [esp + 0x2c], 2
call edi
cmp eax, 0x3e8
jle 0x4026fb
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xbb
push ecx
call edi
mov ebp, eax
test ebp, ebp
jl 0x4026fb
mov edx, dword [esi + 0x20]
push 0
push 0x1f4
push 0xbb
push edx
call edi
test eax, eax
jg 0x4026dc
mov eax, dword [esi + 0x20]
push 0
push ebp
push 0xc1
push eax
call edi
add eax, ebp
mov ecx, dword [esi + 0x20]
push eax
push ebp
push 0xb1
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0x63b90c
push 0
push 0xc2
push edx
call edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0xa
push 0xd
push eax
push ecx
mov byte [esp + 0x2c], 3
call fcn.004ec660
push eax
lea edx, [esp + 0x20]
push str._s____s______s______c_c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x48]
add esp, 0x1c
xor ebp, ebp
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40276e
mov al, byte [eax + ebp]
cmp al, 0xa
jne 0x402752
push 0xd
lea ecx, [esp + 0x10]
call fcn.0059b7b2
push 0xa
jmp 0x40275b
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.0059b7b2
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, dword [eax - 8]
jl 0x40273c
push 0xd
lea ecx, [esp + 0x10]
call fcn.0059b7b2
push 0xa
lea ecx, [esp + 0x10]
call fcn.0059b7b2
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
mov ecx, dword [esi + 0x20]
push 0xffffffffffffffff
push eax
push 0xb1
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push edx
call edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0xc2
push ecx
call edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc