joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43be0f
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8c58
call fcn.004540a0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x41
push edi
mov edi, dword [ebp + 0x18]
je 0x43be31
cmp al, 0x61
jne 0x43be82
cmp byte [esi + 1], bl
jne 0x43be82
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], bl
jne 0x43be82
mov ecx, dword [ebp + 0x14]
cmp byte [ecx], bl
jne 0x43be82
cmp byte [edi], bl
jne 0x43be82
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, ebx
je 0x43be6c
cmp byte [edi + 0x132], bl
jne 0x43be6c
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x43be6c
xor esi, esi
cmp byte [ebp + 0x20], bl
je 0x43be7b
cmp esi, ebx
je 0x43be7b
mov dword [edi + 0x118], esi
mov eax, esi
jmp 0x43bf89
cmp al, bl
jne 0x43bea6
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
jne 0x43bea6
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
jne 0x43bea6
cmp byte [edi], bl
jne 0x43bea6
push dword [ebp + 8]
call fcn.0043ad7f
pop ecx
jmp 0x43bf89
lea ecx, [ebp - 0x8c58]
call fcn.0043ae9c
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x8c58]
push dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043b1b5
test eax, eax
je 0x43bf5e
test byte [ebp - 0x8c58], 2
mov al, byte [ebp + 0x1c]
mov byte [ebp - 0x8430], al
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x8420], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x841c], eax
je 0x43bf62
cmp dword [ebp - 0x843c], 0xffff
je 0x43bf3d
push dword [ebp - 0x843c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43bf5e
cmp byte [esi + 0x132], bl
jne 0x43bf3d
push dword [ebp - 0x843c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x43bf3d
push 0xfffffffffffffff0
push dword [ebp - 0x843c]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x43bf5e
push dword [ebp - 0x843c]
lea ecx, [ebp - 0x8c58]
call fcn.0043b19d
push ebx
lea ecx, [ebp - 0x8c58]
call fcn.0043aee3
test eax, eax
jne 0x43bf74
xor eax, eax
jmp 0x43bf89
lea eax, [ebp - 0x8c58]
push eax
push 0x43ac6b
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x20], bl
mov eax, dword [ebp - 0x8428]
je 0x43bf89
cmp eax, ebx
je 0x43bf89
mov dword [esi + 0x118], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43cec9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004540a0
mov eax, dword [0x462b30]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x467980]
mov dword [ebp - 4], eax
jae 0x43d00c
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4679a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x43d00c
push 1
push esi
push ebx
call fcn.0043e84d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x43d016
push 2
push esi
push ebx
call fcn.0043e84d
add esp, 0xc
cmp eax, 0xffffffff
je 0x43d016
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43cfb6
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004539d0
push 0x8000
push ebx
call fcn.00440fc5
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x43cf75
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004421e3
add esp, 0xc
cmp eax, 0xffffffff
je 0x43cf93
sub edi, eax
test edi, edi
jg 0x43cf6a
jmp 0x43cfa9
cmp dword [0x4674d4], 5
jne 0x43cfa6
mov dword [0x4674d0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00440fc5
pop ecx
pop ecx
jmp 0x43cff6
jge 0x43cff6
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0043e84d
push ebx
call fcn.0043f34d
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, 0xffffffff
jne 0x43cff6
mov dword [0x4674d0], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x4674d4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0043e84d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43d019
mov dword [0x4674d0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00440e09
leave
ret
Function at 0x43d4af
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x462b30]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4629e0]
je 0x43d4e4
inc eax
cmp eax, 0x13
jb 0x43d4d5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4629e0]
jne 0x43d60a
mov eax, dword [0x467534]
cmp eax, 1
je 0x43d5e2
cmp eax, edx
jne 0x43d514
cmp dword [0x462884], 1
je 0x43d5e2
cmp ecx, 0xfc
je 0x43d60a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x43d54a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004538d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00453b00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43d57e
mov eax, edi
push eax
call fcn.00453b00
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4580a8
push edi
call fcn.004548c0
add esp, 0x10
push edi
call fcn.00453b00
push dword [esi + 0x4629e4]
mov ebx, eax
call fcn.00453b00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004540a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004538d0
push edi
push ebx
call fcn.004538e0
push 0x45e228
push ebx
call fcn.004538e0
push dword [esi + 0x4629e4]
push ebx
call fcn.004538e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043d626
add esp, 0x2c
jmp 0x43d60a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4629e4]
push dword [esi]
call fcn.00453b00
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]
mov ecx, dword [ebp + 0x88]
call fcn.00440e09
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43d626
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x467730], ebx
push esi
push edi
jne 0x43d6a6
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d6e1
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x45e2e4
push edi
call esi
test eax, eax
mov dword [0x467730], eax
je 0x43d6e1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x467734], eax
call esi
cmp dword [0x4674dc], 2
mov dword [0x467738], eax
jne 0x43d6a6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x467740], eax
je 0x43d6a6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46773c], eax
mov eax, dword [0x46773c]
test eax, eax
je 0x43d6eb
call eax
test eax, eax
je 0x43d6d2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x467740]
test eax, eax
je 0x43d6d2
test byte [ebp - 8], 1
jne 0x43d6eb
cmp dword [0x4674e8], 4
jb 0x43d6e5
or byte [ebp + 0x12], 0x20
jmp 0x43d70a
xor eax, eax
jmp 0x43d71a
or byte [ebp + 0x12], 4
jmp 0x43d70a
mov eax, dword [0x467734]
test eax, eax
je 0x43d70a
call eax
mov ebx, eax
test ebx, ebx
je 0x43d70a
mov eax, dword [0x467738]
test eax, eax
je 0x43d70a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x467730]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43db47
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 0x43db75
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 0x43db7c
cmp ebx, dword [eax + 4]
jae 0x43db7c
xor eax, eax
jmp 0x43dd6c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43db8d
xor eax, eax
inc eax
jmp 0x43dd6b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43dba3
cmp ecx, edx
jae 0x43dce8
cmp dword [eax + 4], 0
je 0x43dbac
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43db94
cmp dword [ebp + 8], 0
je 0x43dbce
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43dce8
cmp eax, esi
jae 0x43dce8
mov eax, dword [0x467598]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43dbf3
cmp dword [esi*4 + 0x4675a0], edi
je 0x43dcec
inc esi
cmp esi, eax
jl 0x43dbe1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x43dd68
cmp dword [ebp - 8], 0x1000000
jne 0x43dd68
test byte [ebp - 0xc], 0xcc
je 0x43dc71
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43dd68
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43dd68
cmp word [eax + 0x18], 0x10b
jne 0x43dd68
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43dd68
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43dc71
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43dc71
test byte [ecx + 0x27], 0x80
jne 0x43dce8
push 1
push 0x4675e0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x43db85
mov ecx, dword [0x467598]
test ecx, ecx
mov edx, ecx
jle 0x43dca5
lea eax, [ecx*4 + 0x46759c]
cmp dword [eax], edi
je 0x43dca5
dec edx
sub eax, 4
test edx, edx
jg 0x43dc99
test edx, edx
jne 0x43dcd6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43dcb2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43dcca
lea eax, [edx*4 + 0x4675a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43dcb8
cmp ecx, 0x10
jge 0x43dcd6
inc ecx
mov dword [0x467598], ecx
push 0
push 0x4675e0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x43db85
xor eax, eax
jmp 0x43dd6b
test esi, esi
jle 0x43db85
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4675e0
call ebx
test eax, eax
jne 0x43db85
cmp dword [esi*4 + 0x4675a0], edi
je 0x43dd42
mov eax, dword [0x467598]
lea esi, [eax - 1]
test esi, esi
jl 0x43dd30
cmp dword [esi*4 + 0x4675a0], edi
je 0x43dd2c
dec esi
jns 0x43dd20
test esi, esi
jge 0x43dd40
cmp eax, 0x10
jge 0x43dd3b
inc eax
mov dword [0x467598], eax
lea esi, [eax - 1]
jmp 0x43dd42
je 0x43dd5a
xor ecx, ecx
test esi, esi
jl 0x43dd5a
lea eax, [ecx*4 + 0x4675a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43dd48
push 0
push 0x4675e0
call ebx
jmp 0x43db85
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43feb3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x467980]
push edi
jae 0x440088
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4679a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x440088
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x43ff5e
test dl, 2
jne 0x43ff5e
test dl, 0x48
je 0x43ff28
cmp byte [eax + 5], 0xa
je 0x43ff28
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x43ff71
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x43ff59
mov dword [0x4674d4], ecx
jmp 0x44008f
cmp eax, 0x6d
jne 0x43ff65
xor eax, eax
jmp 0x44009c
push eax
call fcn.0043dae8
pop ecx
jmp 0x440099
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x440083
test eax, eax
je 0x43ff98
cmp byte [ebx], 0xa
jne 0x43ff98
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x43ffa1
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x44007d
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x44006d
cmp al, 0xd
je 0x43ffd3
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x44005f
dec ecx
cmp dword [ebp - 8], ecx
jae 0x43ffed
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x43ffe8
add dword [ebp - 8], 2
jmp 0x440041
mov dword [ebp - 8], eax
jmp 0x44005b
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x440015
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x44005b
cmp dword [ebp - 0x10], 0
je 0x44005b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x440036
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x440041
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x44005e
cmp ebx, dword [ebp + 0xc]
jne 0x440046
cmp byte [ebp - 1], 0xa
jne 0x440046
mov byte [ebx], 0xa
jmp 0x44005e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043e84d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x44005f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x43ffb7
jmp 0x44007d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x44007d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x44009c
and dword [0x4674d4], 0
mov dword [0x4674d0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x440203
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004540a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x44029e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4674dc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x44029e
cmp eax, 1
je 0x4402bf
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x44029e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x44026b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44029a
xor eax, eax
inc eax
jmp 0x4402de
cmp edi, eax
jae 0x4402a2
xor eax, eax
jmp 0x4402de
cmp eax, esi
jae 0x4402a9
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x4674dc]
jmp 0x4402c2
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441e96
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x45d848
call fcn.00454760
mov edi, 0x94
mov eax, edi
call fcn.004540a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4674dc], ecx
mov eax, dword [esi + 4]
mov dword [0x4674e8], eax
mov edx, dword [esi + 8]
mov dword [0x4674ec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4674e0], esi
cmp ecx, 2
je 0x441ef6
or esi, 0x8000
mov dword [0x4674e0], esi
shl eax, 8
add eax, edx
mov dword [0x4674e4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x441f31
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x441f31
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x441f49
cmp eax, 0x20b
je 0x441f36
mov dword [ebp - 0x1c], esi
jmp 0x441f5d
cmp dword [ecx + 0x84], 0xe
jbe 0x441f31
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x441f57
cmp dword [ecx + 0x74], 0xe
jbe 0x441f31
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0043e11b
pop ecx
test eax, eax
jne 0x441f89
cmp dword [0x467534], 1
jne 0x441f76
call fcn.0043d476
push 0x1c
call fcn.0043d4af
push 0xff
call fcn.0043d393
pop ecx
pop ecx
call fcn.0043e1b4
mov dword [ebp - 4], esi
call fcn.0043e5da
test eax, eax
jge 0x441fa2
push 0x1b
call fcn.00441e71
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x467ac4], eax
call fcn.0043c630
mov dword [0x46752c], eax
call fcn.004411e7
test eax, eax
jge 0x441fc8
push 8
call fcn.00441e71
pop ecx
call fcn.00441289
test eax, eax
jge 0x441fd9
push 9
call fcn.00441e71
pop ecx
push 1
call fcn.0043d3e1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x441fef
push eax
call fcn.00441e71
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00441e14
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x442010
movzx eax, word [ebp - 0x40]
jmp 0x442013
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0044cbb3
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x442031
push edi
call fcn.0043d45c
call fcn.0043d3d2
jmp 0x442063
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045479b
ret
Function at 0x4421e3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x467980]
mov eax, dword [0x462b30]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4423a9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4679a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4423a9
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x44224d
xor eax, eax
jmp 0x4423bd
test al, 0x20
je 0x44225e
push 2
push edi
push edi
push ecx
call fcn.0043e8d9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x442333
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x44237a
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4422c0
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4422b1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x442293
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x442300
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44230c
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x442287
jmp 0x44230e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4423a4
cmp dword [ebp + 0x3a4], edi
je 0x44237a
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x44236c
mov dword [0x4674d4], eax
jmp 0x4423b0
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44235e
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x44230e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x44230e
push dword [ebp + 0x3a4]
call fcn.0043dae8
pop ecx
jmp 0x4423ba
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x442392
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x442246
mov dword [0x4674d0], 0x1c
mov dword [0x4674d4], edi
jmp 0x4423ba
sub eax, dword [ebp - 0x7c]
jmp 0x4423bd
and dword [0x4674d4], 0
mov dword [0x4674d0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00440e09
add ebp, 0x39c
leave
ret
Function at 0x4426ac
Capabilities:
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov dword [ebp - 0x14], ecx
mov ebx, 0x4642d8
mov ecx, ebx
call fcn.00442e4b
test eax, eax
jne 0x4426e5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x14]
push 0x4565d8
push 0
push str.Cant_open_clipboard_for_writing.
call fcn.0044a6b8
jmp 0x442729
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x442713
cmp dword [ebp - 4], 4
jae 0x4427c3
push edi
mov ecx, ebx
call fcn.00442aac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x442830
cmp dword [ebp - 4], 4
jb 0x442830
push dword [ebp - 0x10]
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x4427ce
cmp dword [ebp - 0x10], edi
je 0x44279d
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
cmp eax, edi
je 0x4427ec
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x44281e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jb 0x44281e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x442830
cmp dword [ebp - 4], 4
jb 0x442830
cmp dword [ebp - 0xc], edi
jne 0x44272e
jmp 0x442830
push edi
mov ecx, ebx
call fcn.00442aac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x4565d8
push edi
push str.Out_of_memory.
jmp 0x442811
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push edi
mov ecx, ebx
call fcn.00442aac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x4565d8
push edi
push 0x456750
mov ecx, dword [ebp - 0x14]
call fcn.0044a6b8
jmp 0x442727
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push edi
mov ecx, ebx
call fcn.00442aac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0xc], edi
jne 0x442724
mov ecx, dword [0x463c78]
push 1
push edi
push 0xffffffffffffffff
push 0x45671c
call fcn.00401525
jmp 0x442727