joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006cad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x1006cbc
xor eax, eax
jmp 0x1006d2f
movzx eax, word [ebp + 0xc]
push ebx
push esi
push dword [ebp + 0x18]
shr eax, 4
xor ebx, ebx
inc eax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x1006d20
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1006d2d
and dword [ebp + 0xc], 0xf
movzx ebx, word [eax]
lea esi, [eax + 2]
je 0x1006d03
mov eax, dword [ebp + 0xc]
lea esi, [esi + ebx*2]
movzx ebx, word [esi]
inc esi
inc esi
dec eax
jne 0x1006cf8
cmp dword [ebp + 0x14], 0
jne 0x1006d0d
mov dword [edi], esi
jmp 0x1006d2b
dec dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x14]
jle 0x1006d18
mov ebx, dword [ebp + 0x14]
mov ecx, ebx
rep movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0
je 0x1006d2b
and word [edi + ebx*2], 0
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
ret 0x14

Function at 0x1006d90
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [esp + 0x14]
call edi
mov esi, eax
test esi, esi
je 0x1006de3
inc esi
mov eax, 0x104
cmp esi, eax
ja 0x1006db4
mov esi, eax
push ebx
push 2
push esi
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x1006dca
xor eax, eax
jmp 0x1006de2
push esi
push ebx
push dword [esp + 0x18]
call edi
test eax, eax
jne 0x1006de0
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1006dc6
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
Function at 0x1006eb3
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002000
call fcn.01007070
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006eee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006eee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006f06
cmp eax, 0x20b
je 0x1006ef3
mov dword [ebp - 0x1c], edi
jmp 0x1006f1a
cmp dword [ecx + 0x84], 0xe
jbe 0x1006eee
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006f14
cmp dword [ecx + 0x74], 0xe
jbe 0x1006eee
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100a3a0], 0xffffffff
or dword [0x100a3a4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100a374]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100a370]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100a3a8], eax
call fcn.010070d8
cmp dword [0x1009010], edi
jne 0x1006f75
push fcn.010070d8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010070c6
push 0x1001280
push 0x100127c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100a36c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100a368]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001278
push 0x1001274
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01003b09
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006fec
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1007021
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010070a9
ret

Function at 0x1007167
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1002050
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10071bf
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x100208c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10071b2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10071c1
xor eax, eax
pop esi
leave
ret 4
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x43
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 7
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x34
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x81
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb4
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc9
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9f
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xee
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd5
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa7
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd0
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x3b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x81
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x49ad81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d0034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49adcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049b243
test al, al
jne 0x49adc6
sub edx, 2
cmp edx, edi
jne 0x49adac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49adee
lea eax, [edi + 2]
cmp edx, eax
je 0x49adee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a97a
add esp, 0x10
jmp 0x49aee8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049b243
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ae31
push dword [ebp - 0x25c]
jmp 0x49adde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ae6e
cmp word [ebp - 0x226], 0
je 0x49ae8f
cmp word [ebp - 0x226], ax
jne 0x49ae6e
cmp word [ebp - 0x224], 0
je 0x49ae8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a97a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49aedb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ae48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49aec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49aee8
push 0x49a362
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040555b
add esp, 0x10
jmp 0x49aeb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret

Function at 0x40ed6d
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x40eae0
call fcn.0040ed94
mov ecx, ecx
xor dword [eax], esi
inc ecx
inc eax
sub ecx, 1
cmp eax, edi
jne fcn.0040ed6d
add ecx, 0xef8f0526
or ebx, ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40894a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.0040896f
add esi, 0x238eaa9a
xor dword [edx], ecx
sub eax, 0xc238b5b3
and eax, eax
add edx, 1
cmp edx, edi
jne fcn.0040894a
ret
Function at 0x4010f3
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
nop
mov eax, 0x128
mov dword [ebp - 0x128], eax
mov eax, 0
push eax
mov eax, 2
push eax
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x12c]
cmp eax, ecx
je 0x4011e2
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
push eax
call sub.kernel32.dll_Process32First
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
cmp eax, 0
je 0x4011d6
mov eax, 0x104
push eax
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_CharLowerBuffA
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
cmp eax, 0
jne 0x4011b8
mov eax, dword [ebp - 0x120]
push eax
mov eax, 0
push eax
mov eax, 0x1f0fff
push eax
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x134], eax
mov eax, 0
push eax
mov eax, dword [ebp - 0x134]
push eax
call sub.kernel32.dll_TerminateProcess
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
push eax
call sub.kernel32.dll_Process32Next
mov dword [ebp - 0x130], eax
jmp 0x40114b
mov eax, dword [ebp - 0x12c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffffff
leave
ret

Function at 0x4011e9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
nop
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
mov eax, 0x104
push eax
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_CharLowerBuffA
mov eax, 0x128
mov dword [ebp - 0x22c], eax
mov eax, 0
push eax
mov eax, 2
push eax
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x230], eax
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x230]
cmp eax, ecx
je 0x4012e3
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
push eax
call sub.kernel32.dll_Process32First
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
cmp eax, 0
je 0x4012d7
mov eax, 0x104
push eax
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_CharLowerBuffA
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
cmp eax, 0
jne 0x4012bc
mov eax, dword [ebp - 0x230]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 1
jmp 0x4012e8
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
push eax
call sub.kernel32.dll_Process32Next
mov dword [ebp - 0x234], eax
jmp 0x401266
mov eax, dword [ebp - 0x230]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffffff
leave
ret
Function at 0x401d47
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
nop
mov eax, 0
mov dword [ebp - 8], eax
mov eax, 0
push eax
mov eax, pe_nt_image_headers32
push eax
mov eax, 2
push eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0x40000000
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x401e2a
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_GetWindowTextLengthA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
jbe 0x401e21
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, 0x40
push eax
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x401e21
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_GetWindowTextA
cmp eax, 0
je 0x401e18
mov eax, 0
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile
cmp eax, 0
je 0x401e18
mov eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret

Function at 0x401e2f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
nop
mov eax, 0
mov dword [ebp - 8], eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 3
push eax
mov eax, 0
push eax
mov eax, 1
push eax
mov eax, 0x80000000
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x401f1d
mov eax, 0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x401f14
mov eax, dword [ebp - 0xc]
inc eax
push eax
mov eax, 0x40
push eax
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x401f14
mov eax, 0
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 0
je 0x401f0b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, 0
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_SetWindowTextA
cmp eax, 0
je 0x401f0b
mov eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret
Function at 0x402043
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0
nop
mov eax, 5
push eax
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, 0x258
push eax
call fcn.00401ae3
add esp, 4
mov eax, 0
push eax
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_ShowWindow
leave
ret

Function at 0x4022cd
Capabilities:
Get graphical window text
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
nop
mov eax, 0x5a
push eax
lea eax, [ebp - 0x5a]
push eax
mov eax, dword [0x409210]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, 0x4081ca
push eax
lea eax, [ebp - 0x5a]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 0x60], eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.msvcrt.dll_fseek
add esp, 0xc
lea eax, [ebp - 0x5a]
push eax
call fcn.00401a7b
add esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], esp
mov eax, dword [ebp - 0x68]
push eax
call fcn.00407714
add esp, 4
mov dword [ebp - 0x6c], esp
mov eax, dword [ebp - 0x64]
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 1
mov dword [ebp - 0x74], eax
mov esp, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x64]
cmp eax, ecx
jge 0x4023a6
jmp 0x402383
mov esp, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
mov ecx, eax
inc eax
mov dword [ebp - 0x74], eax
jmp 0x40235f
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x6c]
add ecx, eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, 1
push eax
mov eax, 1
push eax
push ecx
call sub.msvcrt.dll_fread
add esp, 0x10
jmp 0x402375
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.msvcrt.dll_fseek
add esp, 0xc
mov eax, 0
mov dword [ebp - 0x78], eax
mov esp, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x64]
cmp eax, ecx
jge 0x402435
jmp 0x4023ea
mov esp, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x78]
mov ecx, eax
inc eax
mov dword [ebp - 0x78], eax
jmp 0x4023c6
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
add ecx, eax
movzx eax, byte [ecx]
cmp eax, 9
jne 0x402433
mov eax, dword [ebp - 0x78]
dec eax
mov ecx, 0
push ecx
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.msvcrt.dll_fseek
add esp, 0xc
mov eax, dword [ebp - 0x60]
push eax
mov eax, 1
push eax
mov eax, 1
push eax
mov eax, 0x4081ce
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
jmp 0x4023dc
mov eax, dword [ebp - 0x60]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov esp, dword [ebp - 0x70]
leave
ret
Function at 0x4027d8
Capabilities:
Delete file
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
nop
mov eax, 0x4081e8
mov dword [ebp - 0xb8], eax
mov eax, 0
mov byte [ebp - 0x180], al
mov eax, 0xc7
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x17f]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x50
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [0x409210]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, 0x2f
push eax
lea eax, [ebp - 0xb4]
push eax
call sub.msvcrt.dll_strrchr
add esp, 8
inc eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
dec eax
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0xb8]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
dec eax
push eax
mov eax, dword [ebp - 0xb8]
push eax
lea eax, [ebp - 0x180]
push eax
call sub.msvcrt.dll_strncpy
add esp, 0xc
mov eax, 0
mov byte [ebp - 0x2ec], al
mov eax, 0xb3
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x2eb]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x2ec]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
mov eax, 0x4081e9
push eax
lea eax, [ebp - 0x2ec]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
lea eax, [ebp - 0x2ec]
push eax
call fcn.004011e9
add esp, 4
cmp eax, 1
jne 0x40291b
mov eax, str.Program
push eax
mov eax, 2
push eax
mov eax, 0x401
push eax
mov eax, dword [0x4091f0]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x2ec]
push eax
call fcn.004010f3
add esp, 4
mov eax, str.d:_aksa_editorc_
push eax
lea eax, [ebp - 0x234]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x234]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
mov eax, 0x408215
push eax
lea eax, [ebp - 0x234]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
lea eax, [ebp - 0x234]
push eax
call fcn.00401a11
add esp, 4
cmp eax, 0
je 0x4029dc
lea eax, [ebp - 0x234]
push eax
mov eax, dword [0x4091ec]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x4029bf
mov eax, 5
push eax
mov eax, 0
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x234]
push eax
mov eax, 0x408219
push eax
mov eax, 0
push eax
call fcn.00407242
add esp, 0x18
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x4029d7
lea eax, [ebp - 0x234]
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x4029ee
mov eax, str._Dosya_Yok__...
push eax
mov eax, dword [0x4091ec]
push eax
call sub.user32.dll_SetWindowTextA
leave
ret
Function at 0x407474
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x4074a2
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x4074aa
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x4074d9
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x4074ff
mov eax, 0x408818
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x407528
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x407528
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x407528
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00403797
leave
ret
Function at 0x403319
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403358
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403358
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403358
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403358
cmp dword [ecx + 0x74], 0xe
jbe 0x403358
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret