joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc2c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4f3610]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bc30e
cmp word [ebx], dx
jne 0x4bc30e
or byte [eax + edi + 0x28], 4
jmp 0x4bc313
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4bc476
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4bc456
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4bc354
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bc38a
cmp eax, edx
jae 0x4bc398
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4bc32f
jmp 0x4bc476
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc451
cmp dword [ebp - 0x18], 0
je 0x4bc451
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4f3610]
test byte [eax + edi + 0x28], 0x48
je 0x4bc427
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4bc3eb
mov word [esi], cx
jmp 0x4bc422
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4f3610]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4f3610]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4f3610]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4bc476
pop eax
cmp word [ebp - 4], ax
jne 0x4bc437
cmp esi, ebx
jne 0x4bc437
mov word [esi], ax
jmp 0x4bc473
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b79e1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4bc476
push 0xd
pop eax
jmp 0x4bc432
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4f3610]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4bc470
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4bc476
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c4e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c4e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c4e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x405b32
pop dword [ebp - 0x50]
mov eax, 0xb4cd418d
sub eax, 0xb48ce65b
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x3c722a0d
add dword [ebp - 0x60], 0x11e01b3e
mov dword [ebp - 0x5c], 0xbac690c8
sub dword [ebp - 0x5c], 0x88934483
mov dword [ebp - 0x58], 0x987ff25e
add dword [ebp - 0x58], 0xb3cc51d0
mov dword [ebp - 0x54], 0xaf471a70
sub dword [ebp - 0x54], 0xaf471a70
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x371fe535
add dword [ebp - 0x60], 0x3d528421
mov dword [ebp - 0x5c], 0x1c3ae187
sub dword [ebp - 0x5c], 0xdace8012
mov dword [ebp - 0x58], 0xe623e361
sub dword [ebp - 0x58], 0x82b476f5
mov dword [ebp - 0x54], 0x2db887c9
sub dword [ebp - 0x54], 0x2db887c9
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x566938e3
add eax, 0xa9d74799
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x33ca4
push 0
call eax
mov ecx, 0x7e314299
sub ecx, 0x7e31077a
mov edi, eax
mov esi, 0x4b17c7fa
add esi, 0xb52d4c06
add esi, dword [ebp - 0x50]
mov ebx, 0x4aac709d
sub ebx, 0xba8d522f
xor dword [ebp - 0x44], ebx
mov edx, dword [esi]
xor dword [ebp - 0x14], edi
sub edx, ebx
xor dword [ebp - 0x1c], 0x43ca8df0
mov dword [edi], edx
add dword [ebp - 0x34], ebx
add edi, 4
add esi, 0xfea8e5ec
sub esi, 0xfea8e5e8
loop 0x405c4f
add eax, 0xdf4f
mov ebx, eax
add eax, 5
mov ecx, 0x76c98e1d
add ecx, 0x897671e3
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x464fa5
Capabilities:
Encode data using xor

Disassembly:
scasb al, byte es:[edi]
or ch, ch
je 0x464ff9
sbb ecx, esp
imul ecx, dword [esp + eax*2 - 0x4d], 0x16fab9b8
adc dword [edi], eax
mov ebx, 0xbe12fa6d
lahf
cmp dword [ecx], ebp
wait
mov bh, 0x3e
cdq
sub ebx, ebx
dec ebx
test eax, 0xa8d5bd08
xor al, 0xe8
cld
add byte [eax + 0x4f32f69c], ch
dec edi
mov cl, 0x8b
push 0x39
fisubr dword [eax - 0x57214778]
dec ebp
xor byte [0x11da297d], ch
aad 0x95
sti
pop esi
inc ebp
push ebx
aad 0x49
dec eax
xchg esp, eax
stc
mov eax, 0x785cb47b
cmp dword [eax + 0x2e454cdd], ecx
sahf
inc ebp
sahf
mov ebp, dword [ecx]
mov byte [0x29ded0d1], al
sahf
ror al, cl
dec ebp
scasb al, byte es:[edi]
cwde
add ch, bl
push edi
cwde
mov ah, 8
xor ah, bh
pop edx
nop
sbb dword [ebx + ebx*8 + 0x68], ebp
fld xword [eax + 0x5a]
jne 0x464fd3
mov byte [edx], ah
shr dword [ecx + 0x50], 1
mov esi, 0xe53eaa74
dec ecx
out 0x10, al
invalid

Function at 0x473169
Capabilities:
Encode data using xor

Disassembly:
push ebx
fild dword [ebx - 0x59]
and dword [edx], ebp
lcall 0x99a3, 0x43cbb339
retf
inc ebx
mov dword [0x74664f99], eax
pop ss
and eax, 0xc86bd8a0
ja 0x47311f
and al, 0xd8
dec esi
dec esp
sub cl, byte gs:[esi + 0x13]
mov dword [0xf7e39314], eax
adc al, 0x93
jecxz 0x47317c
xchg esi, eax
invalid
mov dl, 0xa
invalid

Function at 0x4aa67d
Capabilities:
Encode data using xor

Disassembly:
cmp ebx, dword [ebp + 0x6a]
pmullw mm4, qword [edi + 0x1905246d]
retf 0x50f1
int1
push eax
push ebx
ror bl, 0x61
loop 0x4aa6f7
ror dword [esi - 0x6f], cl
sar byte [edx - 0x44], 0xde
cmp byte [ebx - 0x78], bh
and al, bh
movsb byte es:[edi], byte [esi]
and eax, 0x3f4a90d1
dec esi
lcall 0xeeb, 0xaa38317b
cmp eax, 0xd4487cb0
loopne 0x4aa6ce
inc edx
add al, 0xa4
push esi
xchg cl, ah
cmp byte [eax + eax + 0x48b229b8], dl
pop esi
cmpsd dword [esi], dword es:[edi]
xchg esi, eax
sal byte [ebp - 0x29], 0x88
inc ebx
xchg edx, eax
imul ecx, dword [ebx + 0x3b], 0xfffffff5
or dword [edx + esi*2 + 0x10], 0x2b
xor eax, 0x446975e7
mov dword [ecx - 0x72], esi
jno 0x4aa65a
or cl, byte [eax + 0x76bb050]
push eax
mov al, 0x6b
pop es
loope 0x4aa6ca
std
invalid
invalid
dec edi
invalid
Function at 0x4bb9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c54e0
cmp edx, dword [eax]
je 0x4bb9e2
add eax, 8
inc ecx
cmp eax, 0x4c5570
jl 0x4bb9d3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c54e0]
jne 0x4bbb10
mov eax, dword [0x4c7d7c]
cmp eax, 1
je 0x4bbaea
test eax, eax
jne 0x4bba13
cmp dword [0x4c3324], 1
je 0x4bbaea
cmp edx, 0xfc
je 0x4bbb10
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bba4a
lea eax, [ebp - 0x1a4]
push 0x4bfaf0
push eax
call fcn.004bcb20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcc10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bba8d
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcc10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfaec
push edi
call fcn.004bd5d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfad0
push eax
call fcn.004bcb20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bcb30
lea eax, [ebp - 0xa0]
push 0x4bfacc
push eax
call fcn.004bcb30
push dword [esi + 0x4c54e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bcb30
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfaa4
push eax
call fcn.004bd542
add esp, 0x2c
pop edi
jmp 0x4bbb10
lea eax, [ebp + 8]
lea esi, [esi + 0x4c54e4]
push 0
push eax
push dword [esi]
call fcn.004bcc10
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 0xd0dd17
Capabilities:
Encode data using xor

Disassembly:
adc byte [0x1581883d], 0x60
and ebp, ecx
mov ecx, edi
invalid
mov byte [edi - 1], 0
push esi
push dword [esp + 4]
mov dword [esp + 8], ebx
pop eax
lea eax, [0xc0e095]
mov word [esp], 0xab03
mov dword [esp], 0xbd662d
call fcn.00c1e557
xlatb
cmp al, 0x43
mov byte [esi], dl
and byte [edi - 0x13], bl
neg byte [0x9ef520f9]
xchg ebx, eax
add byte [edx + 0xab360af], ah
cmp eax, 0xa220eb72
adc byte ds:[edi], 0xe2
lahf
mov ah, 0xf0
pop es
pop ds
in al, 0x9e
fsubr st(0)
daa
cmp byte [esi + 0x6e], al
push ss
xor eax, 0xed3c0ac1
dec eax
mov eax, 0x54350d16
inc ebx
sbb eax, 0xba502c4d
dec eax
jge 0xd0dd0a
mov ah, 0x2e
jl 0xd0dde9
fbld tbyte [eax - 0x77]
cmc
rcr dword [0xaf588f36], 0x85
dec esp
or al, 0xdd
jmp 0x6c191ee
add al, 0x86
invalid
Function at 0x4049b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00414a06

Function at 0x404ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x404eb5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x404ef4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404ef0
lea ebx, [ebx]
cmp esi, edx
jae 0x404ef4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404ee0
cmp esi, edx
jb 0x404ef9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405210
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546fae
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ab1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov dword [ebx], vtable.ckcore::Process.0
mov byte [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
call fcn.004061d0
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x48], 0xf
mov dword [ebx + 0x44], 0
mov byte [ebx + 0x34], 0
push 0
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.DLL_CreateMutexW]
push 0
push 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
call esi
push 0
push 0
push 0
mov dword [ebx + 0x4c], eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [ebx + 0x50], eax
call esi
push 0
push 0
push 1
push 0
mov dword [ebx + 0x18], eax
call esi
mov dword [ebx + 0x1c], eax
movzx eax, byte [0x5b6e7e]
push eax
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0xa
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x2c]
call fcn.00406200
movzx eax, byte [0x5b6e7e]
push eax
lea eax, [ebp - 0xe]
mov byte [ebp - 0xe], 0xd
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x2c]
call fcn.00406200
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405490
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi + 0x4c]
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
sete byte [ebp - 1]
cmp dword [edi + 0x14], 0
je 0x4054f4
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [edi + 0x20]
je 0x4054e8
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push 0x1388
push dword [edi + 0x14]
call ebx
cmp eax, 0x102
jne 0x4054e8
push 0xfffffffffffffffe
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [edi + 0x14]
call esi
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40551c
lea ebx, [edi + 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x405510
mov dword [ebx], 0xffffffff
push dword [edi + 0x10]
call esi
mov dword [edi + 0x10], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x40552d
push eax
call esi
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40553e
push eax
call esi
mov dword [edi + 0xc], 0
push dword [edi + 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_ResetEvent]
call esi
push dword [edi + 0x1c]
call esi
cmp byte [ebp - 1], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
je 0x40556b
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405580
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5ab1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x88]
push esi
push edi
push 0
push eax
push 0
push 0
push 0
push ebx
mov edi, ecx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x88], 0
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
je 0x40575b
lea esp, [esp]
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x405770
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
mov eax, 0x7f
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40575b
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x40575b
cmp esi, 0x80
jae 0x405785
xor ecx, ecx
mov byte [ebp + esi - 0x84], 0
mov dword [ebp - 0x90], ecx
test esi, esi
je 0x405733
mov edx, dword [edi + 0x2c]
mov eax, dword [edx]
cmp eax, edx
je 0x4056a3
mov bl, byte [ebp + ecx - 0x84]
cmp bl, byte [eax + 0xe]
je 0x4056bf
cmp byte [eax + 0xd], 0
jne 0x405699
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x40567e
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x405699
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x405672
jmp 0x405699
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x405697
cmp eax, dword [ecx + 8]
jne 0x405697
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x405687
mov eax, ecx
cmp eax, edx
jne 0x405654
mov ecx, dword [ebp - 0x90]
mov al, byte [ebp + ecx - 0x84]
lea ecx, [edi + 0x34]
mov esi, dword [ecx + 0x14]
mov byte [ebp - 0x98], al
cmp esi, 0x10
jb 0x4056ed
mov edx, dword [ecx]
jmp 0x4056ef
cmp dword [edi + 0x44], 0
jbe 0x405718
cmp byte [edi + 4], 0
jne 0x4056d6
mov edx, dword [edi]
lea eax, [edi + 0x34]
push eax
mov ecx, edi
call dword [edx + 0xc]
cmp dword [edi + 0x48], 0x10
lea eax, [edi + 0x34]
mov dword [eax + 0x10], 0
jb 0x4056e8
mov eax, dword [eax]
mov byte [eax], 0
jmp 0x405712
mov edx, ecx
mov eax, dword [ecx + 0x10]
add eax, edx
cmp esi, 0x10
jb 0x4056fd
mov edx, dword [ecx]
jmp 0x4056ff
mov edx, ecx
test eax, eax
je 0x405705
sub eax, edx
push dword [ebp - 0x98]
push ecx
push eax
call fcn.00405f50
mov esi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
inc ecx
mov dword [ebp - 0x90], ecx
cmp ecx, esi
jb 0x405644
mov ebx, dword [ebp - 0x94]
push 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x4055d0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e43a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052e43a
mov esp, ebp
pop ebp
ret 4
call fcn.0052f505
int3
Function at 0x405af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, ecx
nop
push 0xffffffffffffffff
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
sete al
cmp dword [esi + 0x24], 1
sete bl
test al, al
je 0x405b24
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
test bl, bl
jne 0x405b2e
push 0x64
call edi
jmp 0x405b00
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp - 4]
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414a62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042022b
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x414a99
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00414aba
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41aef8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41af3d
call fcn.0042022b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x41af3d
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x41af59
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00420804
mov ebx, eax
test edi, edi
je 0x41af57
test esi, esi
je 0x41af57
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42035d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041f682
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x420399
call fcn.0042061f
mov dword [esi + 0xc], 1
jmp 0x42039e
call fcn.0042061f
cmp dword [esi], 0
je 0x4203e7
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4203c1
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0041567f
jmp 0x4203d2
push 0xff
mov ecx, esi
call fcn.00402ee0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041459f
jmp 0x42040b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x42040b
push dword [esi]
push dword [ebp - 4]
call fcn.004248dd
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x420574
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0042061f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4205bc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041567f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041459f
jmp 0x4205c7
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004248dd
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4f7f9e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0052a18d
call fcn.0042027f
cmp dword [eax + 0x14], 0
jne 0x4f7fb9
mov ecx, esi
pop esi
jmp fcn.004f73a4
pop esi
ret

Function at 0x505d39
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402ac0
call fcn.0042027f
cmp dword [eax + 0x14], 0
jne 0x505d54
mov ecx, esi
pop esi
jmp fcn.00505622
pop esi
ret