joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e7d0
Capabilities:
Check os version
Identify system language via api

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x94
cmp eax, 7
push esi
jl 0x47e885
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x47e80b
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x47e822
cmp dword [esp + 8], 5
jae 0x47e835
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push eax
call fcn.0047e8a0
add esp, 4
pop esi
add esp, 0x94
ret
cmp eax, 1
jne 0x47e80b
cmp dword [esp + 8], 4
jne 0x47e80b
cmp dword [esp + 0xc], 0x5a
jb 0x47e80b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47e85d
push str.GetUserDefaultUILanguage
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x47e867
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
add esp, 0x94
ret
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.0047e8a0
add esp, 4
pop edi
pop esi
add esp, 0x94
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push eax
call fcn.0047e8a0
add esp, 4
pop esi
add esp, 0x94
ret
Function at 0x47ef10
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x150
push esi
push edi
call fcn.0046a020
mov edi, eax
xor esi, esi
cmp edi, esi
mov dword [esp + 0xc], edi
je 0x47f089
push ebx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.0046fa50
push 1
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.0046fb30
mov edx, dword [0x4d68a4]
mov eax, dword [0x4d689c]
mov ecx, dword [0x4d68a0]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
push esi
mov dword [esp + 0x5c], edx
push esi
mov dword [esp + 0x58], eax
mov eax, dword [0x4d68a8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x4d21bc]
push esi
lea edx, [esp + 0x5c]
push esi
push edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
push esi
push esi
push 3
push esi
push esi
push ebp
push edi
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push esi
push 0x84000000
push esi
mov ebp, eax
push esi
push str.HTTP_1.0
lea eax, [esp + 0x2c]
push ebx
push eax
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push esi
push esi
mov edi, eax
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x47f02c
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x64]
push 0x100
push edx
push edi
call ebx
test eax, eax
je 0x47f02c
cmp dword [esp + 0x10], esi
je 0x47f02c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x60]
push eax
push 0x100
push ecx
push edi
call ebx
test eax, eax
jne 0x47f010
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, esi
je 0x47f039
push edi
call ebx
cmp ebp, esi
je 0x47f040
push ebp
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x47f04b
push eax
call ebx
mov edx, dword [esp + 0x14]
mov ecx, 0x4de568
push edx
call fcn.0041e9a0
mov eax, dword [esp + 0x38]
mov ecx, 0x4de568
push eax
call fcn.0041e9a0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, 0x4de568
call fcn.0041e9a0
mov edx, dword [esp + 0x20]
mov ecx, 0x4de568
push edx
call fcn.0041e9a0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x150
ret

Function at 0x47f4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x47f570
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 0x47f58e
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 0x47f5db
cmp byte [esi + ebx], 0x5c
jne 0x47f5c7
test esi, esi
je 0x47f5c7
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.0041bb60
inc esi
cmp esi, edi
jl 0x47f5b0
test edi, edi
je 0x47f5ed
cmp byte [edi + ebx - 1], 0x5c
je 0x47f5ed
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, 0x4de568
and bl, 1
call fcn.0041e9a0
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x47f6a0
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 0x47f6d0
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 0x47f700
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 0x47f76e
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push 0
push 0x4d68d0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x47f76e
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 0x47f820
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.0047f620
add esp, 0xc
test al, al
je 0x47f85d
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.0047f800
add esp, 4
mov al, bl
pop ebx
ret
Function at 0x47f870
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 0x47f8f0
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 0x47f8e5
mov ecx, dword [esp + 0x414]
lea edx, [esp + 0x10]
push edx
call fcn.0041bda0
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 0x4813c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
mov ecx, 0x228
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.0040acd0
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
lea ebp, [esi + 0x890]
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x894]
lea eax, [esp + 0x10]
push eax
mov dword [ebp], 0
mov dword [ebx], 0
mov byte [esi + 0x88c], 0
mov byte [esi + 0x898], 0
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
ja 0x481478
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x481478
push ebp
push 0x4cfbd0
push 3
push 0
push 0x4cfbc0
mov byte [esi + 0x898], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, dword [ebp]
test ebp, ebp
je 0x481478
mov ecx, dword [ebp]
push ebx
push 0x4d69b8
push ebp
call dword [ecx]
cmp dword [ebx], 0
je 0x481478
mov byte [esi + 0x88c], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret

Function at 0x4814f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
lea eax, [esp]
push ebx
mov ebx, ecx
push 0x105
push eax
mov dword [0x4de87c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x481553
push ebp
push esi
push edi
mov edi, 0x4d69c8
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.0040b520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x481b70
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 0x481c0b
cmp ebx, 0xff
jg 0x481c0b
cmp ebx, 0x7f
jle 0x481b9f
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 0x481bd8
test al, al
je 0x481c04
push ebx
call fcn.0041c6f0
add esp, 4
test al, al
je 0x481bdc
and ebx, 0xff
xor ecx, ecx
pop esi
mov cl, byte [ebx + 0x4c6370]
mov edx, ecx
xor ebx, edx
mov al, bl
pop ebx
ret 4
test al, al
je 0x481bf2
push ebx
mov ecx, esi
call fcn.00481a40
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 + 0x4c6370]
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 0x484e20
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 0x484e4a
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 0x484f30
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4df0f4]
sub esp, 0x190
cmp eax, 1
push esi
jne 0x484f49
pop esi
add esp, 0x190
ret
cmp eax, 2
je 0x485098
push str.WSOCK32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48508e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push esi
call edi
push str.WSAStartup
push esi
mov dword [0x4df0b0], eax
call edi
push str.listen
push esi
mov dword [0x4df0b4], eax
call edi
push str.closesocket
push esi
mov dword [0x4df0b8], eax
call edi
push str.bind
push esi
mov dword [0x4df0bc], eax
call edi
push str.htons
push esi
mov dword [0x4df0c0], eax
call edi
push str.htonl
push esi
mov dword [0x4df0c4], eax
call edi
push str.socket
push esi
mov dword [0x4df0c8], eax
call edi
push str.WSAAsyncSelect
push esi
mov dword [0x4df0cc], eax
call edi
push str.accept
push esi
mov dword [0x4df0d0], eax
call edi
push str.WSAGetLastError
push esi
mov dword [0x4df0d4], eax
call edi
push str.WSAAsyncGetHostByName
push esi
mov dword [0x4df0d8], eax
call edi
push str.inet_addr
push esi
mov dword [0x4df0dc], eax
call edi
push str.connect
push esi
mov dword [0x4df0e0], eax
call edi
push str.send
push esi
mov dword [0x4df0e4], eax
call edi
push str.recv
push esi
mov dword [0x4df0e8], eax
call edi
push str.WSACancelAsyncRequest
push esi
mov dword [0x4df0ec], eax
call edi
mov dword [0x4df0f0], eax
lea eax, [esp + 8]
push eax
push 0x101
call dword [0x4df0b4]
test eax, eax
pop edi
jne 0x48508e
mov ax, word [esp + 4]
cmp al, 1
jne 0x485088
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x485088
mov dword [0x4df0f4], 1
mov eax, 1
pop esi
add esp, 0x190
ret
call dword [0x4df0b0]
mov dword [0x4df0f4], 2
xor eax, eax
pop esi
add esp, 0x190
ret
Function at 0x485100
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 0x4851c1
push ebx
mov esi, 0x4d2b50
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x48516d
test cl, cl
je 0x485169
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x48516d
add eax, 2
add esi, 2
test cl, cl
jne 0x485145
xor eax, eax
jmp 0x485172
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x4851c1
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4851cf
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x48519b
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 0x4851cf
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 [0x4df0e4]
test eax, eax
je 0x4851ef
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret 0x10
mov al, byte [esp + 0x28]
test al, al
jne 0x485213
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 0x486ca0
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 0x486e19
mov eax, dword [ebp]
push esi
push eax
mov ecx, 0x4de568
call fcn.0041e9a0
mov eax, dword [esp + 0xc]
mov dword [ebp], 0
cmp eax, 5
jle 0x486d8f
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x486d04
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x486d30
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
call fcn.00471e10
add esp, 8
jmp 0x486d26
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x486d30
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 6
push eax
call fcn.00471f50
add esp, 0xc
push esi
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp]
test esi, esi
je 0x486e0b
cmp byte [esi], 0
je 0x486e0b
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.00471940
add esp, 8
cmp word [esp + 0xc], 0xd
jne 0x486d7a
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x486d75
mov cl, byte [eax + 1]
test cl, cl
je 0x486d75
mov dl, cl
mov byte [eax], dl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x486d62
mov byte [eax], 0
jmp 0x486d7c
add esi, eax
cmp byte [esi], 0
jne 0x486d44
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 0x486dd9
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, 0x4de568
call fcn.0041e8f0
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 0x486e0b
mov ecx, eax
mov al, byte [ecx]
test al, al
je 0x486e0b
cmp al, 0xd
jne 0x486e04
mov eax, ecx
mov dl, byte [eax + 1]
test dl, dl
je 0x486dff
mov byte [eax], dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x486dee
mov byte [eax], 0
jmp 0x486e05
inc ecx
mov al, byte [ecx]
test al, al
jne 0x486de8
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 0x487040
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 0x487075
push edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push 1
call edi
test eax, eax
jne 0x487065
push 0xd
call edi
test eax, eax
je 0x48706a
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 0x487690
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 0x487753
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 0x487729
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 0x487729
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 0x48771a
cmp dword [esp + 0x14], esi
jne 0x48771a
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x487743
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 0x4877b8
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 0x4877b8
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 0x4877b8
test esi, esi
jne 0x4877b8
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 0x488320
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 0x48846a
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 0x48838e
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 0x48844b
cmp dword [esp + 0x18], 0xfa123456
jne 0x4883e7
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 0x48844b
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 0x48844b
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 0x48846a
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 0x48d100
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.0041c760
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push str.defaultcamera
mov ecx, dword [ecx + 0x110c]
call fcn.00494e40
mov dword [esp + 0x10], ebx
push 0xa
push ebx
call fcn.0045a420
mov edx, dword [ebp]
mov esi, eax
add esp, 8
mov eax, dword [edx + 0x1108]
push esi
mov ecx, dword [eax + 0x854]
call fcn.004a6dd0
mov ecx, dword [ebp]
push esi
mov edx, dword [ecx + 0x1108]
mov ecx, dword [edx + 0x854]
call fcn.004a6fa0
push esi
mov ecx, 0x4de568
mov edi, eax
call fcn.0041e9a0
xor esi, esi
cmp edi, esi
je 0x48d317
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.004a63a0
lea ecx, [esp + 0x1c]
call fcn.0041cfd0
test eax, eax
je 0x48d1ca
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0041cd80
test al, al
jne 0x48d296
jmp 0x48d250
lea ecx, [esp + 0x24]
call fcn.00454e50
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 0x48d208
mov dl, byte [eax + esi]
mov byte [esp + 0x18], dl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
mov cl, byte [ecx + 0x4c6370]
xor cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jl 0x48d1e7
mov eax, dword [0x4c9264]
xor ebx, ebx
test eax, eax
je 0x48d23d
mov eax, 0x4c9264
mov edi, eax
mov edx, dword [eax]
push edx
push esi
call fcn.0041c4d0
add esp, 8
test eax, eax
jne 0x48d238
mov ecx, dword [edi + 4]
add edi, 4
test ecx, ecx
mov eax, edi
jne 0x48d21a
jmp 0x48d23d
mov ebx, 1
push esi
mov ecx, 0x4de568
call fcn.0041e9a0
test ebx, ebx
je 0x48d2c7
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
call fcn.00454b70
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x48d280
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 0x48d280
call fcn.00456510
inc ebx
cmp ebx, 0x270f
mov dword [esp + 0x10], ebx
jl 0x48d134
jmp 0x48d317
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.00454b70
mov ecx, dword [esp + 0x28]
cmp ecx, esi
je 0x48d317
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 0x48d317
jmp 0x48d312
mov ecx, dword [ebp]
lea eax, [esp + 0x24]
push eax
push str.defaultcamera
mov ecx, dword [ecx + 0x110c]
call fcn.00494ec0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edx
call fcn.00454b70
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x48d317
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 0x48d317
call fcn.00456510
mov eax, dword [esp + 0x14]
push 0xa
push eax
call fcn.0045a420
add esp, 8
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0041c9c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret