joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408938
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x43e748]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x24]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.0041d6f0
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x4089c4
cmp ebx, dword [ebp + 4]
jg 0x408b1c
cmp edi, esi
jge 0x4089b1
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4089ad
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x40898d
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x4089b7
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x408978
cmp ebx, dword [ebp + 4]
jg 0x408b1c
mov edi, 0x43e108
movzx eax, byte [esp + esi*4 + 0x19]
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + esi*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + esi*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + esi*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x18], edi
cmp esi, 8
je 0x408a53
cmp esi, 1
jle 0x408a47
lea ecx, [esp + 0x20]
lea ebp, [esi - 1]
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x408a33
sub ebp, 1
jne 0x408a30
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x408b0f
jmp 0x408ac3
push 3
lea ecx, [esp + 0x24]
pop ebp
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x408a5d
sub ebp, 1
jne 0x408a5a
movzx eax, byte [esp + 0x28]
lea ecx, [esp + 0x30]
push 3
pop ebp
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x408ab3
sub ebp, 1
jne 0x408ab0
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x408b0b
cmp edi, esi
jge 0x408af8
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x408afb
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x408ad8
cmp edx, 4
jne 0x408afe
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x408ac3
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x4089d2
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c404
add esp, 0x30
ret 4
Function at 0x408c82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x44a140]
test esi, esi
jne 0x408ca0
mov ecx, 0x44a138
call fcn.00408c0d
mov esi, dword [0x44a140]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x408ceb
test esi, esi
je 0x408d0f
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x43224c]
call esi
test eax, eax
jne 0x408d33
push str.CryptProtectMemory_failed
mov esi, 0x45b4e8
push esi
call fcn.00402e2e
pop ecx
pop ecx
mov ecx, esi
call fcn.00403030
push 2
mov ecx, esi
call fcn.00402e29
jmp 0x408d33
mov esi, dword [0x44a144]
test esi, esi
je 0x408d0f
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x43224c]
call esi
test eax, eax
jne 0x408d33
push str.CryptUnprotectMemory_failed
jmp 0x408ccc
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x408d32
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + esi]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x408d22
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4096e5
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x409ae0
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x43011f
call fcn.0041c475
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x409af9
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x409b0c
xor al, al
jmp 0x409b71
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004018cd
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov esi, dword [ebp - 0x1c]
sub eax, esi
sar eax, 1
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
jb 0x409b38
mov ecx, dword [edi]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x409b5c
cmp eax, dword [ebp - 0x10]
ja 0x409b5c
push esi
call fcn.0042151e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040180c
mov bl, 1
test esi, esi
je 0x409b6f
mov ecx, dword [ebp - 0x14]
sub ecx, esi
and ecx, 0xfffffffe
push ecx
push esi
call fcn.004012a3
mov al, bl
call fcn.0041c443
ret 4

Function at 0x40a4b4
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x4301ae
call fcn.0041c4a8
mov ebx, dword [ebp + 8]
push 0x208
call fcn.0041c3c6
mov edi, eax
pop ecx
mov dword [ebp - 0x6c], edi
lea esi, [edi + 0x208]
push esi
push edi
mov dword [ebp - 0x64], esi
call fcn.00401485
mov dword [ebp - 0x68], esi
and dword [ebp - 4], 0
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40a501
xor ebx, ebx
jmp 0x40a5b7
and dword [ebp - 0x28], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004014a3
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004014a3
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00406449
lea ecx, [ebp - 0x40]
call fcn.00401770
lea ecx, [ebp - 0x58]
call fcn.00401770
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40a561
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
cmp ecx, 8
jb 0x40a5a6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
cmp ecx, 0x1000
jb 0x40a59d
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004016b3
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
push ecx
push edx
call fcn.0041c3f6
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x40a5c7
sub esi, edi
and esi, 0xfffffffe
push esi
push edi
call fcn.004012a3
mov eax, ebx
call fcn.0041c457
ret 4
Function at 0x40f6d9
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x45a7b0], 0
je 0x40f6e6
or eax, 0xffffffff
ret
mov eax, dword [0x44a68c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40f724
mov ecx, dword [0x44a688]
jl 0x40f6ff
cmp ecx, ebp
ja 0x40f724
or ebx, 0xffffffff
mov dword [0x45a6d0], ebp
add ecx, ebx
mov dword [0x45a6d4], ebp
mov dword [0x44a688], ecx
adc eax, ebx
mov dword [0x44a68c], eax
mov eax, ebx
jmp 0x40f831
push esi
push edi
mov edi, dword [0x45a6d4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40f789
jl 0x40f73f
mov esi, dword [0x45a6d0]
cmp esi, ebp
ja 0x40f78f
mov esi, 0x2000
push esi
push dword [0x45a6c4]
call fcn.0040fa0b
cdq
mov ecx, eax
mov dword [0x45a6d0], eax
or ecx, edx
mov dword [0x45a6d4], edx
je 0x40f7ce
and eax, edx
cmp eax, ebx
je 0x40f7bf
add dword [0x45a708], esi
mov eax, dword [0x45a6c4]
adc dword [0x45a70c], ebp
mov dword [0x45a6c8], eax
call fcn.0040f08b
mov edi, dword [0x45a6d4]
mov esi, dword [0x45a6d0]
mov eax, dword [0x44a6b8]
test byte [eax + 0x80], 1
je 0x40f811
cmp byte [0x45a888], 0
mov eax, esi
je 0x40f7de
or eax, edi
je 0x40f811
push esi
push dword [0x45a6c8]
push 0x45a898
call fcn.0041311d
jmp 0x40f805
push 0x45b1e4
mov ecx, 0x45b4e8
call fcn.00402f83
mov dword [0x45a6d0], ebp
mov eax, ebx
mov dword [0x45a6d4], ebp
jmp 0x40f82f
or eax, edi
mov ebp, dword [0x45a6c8]
je 0x40f811
add esi, ebx
adc edi, ebx
call fcn.00412ee5
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0041300f
mov eax, esi
inc ebp
or eax, edi
jne 0x40f7e8
mov esi, dword [0x45a6d0]
mov edi, dword [0x45a6d4]
mov eax, dword [0x45a6c8]
add esi, ebx
mov dword [0x45a6d0], esi
adc edi, ebx
mov dword [0x45a6d4], edi
movzx eax, byte [eax]
inc dword [0x45a6c8]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x412f46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43e748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
call fcn.00412f03
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041d6f0
add esp, 0xc
xor esi, esi
call fcn.00412ee5
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.0041300f
inc esi
cmp esi, 0xc
jl 0x412f74
mov eax, dword [0x44a6b8]
movzx edx, byte [ebp - 5]
movzx ecx, byte [0x45a727]
test byte [eax + 0x80], 2
jne 0x412fae
movzx ecx, byte [0x45a72f]
cmp edx, ecx
je 0x412fb7
or eax, 0xffffffff
jmp 0x413000
cmp byte [ebp + 0x10], 0
je 0x412ffe
mov ecx, dword [0x45a6d0]
mov eax, ecx
cdq
cmp edx, dword [0x44a68c]
jl 0x412fda
mov esi, dword [0x44a688]
jg 0x412fdc
cmp eax, esi
ja 0x412fdc
mov esi, ecx
push edi
mov edi, dword [0x45a6c8]
test esi, esi
je 0x412ffd
call fcn.00412ee5
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0041300f
inc edi
sub esi, 1
jne 0x412fe7
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041c404
leave
ret 0xc

Function at 0x41300f
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x45a808]
mov eax, dword [esp + 4]
mov edx, dword [0x45a810]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a260]
movzx eax, cl
add eax, dword [0x45a80c]
mov dword [0x45a808], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x45a80c], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x44a260]
mov dword [0x45a810], edx
ret 4

Function at 0x413253
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x43e748]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x18], esi
call fcn.004135f2
test ebp, ebp
je 0x4132a0
cmp byte [esi], 0
je 0x4132a0
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x4132c4
lea edi, [ebx + 0x60]
push 0x40
mov eax, edi
pop ecx
xor byte [eax], 0x6a
inc eax
sub ecx, 1
jne 0x4132a8
push ebx
call fcn.004096e5
push 0x40
push edi
push ebx
call fcn.00409716
test ebp, ebp
je 0x4132d9
cmp byte [esi], 0
jne 0x4132d9
mov eax, dword [esp + 0x10]
mov esi, ebx
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00409716
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004135f2
cmp dword [esp + 0x3c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x413311
push dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.0041d6f0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041c404
add esp, 0x20
ret 0x14
Function at 0x413322
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
lea ebx, [esi + 0x60]
cmp edi, 0x40
jbe 0x413352
push esi
call fcn.004096e5
push edi
push dword [esp + 0x18]
push esi
call fcn.00409716
push ebx
push esi
call fcn.004135f2
push 0x14
pop edi
jmp 0x413360
push edi
push dword [esp + 0x18]
push ebx
call fcn.0041d6f0
add esp, 0xc
mov dword [esi + 0xa0], edi
test edi, edi
je 0x413382
push 0xffffffffffffffa0
pop edx
mov ecx, ebx
sub edx, esi
xor byte [ecx], 0x36
inc ecx
mov edi, dword [esi + 0xa0]
lea eax, [edx + ecx]
cmp eax, edi
jb 0x413371
push 0x40
pop eax
sub eax, edi
push eax
lea eax, [esi + 0x60]
add eax, edi
push 0x36
push eax
call fcn.0041dc70
add esp, 0xc
push esi
call fcn.004096e5
push 0x40
push ebx
push esi
call fcn.00409716
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4133ad
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x23c
mov eax, dword [0x43e748]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x248]
push ebx
mov ebx, dword [esp + 0x250]
push esi
mov esi, dword [esp + 0x248]
push 0x40
mov dword [esp + 0x1c], eax
pop eax
mov dword [esp + 0x14], ebx
cmp ebx, eax
jae 0x4133f0
mov eax, ebx
push eax
push ecx
lea eax, [esp + 0x204]
push eax
call fcn.0041d6f0
push 0xa8
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.0041dc70
add esp, 0x18
lea eax, [esp + 0x12c]
push dword [esp + 0x24c]
push esi
push eax
call fcn.00413322
mov eax, dword [esp + 0x25c]
xor edx, edx
push 0x14
dec eax
pop esi
div esi
add eax, 1
mov dword [esp + 0x20], eax
je 0x4135ae
mov eax, dword [esp + 0x260]
xor edx, edx
push ebp
dec eax
xor ebp, ebp
inc edx
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x14], edx
mov eax, edx
mov dword [esp + 0x24], edx
shr eax, 0x18
lea esi, [esp + 0x134]
mov byte [esp + ebx + 0x204], al
lea edi, [esp + 0x8c]
mov eax, edx
mov byte [esp + ebx + 0x207], dl
shr eax, 0x10
mov byte [esp + ebx + 0x205], al
mov eax, edx
shr eax, 8
push 0x2a
mov byte [esp + ebx + 0x20a], al
lea eax, [ebx + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x4134bd
push eax
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00409716
push 0
push 0
push 0x14
pop esi
push esi
lea eax, [esp + 0x1e8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00413253
push esi
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x1f8]
push eax
call fcn.0041d6f0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x13], 0
test eax, eax
je 0x41356c
mov ebx, eax
push 0x2a
pop ecx
push 0x14
lea esi, [esp + 0x138]
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00409716
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x1e8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00413253
xor ecx, ecx
mov al, byte [esp + ecx + 0x1dc]
xor byte [esp + ecx + 0x1f0], al
inc ecx
cmp ecx, esi
jb 0x413550
sub ebx, 1
jne 0x413502
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
sub eax, ebp
cmp eax, esi
jbe 0x41357b
mov eax, esi
push eax
lea eax, [esp + 0x1f4]
push eax
mov eax, dword [esp + 0x28]
add eax, ebp
push eax
call fcn.0041d6f0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x24]
inc edx
add ebp, esi
mov dword [esp + 0x14], edx
cmp eax, dword [esp + 0x28]
jb 0x41345e
pop edi
pop ebp
push 0x44
lea eax, [esp + 0x200]
push eax
call fcn.00408d71
push esi
lea eax, [esp + 0x1ec]
push eax
call fcn.00408d71
push esi
lea eax, [esp + 0x1d8]
push eax
call fcn.00408d71
mov ecx, dword [esp + 0x240]
pop esi
pop ebx
xor ecx, esp
call fcn.0041c404
add esp, 0x23c
ret 0x1c
Function at 0x413e55
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43e748]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x94]
xor ebx, ebx
push ebx
push ebx
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x43224c]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x80]
push 0x40
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x43224c]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x413f3a
cmp byte [ebp - 0x80], 0x4d
jne 0x413f3a
cmp byte [ebp - 0x7f], 0x5a
jne 0x413f3a
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0x44]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x43224c]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x80]
mov ebx, 0x108
push ebx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x43224c]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x413f3a
cmp byte [ebp - 0x80], 0x50
jne 0x413f3a
cmp byte [ebp - 0x7f], 0x45
jne 0x413f3a
cmp byte [ebp - 0x7e], 0
jne 0x413f3a
cmp byte [ebp - 0x7d], 0
jne 0x413f3a
cmp byte [ebp - 0x68], 0xb
jne 0x413f3a
cmp byte [ebp - 0x67], 1
jne 0x413f23
cmp dword [ebp - 0xc], 4
jbe 0x413f23
mov eax, dword [ebp + 0x18]
jmp 0x413f3c
cmp byte [ebp - 0x68], 0xb
jne 0x413f3a
cmp byte [ebp - 0x67], 2
jne 0x413f3a
cmp dword [ebp + 4], 4
jbe 0x413f3a
mov eax, dword [ebp + 0x28]
jmp 0x413f3c
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c404
add ebp, 0x8c
leave
ret 4
Function at 0x415375
Capabilities:
Hide graphical window

Disassembly:
push 0x38
mov eax, 0x430981
call fcn.0041c4a8
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov al, byte [ebp + 0x18]
push 0
push edi
mov dword [ebp - 0x3c], edi
mov dword [ebx + 8], edi
mov byte [ebx + 0x42], al
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebx
call fcn.00415094
cmp dword [ebx + 0x20], 0
je 0x4153c1
push dword [ebx + 0x20]
call fcn.004236d5
pop ecx
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4153cf
push eax
call fcn.00424cd6
pop ecx
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4153e0
push eax
call fcn.00424cd6
pop ecx
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x415413
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push dword [ebp - 0x3c]
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push eax
push esi
push dword [ebp - 0x34]
push edi
push 0x40000000
xor edi, edi
push edi
push 0x43330c
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebx + 0x1c], 0
mov dword [ebx + 4], eax
jne 0x41549d
cmp dword [ebx + 0x10], edi
jne 0x41549d
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x4154b3
cmp dword [ebx + 0x24], edi
jne 0x4154b3
cmp dword [ebx + 0x20], edi
je 0x4154b3
push dword [ebx + 0x20]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0041518e
push 5
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00401b39
lea ecx, [ebp - 0x28]
call fcn.00401770
jmp 0x4154b3
test eax, eax
je 0x4154b3
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0041c457
ret 0x14
Function at 0x415a2a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ecx
push ecx
push ebx
lea eax, [esp + 4]
xor ebx, ebx
push eax
push 0x43428c
push 1
push ebx
push 0x43437c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x415bae
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push esi
push ecx
push 0x43436c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x43224c]
call dword [esi]
test eax, eax
js 0x415b99
push ebp
push edi
mov edi, dword [esp + 0x24]
push 8
pop ebp
cmp byte [esp + 0x1c], bl
je 0x415aa2
mov edx, edi
cmp dword [edi + 0x14], ebp
jb 0x415a8b
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push 2
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x20]
cmp dword [edx + 0x14], ebp
jb 0x415aad
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x10], ebx
je 0x415ae7
cmp dword [edx + 0x14], ebp
jb 0x415ad2
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x30]
cmp dword [edx + 0x10], ebx
jne 0x415af8
push ebx
push 0x432668
jmp 0x415b01
cmp dword [edx + 0x14], ebp
jb 0x415aff
mov edx, dword [edx]
push ebx
push edx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x34]
cmp dword [edx + 0x10], ebx
je 0x415b3a
cmp dword [edx + 0x14], ebp
jb 0x415b25
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x10], ebx
je 0x415b5f
cmp dword [edx + 0x14], ebp
jb 0x415b4a
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x43224c]
call esi
cmp dword [edi + 0x14], ebp
jb 0x415b66
mov edi, dword [edi]
mov eax, dword [esp + 0x14]
push 1
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x43224c]
call esi
pop edi
pop ebp
test eax, eax
js 0x415b85
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43224c]
call esi
mov ecx, dword [esp + 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43224c]
call esi
pop esi
mov al, bl
pop ebx
pop ecx
pop ecx
ret 0x1c
Function at 0x415c9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x433528
push dword [esp + 0x18]
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x415db5
push esi
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x415db5
push esi
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415db5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415db5
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x415dad
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x415da6
push edi
push esi
push eax
call fcn.0041d6f0
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x415d9f
push ebp
push dword [esp + 0x14]
call fcn.00415c16
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43224c]
call esi
test edi, edi
je 0x415d9f
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x415d8d
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x415d8d
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x43224c]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x415db7
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4