joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47db10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47db2e
shr eax, 4
and al, 1
pop ebx
add esp, 0xc
ret
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], eax
mov edi, ecx
mov dword [esp + 0x10], eax
test edi, edi
mov dword [esp + 0x14], eax
jle 0x47db7b
cmp byte [esi + ebx], 0x5c
jne 0x47db67
test esi, esi
je 0x47db67
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi + ebx]
push ecx
lea ecx, [esp + 0x10]
call fcn.0041ba00
inc esi
cmp esi, edi
jl 0x47db50
test edi, edi
je 0x47db8d
cmp byte [edi + ebx - 1], 0x5c
je 0x47db8d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0xc]
mov ebx, eax
shr ebx, 4
push edx
mov ecx, 0x4da3e8
and bl, 1
call fcn.0041e810
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x47dc40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x47dc70
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x47dca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x47dd0e
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push 0
push 0x4d27d8
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x47dd0e
push esi
push edi
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x208
ret
xor al, al
add esp, 0x208
ret

Function at 0x47ddc0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
xor bl, bl
call fcn.0047dbc0
add esp, 0xc
test al, al
je 0x47ddfd
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
mov bl, 1
mov dword [ecx], eax
call fcn.0047dda0
add esp, 4
mov al, bl
pop ebx
ret
Function at 0x47de10
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x20], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x47de90
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push str.AppData
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x47de85
mov ecx, dword [esp + 0x414]
lea edx, [esp + 0x10]
push edx
call fcn.0041bc40
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x40c
ret

Function at 0x47f960
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
mov ecx, 0x227
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.0040ac60
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
lea ebp, [esi + 0x88c]
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x890]
lea eax, [esp + 0x10]
push eax
mov dword [ebp], 0
mov dword [ebx], 0
mov byte [esi + 0x888], 0
mov byte [esi + 0x894], 0
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
ja 0x47fa18
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x47fa18
push ebp
push 0x4cbbc0
push 3
push 0
push 0x4cbbb0
mov byte [esi + 0x894], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, dword [ebp]
test ebp, ebp
je 0x47fa18
mov ecx, dword [ebp]
push ebx
push 0x4d28c0
push ebp
call dword [ecx]
cmp dword [ebx], 0
je 0x47fa18
mov byte [esi + 0x888], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret

Function at 0x47fa90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
lea eax, [esp]
push ebx
mov ebx, ecx
push 0x105
push eax
mov dword [0x4da6fc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47faf3
push ebp
push esi
push edi
mov edi, 0x4d28d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0040b4a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x480110
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 2
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
test ebx, ebx
jl 0x4801ab
cmp ebx, 0xff
jg 0x4801ab
cmp ebx, 0x7f
jle 0x48013f
mov al, bl
pop esi
pop ebx
ret 4
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
mov al, byte [esi + 9]
je 0x480178
test al, al
je 0x4801a4
push ebx
call fcn.0041c590
add esp, 4
test al, al
je 0x48017c
and ebx, 0xff
xor ecx, ecx
pop esi
mov cl, byte [ebx + 0x4c2368]
mov edx, ecx
xor ebx, edx
mov al, bl
pop ebx
ret 4
test al, al
je 0x480192
push ebx
mov ecx, esi
call fcn.0047ffe0
and eax, 0xff
pop esi
mov ebx, eax
mov al, bl
pop ebx
ret 4
and ebx, 0xff
xor eax, eax
mov al, byte [ebx + 0x4c2368]
mov ecx, eax
xor ebx, ecx
mov al, bl
pop esi
pop ebx
ret 4
mov al, byte [esp + 0xc]
pop esi
pop ebx
ret 4
Function at 0x483070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [ecx + 0x11c4]
xor bl, bl
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, eax
jne 0x48309a
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
pop esi
pop ebx
setl al
ret 4
mov al, bl
pop esi
pop ebx
ret 4

Function at 0x483180
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4daf74]
sub esp, 0x190
cmp eax, 1
push esi
jne 0x483199
pop esi
add esp, 0x190
ret
cmp eax, 2
je 0x4832e8
push str.WSOCK32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4832de
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push esi
call edi
push str.WSAStartup
push esi
mov dword [0x4daf30], eax
call edi
push str.listen
push esi
mov dword [0x4daf34], eax
call edi
push str.closesocket
push esi
mov dword [0x4daf38], eax
call edi
push str.bind
push esi
mov dword [0x4daf3c], eax
call edi
push str.htons
push esi
mov dword [0x4daf40], eax
call edi
push str.htonl
push esi
mov dword [0x4daf44], eax
call edi
push str.socket
push esi
mov dword [0x4daf48], eax
call edi
push str.WSAAsyncSelect
push esi
mov dword [0x4daf4c], eax
call edi
push str.accept
push esi
mov dword [0x4daf50], eax
call edi
push str.WSAGetLastError
push esi
mov dword [0x4daf54], eax
call edi
push str.WSAAsyncGetHostByName
push esi
mov dword [0x4daf58], eax
call edi
push str.inet_addr
push esi
mov dword [0x4daf5c], eax
call edi
push str.connect
push esi
mov dword [0x4daf60], eax
call edi
push str.send
push esi
mov dword [0x4daf64], eax
call edi
push str.recv
push esi
mov dword [0x4daf68], eax
call edi
push str.WSACancelAsyncRequest
push esi
mov dword [0x4daf6c], eax
call edi
mov dword [0x4daf70], eax
lea eax, [esp + 8]
push eax
push 0x101
call dword [0x4daf34]
test eax, eax
pop edi
jne 0x4832de
mov ax, word [esp + 4]
cmp al, 1
jne 0x4832d8
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x4832d8
mov dword [0x4daf74], 1
mov eax, 1
pop esi
add esp, 0x190
ret
call dword [0x4daf30]
mov dword [0x4daf74], 2
xor eax, eax
pop esi
add esp, 0x190
ret
Function at 0x483350
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push ebp
mov dword [esp + 4], eax
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push esi
push edi
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call sub.WSOCK32.dll_htons
mov edi, dword [esp + 0x20]
mov word [esp + 0xe], ax
cmp byte [edi], 0
je 0x483411
push ebx
mov esi, 0x4ceb08
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4833bd
test cl, cl
je 0x4833b9
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4833bd
add eax, 2
add esi, 2
test cl, cl
jne 0x483395
xor eax, eax
jmp 0x4833c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x483411
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x48341f
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4833eb
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret 0x10
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
lea edi, [esp + 0x10]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0xc], ax
jmp 0x48341f
push 0x7f000001
call sub.WSOCK32.dll_htonl
mov dword [esp + 0x10], eax
mov edx, dword [ebp]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
call dword [0x4daf64]
test eax, eax
je 0x48343f
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret 0x10
mov al, byte [esp + 0x28]
test al, al
jne 0x483463
mov ecx, dword [ebp]
lea eax, [esp + 0x28]
push 4
push eax
push 1
push 6
push ecx
mov dword [esp + 0x3c], 1
call sub.WSOCK32.dll_setsockopt
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x10
ret 0x10
Function at 0x484f00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x485079
mov eax, dword [ebp]
push esi
push eax
mov ecx, 0x4da3e8
call fcn.0041e810
mov eax, dword [esp + 0xc]
mov dword [ebp], 0
cmp eax, 5
jle 0x484fef
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x484f64
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x484f90
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
call fcn.00470410
add esp, 8
jmp 0x484f86
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x484f90
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 6
push eax
call fcn.00470550
add esp, 0xc
push esi
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp]
test esi, esi
je 0x48506b
cmp byte [esi], 0
je 0x48506b
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.0046ff40
add esp, 8
cmp word [esp + 0xc], 0xd
jne 0x484fda
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x484fd5
mov cl, byte [eax + 1]
test cl, cl
je 0x484fd5
mov dl, cl
mov byte [eax], dl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x484fc2
mov byte [eax], 0
jmp 0x484fdc
add esi, eax
cmp byte [esi], 0
jne 0x484fa4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp]
pop esi
pop ebp
ret 4
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x485039
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, 0x4da3e8
call fcn.0041e760
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp]
test eax, eax
je 0x48506b
mov ecx, eax
mov al, byte [ecx]
test al, al
je 0x48506b
cmp al, 0xd
jne 0x485064
mov eax, ecx
mov dl, byte [eax + 1]
test dl, dl
je 0x48505f
mov byte [eax], dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x48504e
mov byte [eax], 0
jmp 0x485065
inc ecx
mov al, byte [ecx]
test al, al
jne 0x485048
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp]
pop esi
pop ebp
ret 4
mov eax, dword [ebp]
pop ebp
ret 4
Function at 0x4852a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4852d5
push edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push 1
call edi
test eax, eax
jne 0x4852c5
push 0xd
call edi
test eax, eax
je 0x4852ca
mov esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x4858f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x144]
test edi, edi
jne 0x4859b3
mov eax, dword [esp + 0x140]
mov edi, dword [esp + 0x138]
mov ebx, dword [esp + 0x134]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [esp + 0x10], 0x114
mov byte [esp + 0x1c], 0
je 0x485989
lea eax, [esp + 0x18]
mov esi, 1
push eax
push esi
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x485989
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push ecx
call ebp
test eax, eax
je 0x48597a
cmp dword [esp + 0x14], esi
jne 0x48597a
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4859a3
mov esi, dword [esp + 0x13c]
push esi
call ebp
push eax
push esi
push 1
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x485a18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x485a18
mov esi, dword [esp + 0x13c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x485a18
test esi, esi
jne 0x485a18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
Function at 0x486580
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
lea eax, [esp + 0x18]
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [esp + 0x120]
push 0
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4866ca
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4865ee
pop edi
xor eax, eax
pop esi
add esp, 0x114
ret 4
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
lea edx, [ebx - 8]
push edx
push esi
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 8
jne 0x4866ab
cmp dword [esp + 0x18], 0xfa123456
jne 0x486647
mov ecx, dword [esp + 0x1c]
mov edx, 0xfffffff8
sub edx, ecx
add ebx, edx
push 0
push 0
push ebx
push esi
call ebp
mov ecx, dword [edi + 0x270]
mov edx, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push esi
call ebx
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x4866ab
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x2c], 0xfa123456
call ebx
cmp dword [esp + 0x10], 8
jne 0x4866ab
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
pop ebx
jne 0x4866ca
mov edx, dword [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x114
ret 4

Function at 0x486df0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x486e1e
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
je 0x486e16
test al, al
je 0x486e16
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
jne 0x486e0a
cmp byte [esi], 0x22
jne 0x486e2a
inc esi
jmp 0x486e2a
cmp al, 0x20
jle 0x486e2a
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jg 0x486e22
mov al, byte [esi]
test al, al
je 0x486e3c
cmp al, 0x20
jg 0x486e3c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x486e30
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x486e61
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x486e66
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x48b380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.0041c600
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push str.defaultcamera
mov ecx, dword [ecx + 0x110c]
call fcn.004930a0
mov dword [esp + 0x10], ebx
push 0xa
push ebx
call fcn.00459b20
mov edx, dword [ebp]
mov esi, eax
add esp, 8
mov eax, dword [edx + 0x1108]
push esi
mov ecx, dword [eax + 0x854]
call fcn.004a41f0
mov ecx, dword [ebp]
push esi
mov edx, dword [ecx + 0x1108]
mov ecx, dword [edx + 0x854]
call fcn.004a43c0
push esi
mov ecx, 0x4da3e8
mov edi, eax
call fcn.0041e810
xor esi, esi
cmp edi, esi
je 0x48b597
mov ecx, dword [edi + 0xa0]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 6
mov dword [esp + 0x2c], esi
call fcn.004a37c0
lea ecx, [esp + 0x1c]
call fcn.0041ce50
test eax, eax
je 0x48b44a
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0041cc00
test al, al
jne 0x48b516
jmp 0x48b4d0
lea ecx, [esp + 0x24]
call fcn.00454550
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x48b488
mov dl, byte [eax + esi]
mov byte [esp + 0x18], dl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
mov cl, byte [ecx + 0x4c2368]
xor cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jl 0x48b467
mov eax, dword [0x4c522c]
xor ebx, ebx
test eax, eax
je 0x48b4bd
mov eax, 0x4c522c
mov edi, eax
mov edx, dword [eax]
push edx
push esi
call fcn.0041c370
add esp, 8
test eax, eax
jne 0x48b4b8
mov ecx, dword [edi + 4]
add edi, 4
test ecx, ecx
mov eax, edi
jne 0x48b49a
jmp 0x48b4bd
mov ebx, 1
push esi
mov ecx, 0x4da3e8
call fcn.0041e810
test ebx, ebx
je 0x48b547
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
call fcn.00454270
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x48b500
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x48b500
call fcn.00455c10
inc ebx
cmp ebx, 0x270f
mov dword [esp + 0x10], ebx
jl 0x48b3b4
jmp 0x48b597
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.00454270
mov ecx, dword [esp + 0x28]
cmp ecx, esi
je 0x48b597
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x48b597
jmp 0x48b592
mov ecx, dword [ebp]
lea eax, [esp + 0x24]
push eax
push str.defaultcamera
mov ecx, dword [ecx + 0x110c]
call fcn.00493120
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edx
call fcn.00454270
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x48b597
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x48b597
call fcn.00455c10
mov eax, dword [esp + 0x14]
push 0xa
push eax
call fcn.00459b20
add esp, 8
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0041c840
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4964b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
xor edx, edx
xor esi, esi
mov al, byte [edi]
mov dword [esp + 0x10], edx
cmp al, bl
mov dword [esp + 0x14], esi
je 0x496513
mov byte [esp + 0x1c], al
xor eax, eax
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
mov al, byte [ecx + 0x4c2368]
xor eax, ecx
mov ecx, edx
shr ecx, 0x1b
shl edx, 5
or ecx, edx
add ecx, eax
mov edx, ecx
mov ecx, esi
shr ecx, 0x1a
shl esi, 6
or ecx, esi
add ecx, eax
mov al, byte [edi + 1]
inc edi
cmp al, bl
mov esi, ecx
jne 0x4964cf
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x20]
mov ecx, 0x4da3e8
mov edx, dword [edi]
push edx
call fcn.0041e810
push 0x4d941c
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.0041be40
lea ebp, [esp + 0x10]
mov dword [esp + 0x1c], 2
mov esi, dword [ebp]
mov ebx, 8
mov eax, esi
shr eax, 0x1c
push eax
call fcn.0041b880
add esp, 4
mov ecx, edi
push eax
call fcn.0041ba00
shl esi, 4
dec ebx
jne 0x49654c
mov eax, dword [esp + 0x1c]
add ebp, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x496544
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret