joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 1
je case.0x1002613b.2
mov eax, dword [ebp + 0x24]
dec eax
cmp eax, 5
ja case.0x1002613b.2
jmp dword [eax*4 + 0x100261bc]
xor eax, eax
jmp 0x10026167
mov eax, 2
jmp 0x10026167
mov eax, 3
jmp 0x10026167
mov eax, 4
jmp 0x10026167
mov eax, 7
jmp 0x10026167
mov eax, 5
push edi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
je 0x100261b6
cmp dword [ebp + 0x18], 0
je 0x100261a2
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10026ca0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push edi
xor edi, edi
mov bh, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
cmp dword [ebp + 0xc], edi
jle 0x10026d09
push esi
nop dword [eax]
inc bh
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0x13], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx ecx, byte [esi + eax]
mov edx, dword [ebp + 8]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + edx], cl
inc edi
mov dl, byte [ebp + 0x13]
cmp edi, dword [ebp + 0xc]
jl 0x10026cc0
pop esi
mov cl, dl
mov byte [eax + 0x100], bh
pop edi
mov byte [eax + 0x101], cl
pop ebx
pop ebp
ret
pop edi
mov byte [eax + 0x100], bh
mov byte [eax + 0x101], dl
pop ebx
pop ebp
ret
Function at 0x10026f70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101964b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], 0
call fcn.10029e20
mov esi, edi
lea eax, [ebp - 0x104]
mov edi, dword [ebp + 0xc]
add esp, 0xc
xor ebx, ebx
sub esi, eax
nop
mov eax, ebx
lea ecx, [ebp - 0x104]
cdq
add ecx, ebx
idiv dword [ebp + 0x10]
mov byte [esi + ecx], bl
inc ebx
mov al, byte [edx + edi]
mov byte [ecx], al
cmp ebx, 0x100
jl 0x10026fc0
mov edi, dword [ebp - 0x108]
lea ebx, [ebp - 0x104]
mov esi, edi
mov dword [ebp - 0x108], 0x100
sub ebx, edi
nop dword [eax]
mov dl, byte [esi]
movzx eax, byte [ebx + esi]
add eax, dword [ebp - 0x10c]
movzx ecx, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x10027021
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [edi + ecx]
mov byte [esi], al
inc esi
sub dword [ebp - 0x108], 1
mov dword [ebp - 0x10c], ecx
mov byte [edi + ecx], dl
jne 0x10027000
mov ecx, dword [ebp - 4]
mov word [edi + 0x100], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10028344
mov esp, ebp
pop ebp
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000f197
pop dword [ebp - 0x3c]
mov eax, 0x86e42839
add eax, 0x891cc95e
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3ac6d
push 0
mov eax, 0xc05aa3d7
sub eax, 0xb0596373
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x60dd4344
sub ecx, 0x60dcf47b
mov ebx, eax
mov esi, 0xccfbfae4
add esi, 0x43058b1c
add esi, dword [ebp - 0x3c]
mov edx, 0xf1f8eb10
sub edx, 0x3ee2c482
xor dword [ebp - 0xc], ecx
mov edi, dword [esi]
xor dword [ebp - 0x28], 0xb94c372a
sub edi, edx
xor dword [ebp - 0xc], esi
mov dword [ebx], edi
xor dword [ebp - 0x20], 0x8220286
add ebx, 0x36cf106a
sub ebx, 0x36cf1066
add esi, 0x8c6c0047
add esi, 0x7393ffbd
loop 0x1000f1f6
add eax, 0xbfc61805
add eax, 0x403b15f2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402f00
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402f49
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402f49
push 0xc00
call eax
test eax, eax
jne 0x402fde
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x402fde
cmp ecx, 0x104
ja 0x402fde
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x402f82
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x402fdd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x402fa5
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x402fa2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044823d
mov esp, ebp
pop ebp
ret
Function at 0x407ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, 0x20
push edi
mov dword [ebp - 8], esi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
xor ecx, ecx
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x407c03
mov eax, 0x20
lea ebx, [esi + 0xd0]
mov dword [ebp - 4], eax
nop
mov ecx, dword [ebx]
test ecx, ecx
je 0x407bd8
mov dword [ebx], 0
nop dword [eax]
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x407bc0
mov eax, dword [ebp - 4]
add ebx, 0x28
sub eax, 1
mov dword [ebp - 4], eax
jne 0x407bb0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x407bfb
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
mov dword [esi + 0x9c], 0
lea ebx, [esi + eax*8]
mov dword [esi + 0xa0], 0
lea eax, [ecx + 1]
mov dword [esi + 0xa4], 0
mov ecx, ebx
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x58], eax
call fcn.004066f0
mov edi, eax
test edi, edi
jne 0x407ce4
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407c91
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x407ce4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x407cae
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x407ce4
push ebx
call fcn.004078e0
mov edi, eax
test edi, edi
je 0x407cf6
mov dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
mov esi, 0x20
nop dword [eax]
mov ecx, ebx
call fcn.00406770
add ebx, 0x28
sub esi, 1
jne 0x407cd0
mov esi, dword [ebp - 8]
test edi, edi
jle 0x407cef
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x407cf6
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x407d0f
cmp dword [esi + 0x40], 0
jne 0x407d0f
cmp dword [esi + 0x3c], 0
jne 0x407d0f
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407fd0
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.00449710
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 0x408070
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 + 0x45f2e0]
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 0x4080c0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4080a0
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408093
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 0x408110
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408100
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409060
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x8982a0]
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 0x409520
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x409567
cmp edx, 0x40
je 0x409555
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00449710
add esp, 0xc
mov eax, dword [esi]
lea ebx, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, ebx
push 1
call eax
xor edx, edx
jmp 0x40956a
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00449710
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, ebx
push 1
call eax
mov edx, ebx
mov ebx, 4
nop dword [eax + eax]
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4095b0
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
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 0x40b0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456254
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jbe 0x40b135
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx + 4]
call fcn.0040b200
test eax, eax
je 0x40b1d4
inc esi
cmp esi, dword [ebx + 0x14]
jb 0x40b117
lea ecx, [ebx + 0x10]
call fcn.00409db0
push 0x34
call fcn.004483fe
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov dword [edi], 0
push 8
mov dword [edi + 4], 0
call fcn.00448381
mov dword [edi + 4], eax
xor ecx, ecx
mov dword [edi + 8], 0
add esp, 8
mov dword [edi + 0xc], 3
mov word [eax], cx
mov dword [edi + 0x10], ecx
push dword [ebp + 8]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx + 0x14]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [eax + edx*4], edi
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
call fcn.0040a5b0
mov eax, edi
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
test esi, esi
js 0x40b135
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*4]
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 0x40bff0
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 0x40c019
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 0x40c050
push dword [ebp + 8]
push ebx
push eax
call fcn.00449190
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 0x40c050
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 0x40c900
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45642d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x46a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x899ce9], 0
jne 0x40c970
lea ecx, [ebp - 0x24]
call fcn.0040aa30
mov esi, eax
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040aa30
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0044824b
push dword [ebp - 0x24]
call fcn.0044824b
add esp, 8
test esi, esi
jmp 0x40c97a
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c98f
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 0x40ce40
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x899ce9], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x40ce75
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040aa30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.0044824b
add esp, 4
jmp 0x40ce7e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cec9
test bl, 0x10
jne 0x40cec9
test bl, 1
je 0x40cec9
and ebx, 0xfffffffe
cmp byte [0x899ce9], 0
jne 0x40cebd
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040aa30
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0044824b
add esp, 4
test esi, esi
jmp 0x40cec7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40cf09
cmp byte [0x899ce9], 0
jne 0x40cef5
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0040aa30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0044824b
add esp, 4
test esi, esi
jmp 0x40cefe
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40cf09
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cf70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4564ab
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x46a008]
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 ebx, ecx
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
cmp byte [0x899ce9], cl
jne 0x40d02e
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40d11d
cmp eax, 0x114
jae 0x40d11d
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor edx, edx
lea ecx, [ebp - 0x360]
test eax, eax
sete dl
push edx
lea edx, [ebp - 0x128]
call fcn.0040af70
lea eax, [ebp - 0x360]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040a5b0
push dword [ebp - 0x360]
call fcn.0044824b
add esp, 4
mov al, 1
jmp 0x40d11f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call esi
mov edi, eax
test edi, edi
je 0x40d11d
cmp edi, 0x114
jae 0x40d07b
xor eax, eax
mov ecx, ebx
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.0040a540
mov al, 1
jmp 0x40d11f
push 8
call fcn.00448381
xor ecx, ecx
mov dword [ebp - 0x360], eax
add esp, 4
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x358], 3
mov word [eax], cx
push edi
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 1
call fcn.0040ad30
push eax
push edi
call esi
mov ecx, eax
test ecx, ecx
jne 0x40d0c9
push dword [ebp - 0x360]
jmp 0x40d115
mov esi, dword [ebp - 0x360]
xor eax, eax
mov word [esi + edi*2], ax
cmp word [esi], ax
je 0x40d0e8
nop word [eax + eax]
inc eax
cmp word [esi + eax*2], 0
jne 0x40d0e0
mov dword [ebp - 0x35c], eax
cmp eax, ecx
jne 0x40d114
lea eax, [edi - 1]
cmp eax, ecx
jne 0x40d114
lea eax, [ebp - 0x360]
mov ecx, ebx
push eax
call fcn.0040a5b0
push esi
call fcn.0044824b
add esp, 4
mov al, 1
jmp 0x40d11f
push esi
call fcn.0044824b
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.0044823d
mov esp, ebp
pop ebp
ret
Function at 0x40fb20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45680d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x46a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp byte [0x899ce9], 0
je 0x40fbe5
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 0x40fb98
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.0040ad30
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 0x40fbc8
nop
inc eax
cmp word [ecx + eax*2], 0
jne 0x40fbc0
mov dword [edi + 4], eax
test esi, esi
je 0x40fb79
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.00448381
mov edi, eax
mov dword [ebp - 0x14], 3
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov byte [edi], 0
push dword [ebx]
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jne 0x40fc27
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete bl
jmp 0x40fc82
cmp ebx, 3
jbe 0x40fc53
cmp ebx, 0x3ffffffe
ja 0x40fcae
lea eax, [ebx + 1]
push eax
call fcn.00448381
mov esi, eax
push edi
mov byte [esi], 0
call fcn.0044824b
mov edi, esi
mov dword [ebp - 0x14], ebx
add esp, 8
mov dword [ebp - 0x1c], edi
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0x10]
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp ebx, eax
cmova ebx, eax
xor eax, eax
mov byte [edi + ebx], 0
cmp byte [edi], al
je 0x40fc79
inc eax
cmp byte [eax + edi], 0
jne 0x40fc72
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x40fc1a
mov bl, 1
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push 0
call fcn.0040ada0
push edi
call fcn.0044824b
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
push 0x4685e0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x13329ac
push eax
call fcn.0044b1e1
int3
Function at 0x415140
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.0040f050
mov esi, dword [ebx + 0xf0]
test esi, esi
je 0x4152e3
cmp dword [ebx + 0xe8], 0
je 0x4152e3
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 0x4152e3
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [edi + 8], eax
test eax, eax
jne 0x4151b6
mov dword [edi + 8], 0x8007000e
mov ecx, 0xa
mov word [edi], cx
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, 8
mov word [edi], ax
mov eax, dword [ebx + 0xe8]
mov edx, dword [edi + 8]
xor edi, edi
lea ecx, [eax + ecx*2]
test esi, esi
je 0x4152e3
cmp esi, 0x10
jb 0x4152b1
lea eax, [ecx - 2]
lea eax, [eax + esi*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x4151f8
cmp ebx, ecx
jae 0x4152b1
movaps xmm5, xmmword [0x460fa0]
mov eax, esi
movaps xmm6, xmmword [0x460ff0]
and eax, 0xfffffff0
movaps xmm4, xmmword [0x460fb0]
movaps xmm7, xmmword [0x460fe0]
nop dword [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 0x415220
cmp edi, esi
jae 0x4152e3
sub esi, edi
mov edi, 0xf05c
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
cmp eax, 0x2f
jne 0x4152d2
mov eax, 0x5c
jmp 0x4152d8
cmp eax, 0x5c
cmove eax, edi
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x4152c0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8