joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464a2b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x479008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], 0
mov dword [esi], vtable.CExtractCallbackImp.4.0
mov dword [esi + 4], vtable.CExtractCallbackImp.3.0
mov dword [esi + 8], vtable.CExtractCallbackImp.2.0
mov dword [esi + 0xc], vtable.CExtractCallbackImp.1.0
mov dword [esi + 0x10], vtable.CExtractCallbackImp.0
push 8
mov dword [esi + 0x18], 0
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
push 8
mov dword [esi + 0x28], ecx
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 3
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [esi + 0x34], ecx
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 3
mov word [eax], cx
mov byte [ebp - 4], 2
mov word [esi + 0x40], 1
mov dword [esi + 0x50], ecx
mov word [esi + 0x54], cx
push 8
mov dword [esi + 0x58], ecx
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [esi + 0x64], ecx
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 3
mov word [eax], cx
mov byte [ebp - 4], 4
push 8
mov dword [esi + 0x70], ecx
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 3
mov word [eax], cx
mov byte [ebp - 4], 5
push 8
mov dword [esi + 0x7c], ecx
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 3
mov word [eax], cx
mov byte [ebp - 4], 6
mov dword [esi + 0x88], ecx
push 8
call fcn.0041bfdb
xor ecx, ecx
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 3
mov word [eax], cx
mov byte [ebp - 4], 7
push 8
mov dword [esi + 0x94], ecx
call fcn.0041bfdb
mov dword [esi + 0x94], eax
add esp, 0x24
xor ecx, ecx
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 3
mov word [eax], cx
mov eax, esi
mov word [esi + 0xa0], cx
mov byte [esi + 0xa2], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409440
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464a60
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x479008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x80]
mov dword [ebp - 0x68], 0
push esi
push 0x46d1a0
mov dword [ebp - 0x64], esi
call fcn.0042a490
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
je 0x409648
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], 0
lea esi, [edi + 0x80]
push dword [ebp - 0x4c]
push dword [ebp - 0x60]
push esi
call fcn.0041f8c0
mov eax, dword [0x479798]
add esp, 0xc
mov dword [edi], eax
mov edx, esi
mov dword [edi + 8], 0
mov ecx, edi
mov dword [edi + 0xc], 0
push dword [ebp - 0x4c]
mov dword [edi + 0x20], 0x6a09e667
mov dword [edi + 0x24], 0xbb67ae85
mov dword [edi + 0x28], 0x3c6ef372
mov dword [edi + 0x2c], 0xa54ff53a
mov dword [edi + 0x30], 0x510e527f
mov dword [edi + 0x34], 0x9b05688c
mov dword [edi + 0x38], 0x1f83d9ab
mov dword [edi + 0x3c], 0x5be0cd19
call fcn.00432740
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
mov ecx, edi
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.00432650
push dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x58], 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x54], 0
call fcn.0041be10
push dword [ebp - 0x64]
mov byte [ebp - 4], 1
push 0
push edi
call fcn.0041db90
add esp, 0xc
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x48]
call fcn.004092a0
cmp dword [eax + 0x14], 0x10
jb 0x40957e
mov eax, dword [eax]
movups xmm0, xmmword [eax]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x34]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
cmp edx, 0x10
jb 0x4095d3
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4095c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40965d
push edx
push ecx
call fcn.0041bfcd
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
test ecx, ecx
je 0x409619
mov edx, dword [ebp - 0x54]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40960f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409662
push edx
push ecx
call fcn.0041bfcd
add esp, 8
mov dword [ebp - 4], 2
push dword [edi - 4]
call fcn.00420420
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041beab
mov esp, ebp
pop ebp
ret 8
push 0x473048
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
call fcn.0041db1a
call fcn.00420822
call fcn.00420822
int3
Function at 0x409670
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x479008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0
push eax
mov esi, edx
call fcn.0041db90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409753
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40970b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40970b
mov ecx, dword [esi]
jmp 0x40971d
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push ecx
mov dword [ebp - 0x218], 0
call fcn.0041bfdb
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041beab
mov esp, ebp
pop ebp
ret
Function at 0x431840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0x98
push 0
mov dword [ebp - 8], edi
lea eax, [edi + 0x110]
push eax
call fcn.0041db90
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
nop dword [eax + eax]
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x4318e0
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, eax
xor edi, edi
nop word [eax + eax]
movzx eax, word [edi + 0x46d1e0]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop word [eax + eax]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x431930
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x431910
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x431903
mov edi, dword [ebp - 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x431980
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x431970
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x432650
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x43269b
cmp edx, 0x40
je 0x432689
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edi, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, edi
push 1
call eax
xor edx, edx
jmp 0x43269e
lea edi, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0041db90
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
call eax
mov edx, edi
mov edi, 4
nop
mov ecx, dword [edx + 4]
lea ebx, [ebx + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
sub edi, 1
jne 0x4326e0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret

Function at 0x432bb0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x479798]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x436cd0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x436cf9
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x436d30
push dword [ebp + 8]
push ebx
push eax
call fcn.0041f8c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x436d30
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x437d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464eb9
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x479008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x47b1a1], cl
jne 0x437e3c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x437ed7
cmp eax, 0x114
jae 0x437ed7
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x360]
sbb eax, eax
inc eax
push eax
call fcn.00435be0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.00435880
push dword [ebp - 0x360]
call fcn.0041bebc
add esp, 4
mov al, 1
jmp 0x437ed9
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x437ed7
cmp esi, 0x114
jae 0x437e82
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004357b0
mov al, 1
jmp 0x437ed9
lea ecx, [ebp - 0x360]
call fcn.00435780
push esi
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 1
call fcn.00401970
push eax
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x437ec9
push esi
lea ecx, [ebp - 0x360]
call fcn.00401ff0
cmp dword [ebp - 0x35c], ebx
jne 0x437ec9
lea eax, [esi - 1]
cmp eax, ebx
je 0x437e19
push dword [ebp - 0x360]
call fcn.0041bebc
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041beab
mov esp, ebp
pop ebp
ret

Function at 0x437f10
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47b1a1], 0
push esi
push edi
mov edi, ecx
jne 0x437f44
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.00433e70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bebc
add esp, 4
jmp 0x437f52
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x437f6f
cmp esi, 0xffffffff
je 0x437f6f
mov eax, esi
and al, 0x11
cmp al, 1
jne 0x437f6f
and esi, 0xfffffffe
mov ecx, edi
mov edx, esi
call fcn.00438610
test al, al
je 0x437fae
cmp byte [0x47b1a1], 0
jne 0x437f9b
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.00433e70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bebc
add esp, 4
test esi, esi
jmp 0x437fa4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x437fae
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438490
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464f3f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x479008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x47b1a1], 0
jne 0x438513
lea ecx, [ebp - 0x24]
call fcn.00433e70
mov esi, eax
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00433e70
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0041bebc
push dword [ebp - 0x24]
call fcn.0041bebc
add esp, 8
test esi, esi
je 0x438532
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x438532
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x438550
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47b1a1], 0
jne 0x438584
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00433e70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bebc
add esp, 4
test esi, esi
pop esi
jmp 0x43858d
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x438595
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x438610
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47b1a1], 0
push esi
mov esi, edx
jne 0x438646
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00433e70
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bebc
add esp, 4
test esi, esi
jmp 0x438650
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x438659
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47b1a1], 0
jne 0x439746
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00433e70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bebc
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x43c3b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465318
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x479008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0x47b1a1], 0
je 0x43c475
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jne 0x43c425
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.00401970
lea ecx, [esi + 1]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [edi]
cmp esi, eax
cmova esi, eax
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x43c458
nop dword [eax]
inc eax
cmp word [ecx + eax*2], 0
jne 0x43c450
mov dword [edi + 4], eax
test esi, esi
je 0x43c406
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
call fcn.0041bfdb
mov esi, eax
mov dword [ebp - 0x10], 3
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov byte [esi], 0
push dword [ebx]
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jne 0x43c4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete bl
jmp 0x43c4f0
push edi
lea ecx, [ebp - 0x18]
call fcn.00401910
lea ecx, [edi + 1]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, dword [ebp - 0x18]
cmp edi, eax
cmova edi, eax
xor eax, eax
mov byte [esi + edi], 0
cmp byte [esi], al
je 0x43c4e7
nop
inc eax
cmp byte [eax + esi], 0
jne 0x43c4e0
mov dword [ebp - 0x14], eax
test edi, edi
je 0x43c4aa
mov bl, 1
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
push 0
call fcn.00435ac0
push esi
call fcn.0041bebc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x443150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, edi
call fcn.0043ae90
mov esi, dword [ebx + 0xf0]
test esi, esi
je 0x4432f3
cmp dword [ebx + 0xe8], 0
je 0x4432f3
mov eax, dword [ebp + 8]
mov ecx, dword [esi + eax*4]
mov esi, dword [esi + eax*4 + 4]
sub esi, ecx
mov dword [ebp + 0xc], ecx
cmp esi, 0x4000
jae 0x4432f3
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [edi + 8], eax
test eax, eax
jne 0x4431be
mov dword [edi + 8], 0x8007000e
mov eax, 0x8007000e
mov ecx, 0xa
jmp 0x4431c5
xor eax, eax
mov ecx, 8
mov word [edi], cx
test eax, eax
jne 0x4432f5
mov eax, dword [ebx + 0xe8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 8]
xor edi, edi
lea ecx, [eax + ecx*2]
test esi, esi
je 0x4432f3
cmp esi, 0x10
jb 0x4432bd
lea eax, [ecx - 2]
lea eax, [eax + esi*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x44320a
cmp ebx, ecx
jae 0x4432bd
movaps xmm5, xmmword [0x46efb0]
mov eax, esi
movaps xmm6, xmmword [0x46eff0]
and eax, 0xfffffff0
movaps xmm4, xmmword [0x46efc0]
movaps xmm7, xmmword [0x46efe0]
nop dword [eax + eax]
movups xmm0, xmmword [ecx]
add edi, 0x10
movaps xmm3, xmm5
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm3, xmm5
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx + 0x10], xmm0
add edx, 0x20
cmp edi, eax
jb 0x443230
cmp edi, esi
jae 0x4432f3
sub esi, edi
mov edi, 0xf05c
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
cmp eax, 0x2f
jne 0x4432e2
mov eax, 0x5c
jmp 0x4432e8
cmp eax, 0x5c
cmove eax, edi
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x4432d0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4447f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
movzx eax, byte [esi + 9]
lea ecx, [ebx + 0x44]
push eax
call fcn.00404180
movzx eax, byte [esi + 8]
lea ecx, [ebx + 0x50]
push eax
call fcn.00404180
mov edx, dword [ebx + 0x7c]
cmp dword [ebx + 0x78], edx
jne 0x444847
cmp edx, 0x7fffffff
jae 0x44497a
mov eax, edx
mov ecx, SysReAllocString
sub ecx, edx
shr eax, 2
inc eax
cmp eax, ecx
cmovbe ecx, eax
add ecx, edx
push ecx
lea ecx, [ebx + 0x74]
call fcn.004017c0
push 0x88
call fcn.0041c058
mov esi, eax
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x24], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi], vtable.NCoderMixer2::CCoderMT.0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov byte [esi + 0x68], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov ecx, dword [ebx + 0x78]
lea eax, [ecx + 1]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x74]
mov dword [eax + ecx*4], esi
mov eax, dword [edi + 0xc]
mov dword [esi + 0x20], eax
mov ecx, dword [edi]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x444935
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x444942
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov edi, dword [edi + 4]
test edi, edi
je 0x44495b
mov eax, dword [edi]
cmp eax, vtable.NCompress::NBcj2::CDecoder.3.0
jne 0x44498f
inc dword [edi + 0x10]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x444968
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x1c], edi
mov al, byte [ebx + 0x5c]
pop edi
mov byte [esi + 0x68], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x473048
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x7e5
push eax
call fcn.0041db1a
push edi
call dword [eax + 4]
jmp 0x44495b