joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048a5
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [ecx + 0x18]
jbe 0x40491f
mov edx, dword [esp + 0x14]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4048cf
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x404901
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 0xc], edi
lea edi, [ecx + 0x18]
sub dword [esp + 0xc], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4048eb
mov edx, dword [esp + 0x14]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x10], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm1
jne 0x4048bd
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
ret 0xc

Function at 0x404928
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4049d6
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x4368a0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4360a0]
xor dl, byte [esi + eax*4 + 0x435ca0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4364a0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x404960
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x404955
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00413410
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x40494c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x4049dc
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00413410
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x404a55
cmp ebx, dword [ebp + 4]
jg 0x404bb2
cmp edx, esi
jge 0x404a49
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x404a45
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x404a25
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x404a51
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404a10
cmp ebx, dword [ebp + 4]
jg 0x404bb2
mov edx, 0x433c80
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x433a80]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x404ae2
cmp esi, 1
jle 0x404b60
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x404ac9
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x404ac7
jmp 0x404b60
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404af1
sub dword [esp + 0x3c], 1
jne 0x404aee
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404b4e
sub dword [esp + 0x3c], 1
jne 0x404b4b
xor edx, edx
test esi, esi
jle 0x404ba5
cmp ebx, dword [ebp + 4]
jg 0x404ba8
cmp edx, esi
jge 0x404b99
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x404b9c
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x3c]
add eax, 4
inc edi
mov dword [esp + 0x3c], eax
cmp edx, esi
jl 0x404b7a
cmp edi, 4
jne 0x404ba1
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404b66
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x404a63
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x404cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x436ca8]
test eax, eax
jne 0x404cdb
mov ecx, 0x436ca0
call fcn.00404c41
mov eax, dword [0x436ca8]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x404d25
test eax, eax
je 0x404d40
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d65
push str.CryptProtectMemory_failed
mov esi, 0x44c83c
push esi
call fcn.004017fc
pop ecx
pop ecx
mov ecx, esi
call fcn.004167fd
push 2
mov ecx, esi
call fcn.004017f7
jmp 0x404d65
mov eax, dword [0x436cac]
test eax, eax
je 0x404d40
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d65
push str.CryptUnprotectMemory_failed
jmp 0x404d06
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x404d64
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x404d56
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x408eee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x40219d
mov al, 1
jmp 0x40228b
cmp dword [edi + 0xc], 1
jne 0x4021ae
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x402203
xor esi, esi
test ebp, ebp
je 0x402225
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x4021d3
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x402225
add esi, 0x4000
cmp esi, ebp
jb 0x4021c3
jmp 0x402221
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x402283
cmp byte [edi + 0x14], 0
je 0x402283
cmp dword [edi + 0xc], 0
jne 0x402283
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x44c83c
push esi
call fcn.00401791
test al, al
je 0x402276
cmp dword [esp + 0x18], ebp
jae 0x4021b0
cmp dword [esp + 0x18], 0
jbe 0x4021b0
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0x10]
jmp 0x4021b0
push esi
push 0
mov ecx, 0x44c83c
call fcn.0040199e
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x447248]
call fcn.00401595
cmp byte [0x452a49], 0
mov dword [0x447248], eax
jne 0x408f22
cmp dword [ebp + 0xc], 0
jbe 0x408f22
mov ecx, dword [0x447348]
pop ebp
jmp 0x40218a
pop ebp
ret 8
Function at 0x4091fb
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x447338], 0
je 0x409208
or eax, 0xffffffff
ret
mov eax, dword [0x43721c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x409246
mov ecx, dword [0x437218]
jl 0x409221
cmp ecx, ebp
ja 0x409246
or ebx, 0xffffffff
mov dword [0x447258], ebp
add ecx, ebx
mov dword [0x44725c], ebp
mov dword [0x437218], ecx
adc eax, ebx
mov dword [0x43721c], eax
mov eax, ebx
jmp 0x409350
push esi
push edi
mov edi, dword [0x44725c]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x4092ab
jl 0x409261
mov esi, dword [0x447258]
cmp esi, ebp
ja 0x4092b1
mov esi, 0x2000
push esi
push dword [0x44724c]
call fcn.004094e4
cdq
mov ecx, eax
mov dword [0x447258], eax
or ecx, edx
mov dword [0x44725c], edx
je 0x4092ed
and eax, edx
cmp eax, ebx
je 0x4092de
add dword [0x447290], esi
mov eax, dword [0x44724c]
adc dword [0x447294], ebp
mov dword [0x447250], eax
call fcn.00408cbe
mov edi, dword [0x44725c]
mov esi, dword [0x447258]
mov eax, dword [0x437240]
test byte [eax + 0x40], 1
je 0x409330
cmp byte [0x4484ed], 0
mov eax, esi
je 0x4092fd
or eax, edi
je 0x409330
push 0x4484f8
push esi
push dword [0x447250]
call fcn.0040c3cf
jmp 0x409324
push 0x455b5a
mov ecx, 0x44c83c
call fcn.004018d7
mov dword [0x447258], ebp
mov eax, ebx
mov dword [0x44725c], ebp
jmp 0x40934e
or eax, edi
mov ebp, dword [0x447250]
je 0x409330
add esi, ebx
adc edi, ebx
call fcn.0040c03e
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040c150
mov eax, esi
inc ebp
or eax, edi
jne 0x409307
mov esi, dword [0x447258]
mov edi, dword [0x44725c]
mov eax, dword [0x447250]
add esi, ebx
mov dword [0x447258], esi
adc edi, ebx
mov dword [0x44725c], edi
movzx eax, byte [eax]
inc dword [0x447250]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40c09f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c05c
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413410
add esp, 0xc
xor esi, esi
call fcn.0040c03e
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040c150
inc esi
cmp esi, 0xc
jl 0x40c0c1
mov eax, dword [0x437240]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x4472af]
test byte [eax + 0x40], 2
jne 0x40c0fd
movzx ecx, byte [0x4472b7]
cmp edx, ecx
je 0x40c106
or eax, 0xffffffff
jmp 0x40c149
mov ecx, dword [0x447258]
mov eax, ecx
cdq
cmp edx, dword [0x43721c]
jl 0x40c123
mov esi, dword [0x437218]
jg 0x40c125
cmp eax, esi
ja 0x40c125
mov esi, ecx
push edi
mov edi, dword [0x447250]
test esi, esi
je 0x40c146
call fcn.0040c03e
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040c150
inc edi
sub esi, 1
jne 0x40c130
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40c150
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x448378]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x448380]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x436df0]
movzx eax, cl
add eax, dword [0x44837c]
mov dword [0x448378], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44837c], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x436df0]
mov dword [0x448380], edx
ret 4

Function at 0x40c1aa
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2f0
push ebx
push esi
mov esi, 0xa8
lea eax, [esp + 0x40]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00412bf0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x304]
push dword [esp + 0x304]
call fcn.0040c679
push esi
lea eax, [esp + 0x44]
mov byte [esp + 0xe], bl
push eax
lea eax, [esp + 0x1f8]
mov byte [esp + 0x13], bl
push eax
call fcn.00413410
add esp, 0xc
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x194]
push eax
lea eax, [esp + 0x1f8]
push eax
push dword [esp + 0x314]
push dword [esp + 0x314]
call fcn.0040c4f5
mov eax, dword [esp + 0x314]
xor edx, edx
push 0x14
dec eax
pop ecx
div ecx
add eax, 1
mov dword [esp + 0x14], eax
je 0x40c36b
push ebp
push edi
mov edi, ebx
lea ebp, [esp + 0x34]
inc ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
push ecx
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00412bf0
push esi
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.00413410
mov eax, ebx
mov byte [esp + 0x3b], bl
shr eax, 0x18
add esp, 0x18
mov byte [esp + 0x20], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, ebx
shr eax, 8
cmp dword [esp + 0x314], 0
push 4
mov byte [esp + 0x26], al
pop esi
jbe 0x40c320
mov ebp, dword [esp + 0x314]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x19c]
push eax
lea eax, [esp + 0xf8]
push eax
push esi
lea eax, [esp + 0x30]
push eax
call fcn.0040c4f5
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0xf8]
push eax
push 0x14
lea eax, [esp + 0x30]
push eax
call fcn.0040c5bf
xor esi, esi
mov al, byte [esp + esi + 0x20]
xor byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x14
jb 0x40c2ef
push 0xa8
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.00413410
add esp, 0xc
sub ebp, 1
jne 0x40c2ac
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x318]
xor edx, edx
mov ebx, dword [esp + 0x31c]
mov ecx, edi
cmp ecx, ebx
jae 0x40c343
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40c332
mov ebx, dword [esp + 0x14]
mov esi, 0xa8
inc ebx
push 0x14
pop ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
lea eax, [ebx - 1]
mov dword [esp + 0x18], ebp
add edi, ecx
cmp eax, dword [esp + 0x1c]
jb 0x40c253
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f0
ret 0x1c
Function at 0x40c4f5
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x40c5a3
push ebp
push esi
push edi
push 0x40
pop edi
cmp eax, edi
jbe 0x40c527
push ebx
lea eax, [ebx + 0x40]
push eax
call fcn.0040c6e3
mov dword [ebx + 0xa0], 0x14
cmp dword [esp + 0x20], 0
je 0x40c547
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x40c547
mov esi, dword [esp + 0x20]
lea ebp, [ebx + 0x40]
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x40c57f
mov ecx, dword [ebx + 0xa0]
mov eax, edi
sub eax, ecx
xor esi, esi
push eax
push esi
lea eax, [ecx + ebx]
push eax
call fcn.00412bf0
add esp, 0xc
xor byte [esi + ebx], 0x36
inc esi
cmp esi, edi
jb 0x40c561
lea ebp, [ebx + 0x40]
push ebp
call fcn.004056fc
push edi
push ebx
push ebp
call fcn.0040572d
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x40c599
cmp byte [eax], 0
jne 0x40c599
mov edi, dword [esp + 0x20]
mov esi, ebp
push 0x18
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
or dword [ebx + 0xa0], 0xffffffff
pop edi
pop esi
pop ebp
cmp dword [esp + 0xc], 0
je 0x40c5bb
push dword [esp + 0xc]
lea eax, [ebx + 0x40]
push dword [esp + 0xc]
push eax
call fcn.0040572d
pop ebx
ret 0x14

Function at 0x40c5bf
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor esi, esi
cmp dword [edi + 0xa0], 0xffffffff
je 0x40c5df
push esi
push esi
push edi
push esi
push esi
call fcn.0040c4f5
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040c6e3
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40c609
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40c609
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40c626
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40c609
push ebx
call fcn.004056fc
push 0x40
push edi
push ebx
call fcn.0040572d
mov eax, dword [esp + 0x38]
test ebp, ebp
je 0x40c63b
cmp byte [eax], 0
jne 0x40c63b
push 0x18
pop ecx
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0040572d
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040c6e3
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40c673
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.00413410
add esp, 0xc
add esp, 0x14
ret 0x14
Function at 0x40ccc4
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov edi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [ecx + 0x48]
test eax, eax
js 0x40ccfb
cmp dword [esp + 0x10], 0
jne 0x40cd43
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x40cd43
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40cce5
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40cce5
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [eax + 0x48]
mov ebx, eax
test ebx, ebx
js 0x40cdb1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40cda9
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x42658c
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x40cd9b
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
js 0x40cd91
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
test ebx, ebx
js 0x40cdb1
test ecx, ecx
jne 0x40ce02
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x40ce02
cmp dword [esi + 0x18], ebp
jne 0x40ce02
cmp dword [esi + 0x14], ebp
je 0x40ce02
push dword [esi + 0x14]
mov ecx, esi
call fcn.0040d2f5
mov edi, eax
test edi, edi
je 0x40ce02
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00416e1e
pop ecx
pop edi
not ebx
pop esi
shr ebx, 0x1f
pop ebp
mov al, bl
pop ebx
add esp, 0x24
ret 8
Function at 0x40d4d2
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x1e], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040d23f
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x40d53c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x425e9c
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40d5be
test ebp, ebp
je 0x40d5d4
cmp dword [ebx + 0x18], esi
jne 0x40d5d4
cmp dword [ebx + 0x14], esi
je 0x40d5d4
push dword [ebx + 0x14]
mov ecx, ebx
call fcn.0040d2f5
mov esi, eax
test esi, esi
je 0x40d5d4
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00416e1e
pop ecx
jmp 0x40d5d4
test eax, eax
je 0x40d5d4
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x40d91c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x4264fc
push 1
push ebx
push 0x4265cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40d9ed
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4265bc
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40d9e4
cmp byte [ebp + 8], bl
je 0x40d96f
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d98c
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x40d99e
push 0x425294
jmp 0x40d9a1
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d9b6
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d9c7
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x40d9db
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40dac4
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8