joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062d0
Capabilities:
Read file on windows

Disassembly:
push ecx
xor eax, eax
push ebx
mov dword [0x417d80], eax
push esi
mov esi, dword [esp + 0x10]
mov dword [0x417d84], eax
mov dword [0x417d88], eax
push edi
mov edi, dword [sym.imp.MSVCRT.dll__lseek]
mov dword [0x417d8c], eax
push eax
push 0x3c
mov dword [esp + 0x14], 0
push esi
mov word [0x41811c], 0
mov dword [esp + 0x18], 0
mov dword [0x417d90], eax
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x4063a9
mov ebx, dword [sym.imp.MSVCRT.dll__read]
push 2
push 0x41811c
push esi
call ebx
add esp, 0xc
cmp eax, 2
jne 0x4063a9
mov ecx, dword [0x41811c]
push 0
and ecx, 0xffff
push ecx
push esi
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x4063a9
lea edx, [esp + 0xc]
push 4
push edx
push esi
call ebx
add esp, 0xc
cmp eax, 4
jne 0x4063a9
cmp dword [esp + 0xc], 0x4550
jne 0x4063a9
mov eax, dword [0x41811c]
push 0
and eax, 0xffff
add eax, 4
push eax
push esi
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x4063a9
push 0x14
push 0x417d80
push esi
call ebx
add esp, 0xc
xor ecx, ecx
cmp eax, 0x14
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4063b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x41811c]
push ebx
mov ebx, dword [esp + 8]
and eax, 0xffff
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__lseek]
push esi
add eax, 0x18
push 0
push eax
push ebx
call ebp
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4063de
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x60
push 0x417d98
push ebx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0x60
je 0x4063fa
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov cx, word [0x417d82]
cmp cx, 0x14
jbe 0x40640d
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
push edi
mov ax, cx
mov ecx, 0xc8
mov edi, 0x417df8
lea esi, [eax + eax*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x41811c]
push eax
and ecx, 0xffff
add ecx, 0xf8
push ecx
push ebx
shl esi, 3
call ebp
add esp, 0xc
cmp eax, 0xffffffff
pop edi
jne 0x40644d
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
push 0x417df8
push ebx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
xor edx, edx
cmp eax, esi
sete dl
pop esi
pop ebp
mov eax, edx
pop ebx
ret
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
push str.Kernel32.dll
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
push 0x64
mov dword [esp + 0x1c], esi
call ebx
test esi, esi
jne 0x4065ee
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x220
ret
push 0x128
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406795
mov ecx, 0x4a
xor eax, eax
mov edi, ebp
push str.CreateToolhelp32Snapshot
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 2
call eax
mov edi, eax
push 0x64
mov dword [esp + 0x18], edi
call ebx
cmp edi, 0xffffffff
jne 0x40663f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x220
ret
push str.Process32First
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push edi
mov dword [ebp], 0x128
call eax
mov edi, dword [esp + 0x234]
push 0x5c
push edi
mov byte [esp + 0x1b], al
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x406674
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
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]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll__strupr]
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40673a
mov edx, dword [esp + 0x18]
push str.Process32Next
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406785
push 0x64
call ebx
mov eax, dword [esp + 0x14]
push ebp
push eax
call esi
test al, al
je 0x406785
push 0x64
call ebx
lea edi, [ebp + 0x24]
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x4066f7
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x128]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x406742
jmp 0x4066af
mov al, byte [esp + 0x13]
test al, al
je 0x406785
push 0x32
call ebx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406772
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x406772
mov dword [esp + 0x1c], 1
push 0x1f4
call ebx
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x406799
mov esi, dword [esp + 0x18]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x406799
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4067ac
mov ecx, eax
push ecx
call edi
test esi, esi
je 0x4067b3
push esi
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x406cf0
Capabilities:
Terminate process

Disassembly:
push ebx
call fcn.00406550
mov ebx, 1
cmp eax, 4
mov dword [0x418134], eax
mov byte [0x4130b0], bl
jne 0x406d1a
call fcn.00406d70
test eax, eax
je 0x406d1a
mov dword [0x418120], ebx
cmp dword [0x418134], 5
jne 0x406d60
call fcn.00407050
test eax, eax
je 0x406d60
mov eax, dword [0x418130]
mov dword [0x418120], ebx
cmp eax, ebx
jne 0x406d58
push 0x41
push str.CleanPalevo_Ver_1.0
push str.W32_Palevo.Worm_found_in_memory__registry_entries_created_by_the_worm_are_removed._You_must_restart_the_computer_and_run_this_program_to_continue_scanning._n_nRestart_the_computer_now_
call fcn.00402d40
add esp, 0xc
cmp eax, ebx
jne 0x406d58
call fcn.004079d0
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov byte [0x4130b0], 0
pop ebx
ret
Function at 0x407560
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410028
push 0x40e0a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x3c], edi
cmp edi, ebx
jne 0x4075cb
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf003f
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, ebx
jne 0x407605
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 1
jne 0x407649
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test al, al
je 0x407650
lea ecx, [ebp - 0x34]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test al, al
je 0x40763e
cmp dword [ebp - 0x30], 3
jne 0x40763e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40761c
cmp dword [ebp - 0x30], 1
jne 0x407650
inc dword [ebp - 0x40]
jmp 0x407650
mov dword [ebp - 0x48], 1
cmp esi, ebx
je 0x407660
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0xffffffff
call fcn.00407690
cmp byte [ebp + 0xc], bl
mov eax, dword [ebp - 0x48]
je 0x407677
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4076b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x40770b
mov eax, dword [esp + 0x10]
sub eax, 2
jne 0x40770b
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x4076fa
mov eax, 5
add esp, 0x94
ret
cmp eax, 5
jne 0x40770b
mov eax, 6
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x4079d0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.00406550
cmp eax, 4
je 0x407a39
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407a43
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407a43
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x40bbf0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x208
call fcn.00406550
cmp eax, 4
jne 0x40bc7a
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Wininit.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push 0x413b90
call fcn.0040bcb0
add esp, 8
neg al
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x208
ret
cmp eax, 5
jne 0x40bc9d
mov ecx, dword [esp + 0x20c]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 1
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret
Function at 0x40cf60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14c
mov al, byte [0x415e14]
push ebp
push esi
push edi
mov byte [esp + 0x2c], al
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x413bf0]
mov edx, dword [0x413bf4]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x413bec]
mov esi, dword [esp + 0x15c]
mov dword [esp + 0x1b], ecx
stosw word es:[edi], ax
xor ecx, ecx
mov dword [esp + 0x11], edx
mov edx, dword [0x413be8]
mov word [esp + 0x27], cx
stosb byte es:[edi], al
mov eax, dword [0x413be4]
mov edi, dword [sym.imp.MSVCRT.dll__lseek]
mov dword [esp + 0x16], eax
mov ax, word [0x415d4c]
push ecx
push ecx
push esi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x2b], 0
mov dword [esp + 0x2c], edx
mov byte [esp + 0x30], 0
mov word [esp + 0x31], ax
mov byte [esp + 0x35], cl
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d1c7
mov ebp, dword [sym.imp.MSVCRT.dll__read]
push 7
push 0x418179
push esi
call ebp
add esp, 0xc
cmp eax, 7
jne 0x40d1c7
cmp word [0x418179], 0x6152
jne 0x40d1c7
cmp byte [0x41817b], 0x72
jne 0x40d1c7
xor edx, edx
push 0
mov dx, word [0x41817e]
push edx
push esi
call edi
xor ecx, ecx
add esp, 0xc
mov cx, word [0x41817e]
cmp eax, ecx
jne 0x40d1c7
push 0xd
push 0x418168
push esi
call ebp
add esp, 0xc
cmp eax, 0xd
jne 0x40d1c7
xor edx, edx
xor eax, eax
mov dx, word [0x41816d]
mov ax, word [0x41817e]
add edx, eax
push 0
push edx
push esi
call edi
xor ecx, ecx
xor edx, edx
mov cx, word [0x41816d]
mov dx, word [0x41817e]
add ecx, edx
add esp, 0xc
cmp eax, ecx
jne 0x40d1c7
push 0x20
push 0x418148
push esi
call ebp
add esp, 0xc
cmp eax, 0x20
jne 0x40d1c7
test byte [0x41814b], 4
je 0x40d1c7
mov eax, dword [0x418153]
mov ecx, dword [0x41814f]
cmp eax, ecx
ja 0x40d1c7
cmp eax, 0x4c00
jb 0x40d1c7
cmp eax, 0x6400
ja 0x40d1c7
cmp byte [0x418161], 0x30
jne 0x40d1c7
cmp word [0x418162], 0x12c
jae 0x40d1b8
xor eax, eax
xor ecx, ecx
mov ax, word [0x41816d]
mov cx, word [0x41817e]
push 0
lea edx, [eax + ecx + 0x20]
push edx
push esi
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d1c7
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ax, word [0x418162]
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
call ebp
xor edx, edx
add esp, 0xc
mov dx, word [0x418162]
cmp eax, edx
jne 0x40d1c7
lea eax, [esp + 0x2c]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40d1b8
mov al, byte [esp + 0xc]
inc ebp
xor edi, edi
push ebx
test al, al
je 0x40d1ac
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [esp + 0x10]
lea esi, [esp + 0x10]
push ebp
push eax
call ebx
add esp, 8
test eax, eax
je 0x40d1ac
mov cl, byte [esi + 5]
add esi, 5
inc edi
mov eax, esi
test cl, cl
jne 0x40d194
lea ecx, [esp + edi + 0x10]
pop ebx
lea edx, [ecx + edi*4]
test edx, edx
je 0x40d1c7
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14c
ret
Function at 0x40d1e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14c
mov al, byte [0x415e14]
push ebp
push esi
push edi
mov byte [esp + 0x2c], al
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x413bf0]
mov edx, dword [0x413bf4]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x413bec]
mov esi, dword [esp + 0x15c]
mov dword [esp + 0x1b], ecx
stosw word es:[edi], ax
xor ecx, ecx
mov dword [esp + 0x11], edx
mov edx, dword [0x413be8]
mov word [esp + 0x27], cx
stosb byte es:[edi], al
mov eax, dword [0x413be4]
mov edi, dword [sym.imp.MSVCRT.dll__lseek]
mov dword [esp + 0x16], eax
mov ax, word [0x415d4c]
push ecx
push ecx
push esi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x2b], 0
mov dword [esp + 0x2c], edx
mov byte [esp + 0x30], 0
mov word [esp + 0x31], ax
mov byte [esp + 0x35], cl
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d447
mov ebp, dword [sym.imp.MSVCRT.dll__read]
push 7
push 0x418179
push esi
call ebp
add esp, 0xc
cmp eax, 7
jne 0x40d447
cmp word [0x418179], 0x6152
jne 0x40d447
cmp byte [0x41817b], 0x72
jne 0x40d447
xor edx, edx
push 0
mov dx, word [0x41817e]
push edx
push esi
call edi
xor ecx, ecx
add esp, 0xc
mov cx, word [0x41817e]
cmp eax, ecx
jne 0x40d447
push 0xd
push 0x418168
push esi
call ebp
add esp, 0xc
cmp eax, 0xd
jne 0x40d447
xor edx, edx
xor eax, eax
mov dx, word [0x41816d]
mov ax, word [0x41817e]
add edx, eax
push 0
push edx
push esi
call edi
xor ecx, ecx
xor edx, edx
mov cx, word [0x41816d]
mov dx, word [0x41817e]
add ecx, edx
add esp, 0xc
cmp eax, ecx
jne 0x40d447
push 0x20
push 0x418148
push esi
call ebp
add esp, 0xc
cmp eax, 0x20
jne 0x40d447
test byte [0x41814b], 4
je 0x40d447
mov eax, dword [0x418153]
mov ecx, dword [0x41814f]
cmp eax, ecx
ja 0x40d447
cmp eax, 0xa800
jb 0x40d447
cmp eax, 0xbc00
ja 0x40d447
cmp byte [0x418161], 0x30
jne 0x40d447
cmp word [0x418162], 0x12c
jae 0x40d438
xor eax, eax
xor ecx, ecx
mov ax, word [0x41816d]
mov cx, word [0x41817e]
push 0
lea edx, [eax + ecx + 0x20]
push edx
push esi
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d447
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ax, word [0x418162]
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
call ebp
xor edx, edx
add esp, 0xc
mov dx, word [0x418162]
cmp eax, edx
jne 0x40d447
lea eax, [esp + 0x2c]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40d438
mov al, byte [esp + 0xc]
inc ebp
xor edi, edi
push ebx
test al, al
je 0x40d42c
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [esp + 0x10]
lea esi, [esp + 0x10]
push ebp
push eax
call ebx
add esp, 8
test eax, eax
je 0x40d42c
mov cl, byte [esi + 5]
add esi, 5
inc edi
mov eax, esi
test cl, cl
jne 0x40d414
lea ecx, [esp + edi + 0x10]
pop ebx
lea edx, [ecx + edi*4]
test edx, edx
je 0x40d447
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14c
ret
Function at 0x410d50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x473dab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00468132
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410dd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00465dba
mov eax, dword [eax]
push 0x5a91d0
push eax
call fcn.00458184
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004683bd
test bl, bl
je 0x410dd2
push 0x5a91d0
lea ecx, [esp + 0xc]
call fcn.0046874d
push 0x5acd4c
lea ecx, [esp + 0xc]
call fcn.0046874d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x410e0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004683bd
jmp 0x410ed9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x410e92
lea edx, [esp + 0x7c]
push 0x5acd48
push edx
call fcn.00458184
add esp, 8
test eax, eax
je 0x410e92
lea eax, [esp + 0x7c]
push 0x5acd44
push eax
call fcn.00458184
add esp, 8
test eax, eax
je 0x410e92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410e22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004683bd
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4116d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x411732
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x411740
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x473e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5b3538]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x411878
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4117a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004683bd
xor eax, eax
jmp 0x4118ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004684fa
push esi
lea ecx, [esp + 0xc]
call fcn.00468789
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4118cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004116d0
test eax, eax
jne 0x4118cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.004116d0
test eax, eax
jne 0x4118cd
lea eax, [esp + 0x14]
push 0x5acd60
push eax
call fcn.004591c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4118ac
lea ecx, [esp + 0x14]
push 0x5acd5c
push ecx
call fcn.00459140
mov esi, eax
add esp, 8
test esi, esi
jne 0x4118ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4118af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004684aa
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4117be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004683bd
xor eax, eax
jmp 0x4118ef
mov byte [esi], 0
push 0x5acd58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004683bd
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4231a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x42320e
cmp si, 0x69
ja 0x42320e
add esi, 0xffd0
cmp si, 0x11
je 0x4231de
push 0x11
call edi
test ax, ax
jge 0x4231de
or esi, 0x2000
cmp si, 0x10
je 0x4231f3
push 0x10
call edi
test ax, ax
jge 0x4231f3
or esi, 0x4000
cmp si, 0x12
je 0x423208
push 0x12
call edi
test ax, ax
jge 0x423208
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42321b
mov esi, 0xbd
jmp 0x4231cf
cmp si, 0x6e
jne 0x423228
mov esi, 0xbe
jmp 0x4231cf
cmp si, 0x6f
jne 0x4231c9
mov esi, 0xbf
jmp 0x4231cf

Function at 0x424950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5c3c30]
xor edx, edx
cmp eax, edx
jne 0x424976
xor eax, eax
mov byte [eax + 0x5c3b30], al
inc eax
cmp eax, 0x100
jl 0x42495e
mov dword [0x5c3c30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5c3b30
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x424a07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4249da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4249a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x424a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x424ad3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x424aba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret