joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456b60
Capabilities:
Check os version
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea ecx, [ebp - 0x334]
push 0
push ecx
mov dword [ebp - 0x338], 0x11c
call fcn.004b96b0
add esp, 0xc
lea edx, [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x456bd4
cmp dword [ebp - 0x334], 6
setae al
test al, al
je 0x456bd4
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x456bcb
mov eax, dword [eax]
push eax
call fcn.0040e720
add esp, 4
push 0x10
call fcn.00430fb0
add esp, 4
push 0xb
call fcn.00430fb0
add esp, 4
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004b96b0
add esp, 0xc
push 0
push 2
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x456c22
mov eax, dword [0x5062dc]
mov dword [edi], eax
lea eax, [ebp - 0x218]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x456c40
mov ecx, dword [0x50a8b0]
mov edx, dword [0x50a8b4]
mov dword [eax], ecx
mov ecx, dword [0x50a8b8]
mov dword [eax + 4], edx
mov edx, dword [0x50a8bc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x218]
push eax
call fcn.00405440
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x456c90
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi + 0x2c], 0
push ebx
push edi
je 0x456e48
lea edi, [esi + 0x1c]
mov ebx, 8
mov dword [ebp - 0x10], edi
cmp dword [edi + 0x14], ebx
jb 0x456cb6
mov eax, dword [edi]
jmp 0x456cb8
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456e48
cmp dword [edi + 0x14], ebx
jb 0x456cd0
mov eax, dword [edi]
jmp 0x456cd2
mov eax, edi
push eax
mov ecx, esi
call fcn.00456e50
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x60]
sub edi, dword [esi + 0x5c]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jns 0x456d1e
fadd dword [0x510db8]
fdivr qword [0x510e30]
xor edi, edi
mov dword [ebp - 8], edi
fstp dword [ebp - 0xc]
cmp ecx, edi
jbe 0x456da3
mov dword [ebp - 4], edi
add ebx, dword [ebp - 4]
cmp dword [ebx + 0x14], 8
jb 0x456d3e
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x456d7c
lea edx, [edi + 1]
mov dword [ebp - 8], edx
fild dword [ebp - 8]
test edx, edx
jns 0x456d5f
fadd dword [0x510db8]
fmul dword [ebp - 0xc]
fadd qword [0x510e28]
call fcn.004ba5c0
push eax
push 0
push 0x4c9
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
add dword [ebp - 4], 0x1c
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x456d33
mov dword [ebp - 8], edi
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x456e36
mov dword [ebp - 4], edi
add ebx, dword [ebp - 4]
cmp dword [ebx + 0x14], 8
jb 0x456dd0
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x456e12
mov eax, dword [ebp - 8]
lea ecx, [edi + eax + 1]
mov dword [ebp - 0x14], ecx
fild dword [ebp - 0x14]
test ecx, ecx
jns 0x456df5
fadd dword [0x510db8]
fmul dword [ebp - 0xc]
fadd qword [0x510e28]
call fcn.004ba5c0
push eax
push 0
push 0x4c9
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
add dword [ebp - 4], 0x1c
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x456dc5
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x456e41
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457db0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e405e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test byte [0x543530], 1
jne 0x457e14
or dword [0x543530], 1
mov dword [ebp - 4], 0
call fcn.004592c0
push 0x4ec580
call fcn.004b3d86
add esp, 4
mov esi, 0x543538
call fcn.0045a640
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ead68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
test byte [0x5431e4], 1
jne 0x459692
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
push 0xffffffffffffffff
push 0
push 0x543134
lea ecx, [edi + 0x24]
call fcn.00404530
cmp dword [edi + 0x38], 8
mov ecx, dword [edi + 0x34]
jb 0x4596b1
mov eax, dword [edi + 0x24]
jmp 0x4596b4
lea eax, [edi + 0x24]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4596cb
push 1
mov eax, 0x5062dc
lea ecx, [edi + 0x24]
call fcn.00403f00
push 0
push 0
push edi
push fcn.0045a740
push 0
push 0
call fcn.004b45e9
add esp, 0x18
mov dword [edi + 0x60], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x45a560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e47b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
test byte [0x5431e4], 1
jne 0x45a5c2
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
push 0xffffffffffffffff
push 0
push 0x543134
lea ecx, [edi + 0x24]
call fcn.00404530
cmp dword [edi + 0x38], 8
mov ecx, dword [edi + 0x34]
jb 0x45a5e1
mov eax, dword [edi + 0x24]
jmp 0x45a5e4
lea eax, [edi + 0x24]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45a5fb
push 1
mov eax, 0x5062dc
lea ecx, [edi + 0x24]
call fcn.00403f00
mov ecx, dword [edi + 0x5c]
push 0
push 0
push ecx
push 0x45a6f0
push 0
push 0
call fcn.004b45e9
add esp, 0x18
mov dword [edi + 0x64], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x45a640
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x5430b8], 1
mov eax, dword [esi + 0x60]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45a6a2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x45a691
cmp dword [ebp - 4], 0x103
jne 0x45a691
mov edx, dword [esi + 0x60]
push 0xbb8
push edx
call edi
mov eax, dword [esi + 0x60]
push 0x22b
push eax
call ebx
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x60], 0
mov eax, dword [esi + 0x64]
test eax, eax
je 0x45a6e5
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x45a6d4
cmp dword [ebp - 4], 0x103
jne 0x45a6d4
mov eax, dword [esi + 0x64]
push 0x64
push eax
call edi
mov ecx, dword [esi + 0x64]
push 0x22b
push ecx
call ebx
mov edx, dword [esi + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b0a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8800
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x45b0d5
mov eax, dword [esi]
jmp 0x45b0d7
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b186
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0042a5c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x45b103
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
mov esi, eax
call fcn.00412d80
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x45b124
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x45b140
mov eax, dword [ebx]
jmp 0x45b142
mov eax, ebx
test eax, eax
je 0x45b1a2
mov ecx, dword [ebp - 0x30]
cmp dword [ecx - 0xc], 0
jl 0x45b167
push eax
push ecx
call fcn.004b3ec7
add esp, 8
test eax, eax
je 0x45b1a2
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jge 0x45b1a7
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x30]
jmp 0x45b167
mov esi, dword [ebx + 0x10]
mov edx, dword [ecx - 0xc]
add esi, eax
cmp esi, edx
jne 0x45b167
dec eax
js 0x45b1e7
cmp eax, edx
jg 0x45b1e7
cmp byte [eax + ecx], 0x40
jne 0x45b167
lea eax, [ecx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b1e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x45b188
push 0x80070057
call fcn.00408970
int3
Function at 0x45fd90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4754
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
test byte [0x543530], bl
jne 0x45fded
or dword [0x543530], ebx
mov dword [ebp - 4], 0
call fcn.004592c0
push 0x4ec580
call fcn.004b3d86
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
mov edx, 0x543538
call fcn.0045fb00
push ebx
mov eax, 0x5062dc
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00403f00
push 0xb
mov eax, str.WEMedia.exe
mov ecx, esi
call fcn.00403f00
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x45fe28
lea eax, [ebp - 0x2c]
push ebx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x543530], bl
jne 0x45fe5f
or dword [0x543530], ebx
mov byte [ebp - 4], 2
call fcn.004592c0
push 0x4ec580
call fcn.004b3d86
add esp, 4
mov eax, dword [0x543594]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x18], esi
jb 0x45fe8a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x462000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e46c6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x543530], 1
jne 0x462059
or dword [0x543530], 1
mov dword [ebp - 4], 0
call fcn.004592c0
push 0x4ec580
call fcn.004b3d86
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
mov edx, 0x543538
call fcn.0045fb00
push 1
mov eax, 0x5062dc
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00403f00
push 0xb
mov eax, str.WEMedia.exe
mov ecx, esi
call fcn.00403f00
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x462099
lea eax, [ebp - 0x2c]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
mov ecx, edi
call edx
cmp dword [ebp - 0x18], esi
jb 0x4620c7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x463d50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x463daf
mov dword [edi], 0
jmp 0x463d70
mov eax, 0x400000
cmp esi, 0x400000
ja 0x463d7f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x463db7
test ecx, ecx
je 0x463daf
test esi, esi
jne 0x463d70
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x463e2f
mov dword [edi], 0
jmp 0x463df0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x463dff
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x463e37
test ecx, ecx
je 0x463e2f
test esi, esi
jne 0x463df0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464420
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x464430
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x5448e0], ecx
inc edx
cmp edx, 0x100
jb 0x464430
cmp edx, 0x800
jae 0x464509
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x5444e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5448e0]
inc edx
mov dword [edx*4 + 0x5448dc], eax
cmp edx, 0x800
jb 0x4644e0
lea esi, [ebp - 0x24]
mov dword [0x543074], 0x466f10
call fcn.00467040
test eax, eax
je 0x4645c6
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x5404d8
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x46455c
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x46455c
cmp dword [ecx], ebx
je 0x464594
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x464548
or ecx, 0xffffffff
sub ecx, 0
je 0x4645ac
dec ecx
je 0x464598
dec ecx
jne 0x4645c6
cmp esi, 6
jb 0x4645c6
jne 0x4645bc
cmp dword [ebp - 4], 0xf
jb 0x4645c6
mov dword [0x543074], 0x466fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x46456b
cmp esi, 5
jb 0x4645c6
jne 0x4645bc
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x4645c6
cmp eax, 0xa
jmp 0x4645ba
cmp esi, 6
jb 0x4645c6
jne 0x4645bc
cmp dword [ebp - 4], 0x100c
je 0x4645c6
mov dword [0x543074], 0x466fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4687c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x4687e2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x468810
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x468810
inc edi
cmp edi, edx
jb 0x468801
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x468917
cmp eax, 3
jbe 0x468847
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x468884
cmp al, 0xff
je 0x468884
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4687f5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x46882b
movzx eax, byte [esi + 0x508340]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x508338], 0
mov al, byte [ecx + 4]
je 0x468870
test al, al
je 0x468870
cmp al, 0xff
jne 0x46882b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4687f5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x4688e7
movzx edx, byte [esi + 0x508340]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x4688ce
cmp cl, 0xff
jne 0x4688e4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x4688a2
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x4687f5
cmp eax, 3
jbe 0x46892c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x476494
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x4764aa
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x4764b6
or edi, 1
push 1
call esi
test ax, ax
jns 0x4764c2
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x4764ce
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x4764da
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x47663a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004b96b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b1681
leave
ret

Function at 0x478fdd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x479005
cmp ebx, dword [esi + 0x148]
je 0x479005
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x148]
cmp ebx, eax
je 0x4790dc
push edi
test eax, eax
je 0x479064
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x148]
mov ecx, esi
call sym.Update.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x148], edi
test ebx, ebx
je 0x4790db
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4790db
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4790db
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4790db
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x148], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x148]
mov ecx, esi
call sym.Update.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4