joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x412144]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor edi, edi
push edi
push edi
push 0xf2
push eax
mov dword [ebp - 4], 0x90
call esi
test al, 1
je 0x402cf2
mov dword [ebp - 4], 0xb0
mov ecx, dword [0x412170]
push 0
push 0
push 0xf2
push ecx
call esi
test al, 1
je 0x402d0c
or dword [ebp - 4], 0x40
mov edx, dword [0x412148]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.00404802
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x402ddd
test esi, esi
je 0x402d4f
mov edx, dword [0x412148]
lea ecx, [esi + 1]
push ecx
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x402dc7
mov ecx, dword [0x412134]
xor eax, eax
push ecx
mov word [ebx + esi*2], ax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00404802
add esp, 4
mov edi, eax
test esi, esi
je 0x402d8c
mov edx, dword [0x412134]
lea eax, [esi + 1]
push eax
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x402dc7
mov eax, dword [ebp - 4]
push eax
push ebx
mov ebx, edi
mov byte [esi + edi], 0
call fcn.00401720
add esp, 8
mov dword [0x412164], eax
test eax, eax
je 0x402dc4
call fcn.00401820
test eax, eax
je 0x402dc4
push 0
xor ebx, ebx
call fcn.00402640
push 1
call fcn.00402910
add esp, 8
mov ebx, dword [ebp - 8]
push ebx
call fcn.00404788
add esp, 4
test edi, edi
je 0x402ddd
push edi
call fcn.00404788
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402df0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x412134]
push ebx
push esi
push edi
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00404802
mov esi, eax
add esp, 4
test esi, esi
je 0x402e42
mov ecx, dword [0x412134]
lea eax, [ebx + 1]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x402e42
push edi
mov eax, esi
mov byte [ebx + esi], 0
call fcn.004019e0
xor edx, edx
add esp, 4
cmp edx, eax
sbb edi, edi
neg edi
mov eax, dword [0x412130]
push edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x402e5c
push esi
call fcn.00404788
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x403188
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4032e1
push dword [ebp + 8]
call fcn.00405198
pop ecx
lea ecx, [eax + 2]
mov eax, dword [ebp + 0x14]
cmp eax, ecx
jb 0x4032e1
lea eax, [eax + eax + 2]
push eax
call fcn.00404802
mov esi, eax
pop ecx
test esi, esi
je 0x4032e1
push dword [ebp + 8]
push esi
call fcn.00404f59
push 0x40cea0
push esi
call fcn.00404f28
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4032da
mov edi, dword [ebp + 0x18]
cmp word [ebp - 0x230], 0x2e
jne 0x403232
cmp word [ebp - 0x22e], 0
je 0x4032b9
cmp word [ebp - 0x22e], 0x2e
jne 0x403232
cmp word [ebp - 0x22c], 0
je 0x4032b9
push dword [ebp + 8]
call fcn.00405198
mov ebx, eax
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00405198
lea eax, [ebx + eax + 1]
pop ecx
cmp dword [ebp + 0x14], eax
jb 0x4032b9
push dword [ebp + 8]
push esi
call fcn.00404f59
push 0x40ce9c
push esi
call fcn.00404f28
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.00404f28
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
push eax
push esi
push dword [ebp + 8]
call dword [ebp + 0xc]
add esp, 0x28
test eax, eax
je 0x4032b9
js 0x4032d1
test edi, edi
je 0x4032b6
test byte [ebp - 0x25c], 0x10
je 0x4032b6
lea eax, [edi - 1]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00403188
add esp, 0x14
add dword [ebp - 8], eax
jmp 0x4032b9
inc dword [ebp - 8]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403202
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.00404788
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4034ff
Capabilities:
Check if file exists
Clear file content
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push 3
push esi
push esi
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push 0x80000000
push dword [ebp + 8]
and eax, 0xf
sub dword [ebp + 0x1c], eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4036bd
push esi
push ebx
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4036a7
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4036a7
mov eax, dword [ebp + 0x10]
add eax, 0x14
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x148]
push eax
call fcn.00403c3f
add esp, 0xc
test eax, eax
je 0x4036a7
mov ebx, dword [ebp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4035f9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x1c]
jne 0x403610
lea ecx, [ebp - 0x148]
push ebx
push ecx
mov ecx, ebx
call fcn.00404710
pop ecx
pop ecx
test eax, eax
jne 0x403692
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403692
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jne 0x403692
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
push ebx
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x4035b2
jmp 0x403692
mov ecx, eax
and ecx, 0xf
je 0x40361c
sub eax, ecx
add eax, 0x10
lea ecx, [ebp - 0x148]
push ebx
push ecx
mov ecx, ebx
call fcn.00404710
pop ecx
pop ecx
test eax, eax
jne 0x403692
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403692
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jne 0x403692
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xa8]
add ecx, dword [eax + 0x24]
xor eax, eax
neg ecx
push 2
adc eax, esi
lea edx, [ebp - 0x18]
push edx
neg eax
push eax
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x403692
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x403692
mov dword [ebp - 0x1c], 1
push 0x128
lea eax, [ebp - 0x148]
push esi
push eax
call fcn.00406710
add esp, 0xc
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x4036bd
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
imul edx, eax
push ebx
push edi
lea ecx, [esi + eax*8 + 0x20]
xor edi, edi
push edx
xor eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ecx
call fcn.004032e9
pop ecx
cmp dword [esi + 0x14], eax
jne 0x403782
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 2
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call ebx
test eax, eax
je 0x403782
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
xor edx, edx
imul eax, ecx
cmp dword [ebp - 0x18], edx
jb 0x403782
ja 0x403728
cmp dword [ebp - 0x1c], eax
jb 0x403782
xor edi, edi
test ecx, ecx
je 0x403777
mov ecx, dword [esi + edi*8 + 0x24]
mov eax, dword [esi + edi*8 + 0x20]
push 0
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call ebx
test eax, eax
je 0x403777
push 0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403777
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x10], eax
jne 0x403777
add dword [ebp - 8], eax
inc edi
cmp edi, dword [esi + 0xc]
jb 0x40372e
xor eax, eax
cmp dword [esi + 0xc], edi
sete al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret

Function at 0x403789
Capabilities:
Check if file exists
Clear file content
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403837
cmp dword [ebp + 0x18], ebx
je 0x4037c1
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403837
jmp 0x4037cf
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x403847
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403837
mov esi, dword [ebp + 0x14]
push edi
call fcn.004036c5
pop ecx
test eax, eax
je 0x40382b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xa8]
xor ecx, ecx
neg eax
push 2
adc ecx, ebx
lea edx, [ebp - 0x14]
push edx
neg ecx
push ecx
push eax
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x403853
cmp dword [ebp + 0x18], ebx
je 0x403847
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403853
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40385b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
push 2
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0xffffff4e
push dword [ebp - 0x14]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4038ee
push ebx
lea eax, [ebp - 8]
push eax
mov esi, 0xb2
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4038ee
cmp dword [ebp - 8], esi
jne 0x4038ee
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x4038b6
cmp dword [ebp + 0x10], esi
jmp 0x4038cc
push 6
push dword [ebp + 0xc]
lea eax, [edi + 0xac]
push eax
call fcn.004051b3
add esp, 0xc
test eax, eax
je 0x4038eb
cmp dword [ebp + 0x10], esi
je 0x4038ee
push 6
push dword [ebp + 0x10]
add edi, 0xac
push edi
call fcn.004051b3
add esp, 0xc
test eax, eax
jne 0x4038ee
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40393d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
xor esi, esi
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xcc]
call fcn.0040385b
add esp, 0xc
test eax, eax
je 0x403a09
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xb2
jbe 0x403a09
lea ebx, [ecx - 0xb2]
test bl, 0xf
jne 0x403a09
cmp ebx, esi
je 0x403a01
cmp dword [ebp + 0x18], ebx
jb 0x403a09
xor eax, eax
neg ecx
push 2
adc eax, esi
lea edx, [ebp - 0x14]
push edx
neg eax
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x403a09
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a09
cmp dword [ebp - 8], ebx
jne 0x403a09
lea eax, [ebp - 0xb8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1f4]
push eax
call fcn.00403c3f
add esp, 0xc
test eax, eax
je 0x403a09
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x1f4]
push eax
mov eax, ebx
call fcn.00404710
pop ecx
pop ecx
test eax, eax
jne 0x403a09
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], ebx
inc esi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403c59
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
xor ebx, ebx
push esi
xor ecx, ecx
inc ebx
push edi
mov eax, ebx
mov esi, 0xff
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea edi, [eax + eax]
xor edx, edi
mov dword [ebp + ecx*4 - 0x80c], eax
mov dword [ebp + eax*4 - 0x40c], ecx
xor eax, edx
and eax, esi
inc ecx
cmp ecx, 0x100
jl 0x403c71
mov eax, ebx
mov ecx, 0x4106b0
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
add eax, eax
and edx, 0x1b
xor eax, edx
add ecx, 4
and eax, esi
cmp ecx, 0x4106d8
jl 0x403ca7
mov byte [0x40fdb0], 0x63
mov byte [0x411f3b], 0
mov eax, dword [ebp + ebx*4 - 0x40c]
shl eax, 2
lea ecx, [ebp - 0x410]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, esi
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, esi
xor eax, edx
mov byte [ebx + 0x40fdb0], al
mov byte [eax + 0x411ed8], bl
inc ebx
cmp ebx, 0x100
jl 0x403cd7
xor edi, edi
movzx edx, byte [edi + 0x40fdb0]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x1b
lea eax, [edx + edx]
xor ecx, eax
and ecx, esi
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
mov ecx, edi
mov dword [ecx*4 + 0x411ad8], eax
rol eax, 8
mov dword [ecx*4 + 0x4116d8], eax
rol eax, 8
mov dword [ecx*4 + 0x4112d8], eax
rol eax, 8
mov dword [ecx*4 + 0x410ed8], eax
movzx eax, byte [edi + 0x411ed8]
test eax, eax
je 0x403db9
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d4]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 4], eax
jmp 0x403dbd
and dword [ebp - 4], 0
movzx eax, byte [edi + 0x411ed8]
test eax, eax
je 0x403de6
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 0xc], eax
jmp 0x403dea
and dword [ebp - 0xc], 0
movzx eax, byte [edi + 0x411ed8]
test eax, eax
je 0x403e13
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 8], eax
jmp 0x403e17
and dword [ebp - 8], 0
movzx eax, byte [edi + 0x411ed8]
test eax, eax
je 0x403e3d
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e0]
mov ebx, esi
cdq
idiv ebx
mov edx, dword [ebp + edx*4 - 0x80c]
jmp 0x403e3f
xor edx, edx
shl edx, 8
xor edx, dword [ebp - 8]
shl edx, 8
xor edx, dword [ebp - 0xc]
shl edx, 8
xor edx, dword [ebp - 4]
inc edi
mov dword [ecx*4 + 0x410ad8], edx
rol edx, 8
mov eax, edx
mov dword [ecx*4 + 0x4106d8], eax
rol eax, 8
mov dword [ecx*4 + 0x4102b0], eax
rol eax, 8
mov dword [ecx*4 + 0x40feb0], eax
cmp edi, 0x100
jl 0x403d3a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push 0x128
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.00406710
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [ebp - 0x134]
lea ebx, [esi + 0x18]
push eax
mov dword [esi + 4], ebx
call fcn.00403e8a
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
jne 0x4041eb
mov ecx, dword [ebp - 0x134]
mov dword [esi], ecx
lea edi, [esi + 8]
lea esi, [ebp - 0x12c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
shl ecx, 4
add ecx, dword [ebp - 0x130]
push 4
mov eax, dword [ecx]
mov dword [ebx], eax
pop esi
add ecx, esi
mov eax, dword [ecx]
add ebx, esi
mov dword [ebx], eax
add ecx, esi
mov eax, dword [ecx]
add ebx, esi
mov dword [ebx], eax
add ecx, esi
mov eax, dword [ecx]
add ebx, esi
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add ebx, esi
dec edx
sub ecx, 0x1c
jmp 0x4041cd
mov dword [ebp + 8], esi
movzx eax, byte [ecx + 3]
movzx eax, byte [eax + 0x40fdb0]
movzx edi, byte [ecx + 2]
movzx edi, byte [edi + 0x40fdb0]
mov eax, dword [eax*4 + 0x40feb0]
xor eax, dword [edi*4 + 0x4102b0]
movzx edi, byte [ecx + 1]
movzx edi, byte [edi + 0x40fdb0]
xor eax, dword [edi*4 + 0x4106d8]
mov edi, dword [ecx]
and edi, 0xff
movzx edi, byte [edi + 0x40fdb0]
xor eax, dword [edi*4 + 0x410ad8]
add ecx, esi
mov dword [ebx], eax
add ebx, esi
dec dword [ebp + 8]
jne 0x404172
dec edx
sub ecx, 0x20
test edx, edx
jg 0x40416f
mov eax, dword [ecx]
mov dword [ebx], eax
add ebx, esi
add ecx, esi
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + esi]
mov dword [ebx + esi], eax
mov eax, dword [ecx + esi + 4]
mov dword [ebx + esi + 4], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, 8
test bl, 0xf
je 0x404729
push 0xffffffffffffffde
pop eax
jmp 0x404785
test ebx, ebx
je 0x404783
sub eax, dword [ebp + 0xc]
dec ebx
shr ebx, 4
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
inc ebx
push edi
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
call fcn.004041f3
pop ecx
push 0x10
mov eax, esi
pop esi
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x40475a
mov edi, dword [ebp + 8]
add dword [ebp - 4], 0x10
sub dword [ebp - 8], 0x10
add edi, 8
dec ebx
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0xc], eax
jne 0x40473d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40880c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407601
and dword [ebp - 0x14], 0
cmp dword [0x40fa48], 0
mov dword [ebp - 0x18], eax
jne 0x4088bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408967
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40bd2c
push ebx
call edi
test eax, eax
je 0x408967
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40fa48], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40fa4c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40fa50], eax
call edi
push eax
call esi
mov dword [0x40fa58], eax
test eax, eax
je 0x4088bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40fa54], eax
mov eax, dword [0x40fa54]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408918
cmp dword [0x40fa58], ecx
je 0x408918
push eax
call esi
push dword [0x40fa58]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408918
test ebx, ebx
je 0x408918
call edi
test eax, eax
je 0x40890f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40890f
test byte [ebp - 8], 1
jne 0x408918
or dword [ebp + 0x10], 0x200000
jmp 0x40894b
mov eax, dword [0x40fa4c]
cmp eax, dword [ebp - 0x18]
je 0x40894b
push eax
call esi
test eax, eax
je 0x40894b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40894b
mov eax, dword [0x40fa50]
cmp eax, dword [ebp - 0x18]
je 0x40894b
push eax
call esi
test eax, eax
je 0x40894b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40fa48]
call esi
test eax, eax
je 0x408967
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408969
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b5c
leave
ret

Function at 0x408b5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e318]
jne 0x408b66
repz ret
jmp fcn.004099a9
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
mov ebx, eax
xor edi, edi
xor eax, eax
mov dword [esp + eax*4 + 0x10], eax
inc eax
cmp eax, 0x100
jl 0x401010
xor ecx, ecx
lea esi, [ecx + 2]
xor edx, edx
mov eax, ecx
mov ebp, 0xf
div ebp
movzx eax, byte [edx + ebx]
add eax, edi
add eax, dword [esp + ecx*4 + 0x10]
mov edi, eax
and edi, 0x800000ff
jns 0x401048
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x10]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi - 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x14]
mov edi, edx
and edi, 0x800000ff
jns 0x40107e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x14]
mov edx, dword [esp + edi*4 + 0x10]
movzx eax, al
mov dword [esp + ecx*4 + 0x14], edx
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
mov eax, esi
div ebp
movzx edx, byte [edx + ebx]
add edx, dword [esp + ecx*4 + 0x18]
add edi, edx
and edi, 0x800000ff
jns 0x4010b1
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x18]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x18], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi + 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x1c]
mov edi, edx
and edi, 0x800000ff
jns 0x4010e7
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x1c]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x1c], edx
movzx eax, al
add esi, 4
add ecx, 4
cmp esi, 0x102
mov dword [esp + edi*4 + 0x10], eax
jl 0x401021
mov eax, dword [esp + 0x418]
xor edx, edx
test eax, eax
jbe 0x40118a
mov ebp, dword [esp + 0x414]
inc ecx
and ecx, 0x800000ff
jns 0x401131
dec ecx
or ecx, 0xffffff00
inc ecx
mov esi, dword [esp + ecx*4 + 0x10]
add edi, esi
and edi, 0x800000ff
jns 0x401147
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + ecx*4 + 0x10]
mov esi, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], esi
movzx esi, bl
mov dword [esp + edi*4 + 0x10], esi
mov ebx, dword [esp + ecx*4 + 0x10]
add ebx, esi
and ebx, 0x800000ff
jns 0x401170
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ebx, byte [esp + ebx*4 + 0x10]
xor byte [edx + ebp], bl
inc edx
cmp edx, eax
jb 0x401120
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x400
ret
mov eax, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx