joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402700
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412bd0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x402750
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004032c8
test al, al
je 0x402750
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4028b0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00412bd0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x40294a
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402971
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.004032c8
test al, al
je 0x402923
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402971
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40293d
cmp eax, 3
je 0x40293d
cmp eax, 0x12
je 0x40293d
xor eax, eax
inc eax
jmp 0x40293f
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402a1f
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402969
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402a1f
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.004065db
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004036ae
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00407075
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00407075
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00407075
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x4032c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412bd0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4032e6
xor al, al
jmp 0x403450
push ebx
push edi
push esi
call fcn.00403457
push esi
call fcn.00417e53
pop ecx
push esi
mov edi, eax
call fcn.00403483
test al, al
je 0x403378
push esi
call fcn.00403457
test al, al
je 0x40332f
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40344c
push dword [ebp + 0x10]
push 0x427308
push dword [ebp + 0xc]
call fcn.004065db
push dword [ebp + 0x10]
jmp 0x40343f
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40344c
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40344c
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40344c
push esi
push 0x427308
push dword [ebp + 0xc]
call fcn.004065db
push esi
push 0x427314
push dword [ebp + 0xc]
call fcn.004065b3
push esi
push ebx
jmp 0x403440
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40344c
cmp eax, ebx
ja 0x40344c
movzx eax, word [esi]
push eax
call fcn.004034b9
test al, al
je 0x4033df
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40344c
push edi
push 0x427308
push dword [ebp + 0xc]
call fcn.004065db
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.004065b3
jmp 0x40343e
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402ed3
lea eax, [ebp - 0x1000]
push eax
call fcn.00417e53
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40344c
push edi
push 0x427308
push dword [ebp + 0xc]
call fcn.004065db
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.004065b3
cmp word [esi], 0x2e
jne 0x40343e
movzx eax, word [esi + 2]
push eax
call fcn.004034b9
test al, al
je 0x40343e
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.004065b3
mov al, 1
jmp 0x40344e
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40523d
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 0x4052b7
mov edx, dword [esp + 0x14]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x405267
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x405299
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 0x405283
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 0x405255
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
ret 0xc

Function at 0x4052c0
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 0x40536e
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 + 0x43ad40]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43a540]
xor dl, byte [esi + eax*4 + 0x43a140]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43a940]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x4052f8
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4052ed
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00414450
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 0x4052e4
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x405374
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.00414450
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x4053ed
cmp ebx, dword [ebp + 4]
jg 0x40554a
cmp edx, esi
jge 0x4053e1
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x4053dd
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 0x4053bd
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x4053e9
inc ebx
xor edi, edi
cmp edx, esi
jl 0x4053a8
cmp ebx, dword [ebp + 4]
jg 0x40554a
mov edx, 0x438120
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x437f20]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x437f20]
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 0x40547a
cmp esi, 1
jle 0x4054f8
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 0x405461
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x40545f
jmp 0x4054f8
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 0x405489
sub dword [esp + 0x3c], 1
jne 0x405486
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x437f20]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x4054e6
sub dword [esp + 0x3c], 1
jne 0x4054e3
xor edx, edx
test esi, esi
jle 0x40553d
cmp ebx, dword [ebp + 4]
jg 0x405540
cmp edx, esi
jge 0x405531
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x405534
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 0x405512
cmp edi, 4
jne 0x405539
inc ebx
xor edi, edi
cmp edx, esi
jl 0x4054fe
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x4053fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x405658
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43b148]
test eax, eax
jne 0x405673
mov ecx, 0x43b140
call fcn.004055d9
mov eax, dword [0x43b148]
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 0x4056bd
test eax, eax
je 0x4056d8
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x4056fd
push str.CryptProtectMemory_failed
mov esi, 0x450cd4
push esi
call fcn.00401819
pop ecx
pop ecx
mov ecx, esi
call fcn.00417859
push 2
mov ecx, esi
call fcn.00401814
jmp 0x4056fd
mov eax, dword [0x43b14c]
test eax, eax
je 0x4056d8
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x4056fd
push str.CryptUnprotectMemory_failed
jmp 0x40569e
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x4056fc
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 0x4056ee
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x406094
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 0x40a022
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x44b7e0], 0
je 0x40a02f
or eax, 0xffffffff
ret
mov eax, dword [0x43b6bc]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40a06d
mov ecx, dword [0x43b6b8]
jl 0x40a048
cmp ecx, ebp
ja 0x40a06d
or ebx, 0xffffffff
mov dword [0x44b700], ebp
add ecx, ebx
mov dword [0x44b704], ebp
mov dword [0x43b6b8], ecx
adc eax, ebx
mov dword [0x43b6bc], eax
mov eax, ebx
jmp 0x40a177
push esi
push edi
mov edi, dword [0x44b704]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40a0d2
jl 0x40a088
mov esi, dword [0x44b700]
cmp esi, ebp
ja 0x40a0d8
mov esi, 0x2000
push esi
push dword [0x44b6f4]
call fcn.0040a331
cdq
mov ecx, eax
mov dword [0x44b700], eax
or ecx, edx
mov dword [0x44b704], edx
je 0x40a114
and eax, edx
cmp eax, ebx
je 0x40a105
add dword [0x44b738], esi
mov eax, dword [0x44b6f4]
adc dword [0x44b73c], ebp
mov dword [0x44b6f8], eax
call fcn.00409aba
mov edi, dword [0x44b704]
mov esi, dword [0x44b700]
mov eax, dword [0x43b6e8]
test byte [eax + 0x40], 1
je 0x40a157
cmp byte [0x44c995], 0
mov eax, esi
je 0x40a124
or eax, edi
je 0x40a157
push 0x44c9a0
push esi
push dword [0x44b6f8]
call fcn.0040d1a3
jmp 0x40a14b
push 0x45a062
mov ecx, 0x450cd4
call fcn.0040192d
mov dword [0x44b700], ebp
mov eax, ebx
mov dword [0x44b704], ebp
jmp 0x40a175
or eax, edi
mov ebp, dword [0x44b6f8]
je 0x40a157
add esi, ebx
adc edi, ebx
call fcn.0040ce12
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040cf24
mov eax, esi
inc ebp
or eax, edi
jne 0x40a12e
mov esi, dword [0x44b700]
mov edi, dword [0x44b704]
mov eax, dword [0x44b6f8]
add esi, ebx
mov dword [0x44b700], esi
adc edi, ebx
mov dword [0x44b704], edi
movzx eax, byte [eax]
inc dword [0x44b6f8]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40ce73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040ce30
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414450
add esp, 0xc
xor esi, esi
call fcn.0040ce12
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040cf24
inc esi
cmp esi, 0xc
jl 0x40ce95
mov eax, dword [0x43b6e8]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44b757]
test byte [eax + 0x40], 2
jne 0x40ced1
movzx ecx, byte [0x44b75f]
cmp edx, ecx
je 0x40ceda
or eax, 0xffffffff
jmp 0x40cf1d
mov ecx, dword [0x44b700]
mov eax, ecx
cdq
cmp edx, dword [0x43b6bc]
jl 0x40cef7
mov esi, dword [0x43b6b8]
jg 0x40cef9
cmp eax, esi
ja 0x40cef9
mov esi, ecx
push edi
mov edi, dword [0x44b6f8]
test esi, esi
je 0x40cf1a
call fcn.0040ce12
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040cf24
inc edi
sub esi, 1
jne 0x40cf04
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40cf24
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x44c820]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x44c828]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43b290]
movzx eax, cl
add eax, dword [0x44c824]
mov dword [0x44c820], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44c824], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43b290]
mov dword [0x44c828], edx
ret 4

Function at 0x40cf7e
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.00413c30
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x304]
push dword [esp + 0x304]
call fcn.0040d44d
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.00414450
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.0040d2c9
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 0x40d13f
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.00413c30
push esi
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.00414450
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 0x40d0f4
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.0040d2c9
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.0040d393
xor esi, esi
mov al, byte [esp + esi + 0x20]
xor byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x14
jb 0x40d0c3
push 0xa8
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.00414450
add esp, 0xc
sub ebp, 1
jne 0x40d080
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 0x40d117
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40d106
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 0x40d027
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f0
ret 0x1c
Function at 0x40d2c9
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x40d377
push ebp
push esi
push edi
push 0x40
pop edi
cmp eax, edi
jbe 0x40d2fb
push ebx
lea eax, [ebx + 0x40]
push eax
call fcn.0040d4b7
mov dword [ebx + 0xa0], 0x14
cmp dword [esp + 0x20], 0
je 0x40d31b
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x40d31b
mov esi, dword [esp + 0x20]
lea ebp, [ebx + 0x40]
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x40d353
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.00413c30
add esp, 0xc
xor byte [esi + ebx], 0x36
inc esi
cmp esi, edi
jb 0x40d335
lea ebp, [ebx + 0x40]
push ebp
call fcn.00406094
push edi
push ebx
push ebp
call fcn.004060c5
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x40d36d
cmp byte [eax], 0
jne 0x40d36d
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 0x40d38f
push dword [esp + 0xc]
lea eax, [ebx + 0x40]
push dword [esp + 0xc]
push eax
call fcn.004060c5
pop ebx
ret 0x14

Function at 0x40d393
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 0x40d3b3
push esi
push esi
push edi
push esi
push esi
call fcn.0040d2c9
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040d4b7
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40d3dd
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40d3dd
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40d3fa
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40d3dd
push ebx
call fcn.00406094
push 0x40
push edi
push ebx
call fcn.004060c5
mov eax, dword [esp + 0x38]
test ebp, ebp
je 0x40d40f
cmp byte [eax], 0
jne 0x40d40f
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.004060c5
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040d4b7
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40d447
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.00414450
add esp, 0xc
add esp, 0x14
ret 0x14
Function at 0x40e4a5
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 + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040e1f6
cmp dword [ebx + 0x1c], 0
je 0x40e4de
push dword [ebx + 0x1c]
call fcn.00417e6e
pop ecx
cmp dword [esp + 0x28], 0
jne 0x40e4e9
xor eax, eax
jmp 0x40e4f3
push dword [esp + 0x28]
call fcn.0041b99f
pop ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x20], 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 0x40e52f
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 0x427f50
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40e5b1
test ebp, ebp
je 0x40e5c7
cmp dword [ebx + 0x20], esi
jne 0x40e5c7
cmp dword [ebx + 0x1c], esi
je 0x40e5c7
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0040e2c8
mov esi, eax
test esi, esi
je 0x40e5c7
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.00417e6e
pop ecx
jmp 0x40e5c7
test eax, eax
je 0x40e5c7
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 0x40e914
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 0x428dec
push 1
push ebx
push 0x428edc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40e9e5
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x428ecc
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40e9dc
cmp byte [ebp + 8], bl
je 0x40e967
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 0x40e984
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 0x40e996
push 0x4272a4
jmp 0x40e999
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40e9ae
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 0x40e9bf
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 0x40e9d3
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 0x40eabc
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