joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str..mailslotAE7FA593_96B0_4eae_8E2B_4295A3650A96
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x40437c], eax
cmp eax, 0xffffffff
jne 0x4014ce
mov edi, str.CreateFile_failed
call fcn.00401000
xor al, al
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004017ea
add esp, 0x808
ret
cmp byte [0x404380], 0
mov edi, dword [sym.imp.MSVCR90.dll_wcscat_s]
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_wcscpy_s]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x4015eb
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call sub.MSVCR90.dll_memset
push 0x405b88
lea edx, [esp + 0x20]
push 0x400
push edx
call ebx
push str.____exec
lea eax, [esp + 0x2c]
push 0x400
push eax
call edi
push 0x404388
lea ecx, [esp + 0x38]
push 0x400
push ecx
call edi
push str.__para__byApp_
lea edx, [esp + 0x44]
push 0x400
push edx
call edi
add esp, 0x3c
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x40437c]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
test eax, eax
je 0x401671
push esi
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x1e]
push eax
mov word [esp + 0x20], dx
call sub.MSVCR90.dll_memset
push 0x405b88
lea ecx, [esp + 0x24]
push 0x400
push ecx
call ebx
push str.____exec
lea edx, [esp + 0x30]
push 0x400
push edx
call edi
push 0x404b88
lea eax, [esp + 0x3c]
push 0x400
push eax
call edi
push str.__para__register_associations_force_
lea ecx, [esp + 0x48]
push 0x400
push ecx
call edi
add esp, 0x3c
lea esi, [esp + 0x14]
call fcn.004010e0
pop esi
test eax, eax
je 0x40167b
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call sub.MSVCR90.dll_memset
push 0x405b88
lea ecx, [esp + 0x20]
push 0x400
push ecx
call ebx
push str.____exec
lea edx, [esp + 0x2c]
push 0x400
push edx
call edi
push 0x405388
lea eax, [esp + 0x38]
push 0x400
push eax
call edi
push str.__para__byApp_
lea ecx, [esp + 0x44]
push 0x400
push ecx
call edi
add esp, 0x3c
push 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
mov eax, dword [0x40437c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call ebp
test eax, eax
jne 0x401695
mov edi, str.WriteFile_failed
call fcn.00401000
pop ebp
pop ebx
xor al, al
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004017ea
add esp, 0x808
ret
mov ecx, dword [esp + 0x810]
pop ebp
pop ebx
pop edi
xor ecx, esp
mov al, 1
call fcn.004017ea
add esp, 0x808
ret
Function at 0x4016b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x124]
cmp word [eax], 0
je 0x40170c
mov ecx, str.__rundirect
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4016fc
test dx, dx
je 0x4016f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4016d6
xor eax, eax
jmp 0x401701
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40170c
mov byte [0x404380], 1
call fcn.004011e0
push 0x114
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x401748
call fcn.00401070
cmp eax, 1
jne 0x401782
cmp byte [0x404380], 0
jne 0x40175f
call fcn.00401300
call fcn.00401370
test al, al
je 0x401768
call fcn.004013f0
test al, al
jne 0x4017b7
or eax, 0xffffffff
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004017ea
add esp, 0x118
ret 0x10
call fcn.00401470
test al, al
jne 0x4017b7
call fcn.00401120
test al, al
jne 0x4017b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x401768
push 0
push 0x40343c
push str._u7b
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401768
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.004017ea
add esp, 0x118
ret 0x10

Function at 0x4017ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4017f4
repz ret
jmp fcn.00401b0d
Function at 0x812720
Capabilities:
Encode data using xor

Disassembly:
jmp 0x81272a
pushal
call 0x812730
pop ebp
sub ebp, 0x10
sub ebp, 0x412720
jmp 0x812746
mov eax, 0x412720
add eax, ebp
add eax, 0x4c
mov ecx, 0x60a
mov edx, 0x4220e52a
xor byte [eax], dl
inc eax
dec ecx
jne 0x81275d
jmp 0x812770
mov eax, dword [0x16a3a1e7]
sub ch, byte [edx]
sub ch, byte [ebx + 0x2a2ad2eb]
sub ch, byte [ecx]
out 0x92, eax
sub al, 0x2a
sub ch, byte [edx]
nop
add ch, byte [edx]
sub ch, byte [edx]
invalid
Function at 0x5f29be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5f29ec
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5f29f3
cmp ebx, dword [eax + 4]
jae 0x5f29f3
xor eax, eax
jmp 0x5f2be3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5f2a04
xor eax, eax
inc eax
jmp 0x5f2be2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5f2a1a
cmp ecx, edx
jae 0x5f2b5f
cmp dword [eax + 4], 0
je 0x5f2a23
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5f2a0b
cmp dword [ebp + 8], 0
je 0x5f2a45
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5f2b5f
cmp eax, esi
jae 0x5f2b5f
mov eax, dword [0x746580]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5f2a6a
cmp dword [esi*4 + 0x746588], edi
je 0x5f2b63
inc esi
cmp esi, eax
jl 0x5f2a58
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x5f62a0]
test eax, eax
je 0x5f2bdf
cmp dword [ebp - 8], 0x1000000
jne 0x5f2bdf
test byte [ebp - 0xc], 0xcc
je 0x5f2ae8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5f2bdf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5f2bdf
cmp word [eax + 0x18], 0x10b
jne 0x5f2bdf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5f2bdf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5f2ae8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5f2ae8
test byte [ecx + 0x27], 0x80
jne 0x5f2b5f
push 1
push 0x7465c8
call dword [0x5f62a4]
test eax, eax
jne 0x5f29fc
mov ecx, dword [0x746580]
test ecx, ecx
mov edx, ecx
jle 0x5f2b1c
lea eax, [ecx*4 + 0x746584]
cmp dword [eax], edi
je 0x5f2b1c
dec edx
sub eax, 4
test edx, edx
jg 0x5f2b10
test edx, edx
jne 0x5f2b4d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5f2b29
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5f2b41
lea eax, [edx*4 + 0x746588]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5f2b2f
cmp ecx, 0x10
jge 0x5f2b4d
inc ecx
mov dword [0x746580], ecx
push 0
push 0x7465c8
call dword [0x5f62a4]
jmp 0x5f29fc
xor eax, eax
jmp 0x5f2be2
test esi, esi
jle 0x5f29fc
mov ebx, dword [0x5f62a4]
push 1
push 0x7465c8
call ebx
test eax, eax
jne 0x5f29fc
cmp dword [esi*4 + 0x746588], edi
je 0x5f2bb9
mov eax, dword [0x746580]
lea esi, [eax - 1]
test esi, esi
jl 0x5f2ba7
cmp dword [esi*4 + 0x746588], edi
je 0x5f2ba3
dec esi
jns 0x5f2b97
test esi, esi
jge 0x5f2bb7
cmp eax, 0x10
jge 0x5f2bb2
inc eax
mov dword [0x746580], eax
lea esi, [eax - 1]
jmp 0x5f2bb9
je 0x5f2bd1
xor ecx, ecx
test esi, esi
jl 0x5f2bd1
lea eax, [ecx*4 + 0x746588]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5f2bbf
push 0
push 0x7465c8
call ebx
jmp 0x5f29fc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x77a6d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret
Function at 0x77a770
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0x408], eax
push 0x1ff
lea eax, [esp + 0x20d]
push 0
push eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x214], 0
call fcn.00786f70
push 0x1ff
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00786f70
add esp, 0x18
push 0x200
lea edx, [esp + 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x208]
mov word [esp + 8], 0x22
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x77a7e6
push esi
push edi
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x77a800
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
pop edi
add eax, 0xffffffff
pop esi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x77a821
mov ecx, dword [0x774868]
mov dl, byte [0x77486c]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x77484c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x77a89f
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x77a870
sub eax, edx
add eax, 1
push eax
mov eax, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00786f61
add esp, 0x40c
ret
mov eax, dword [0x7732ec]
add dword [0x7732f0], eax
add dword [0x7732f4], eax
call fcn.0077ba50
push 0x77bd50
push 0x774948
push 0x774938
call fcn.0077bb20
push 0x77bca0
push 0x774928
push 0x77491c
call fcn.0077bb20
push 0x77be30
push 0x774910
push 0x774938
call fcn.0077bb20
add esp, 0x24
jmp 0x77a770

Function at 0x77a8c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
push 0
push 0
push 0
push esi
mov ebx, eax
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 3
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push ebx
push esi
call edi
movzx eax, byte [esp + 0xc]
sub eax, 0x52
pop edi
pop esi
pop ebx
jne 0x77a922
movzx eax, byte [esp + 1]
sub eax, 0x4f
jne 0x77a922
movzx eax, byte [esp + 2]
sub eax, 0x43
je 0x77a937
test eax, eax
mov ecx, 1
jg 0x77a939
or ecx, 0xffffffff
test ecx, ecx
sete al
add esp, 8
ret
xor ecx, ecx
test ecx, ecx
sete al
add esp, 8
ret
Function at 0x77b2a0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub esp, 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
xor eax, eax
push eax
push 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x77b34e
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x77b34e
push ebx
mov bl, byte [esp + 0x30]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x20], ecx
jne 0x77b336
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x77b336
push eax
push 0
push 0x1f03ff
call dword [0x794228]
test eax, eax
je 0x77b336
test bl, bl
push eax
je 0x77b330
call ebp
jmp 0x77b336
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x77b303
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x77b530
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x7941b0]
push ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push edi
push 0x25
lea esi, [eax + 6]
push esi
lea edi, [eax + 0x56]
push edi
push 0
call ebx
cmp eax, 2
jne 0x77b559
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0077b360
test al, al
jne 0x77b5a6
push 0x25
push esi
push edi
push 0
call ebx
cmp eax, 2
jne 0x77b577
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0077b360
test al, al
jne 0x77b5a6
push 0x25
push esi
push edi
push 0
call ebx
cmp eax, 2
jne 0x77b595
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0077b360
test al, al
jne 0x77b5a6
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x77b630
Capabilities:
Create thread
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x793b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0x1fc], eax
push esi
push edi
mov eax, dword [0x773564]
xor eax, esp
push eax
lea eax, [esp + 0x20c]
mov dword fs:[0], eax
mov eax, dword [0x7941b4]
mov edi, dword [esp + 0x21c]
lea ecx, [eax + 0x48]
mov dword [0x7941ac], ecx
add ecx, 0x30
mov dword [0x7941b0], ecx
add ecx, 0x1e8
mov dword [0x7941b8], ecx
mov ecx, dword [0x7941bc]
add ecx, 0xfffffd98
mov dword [0x7941a8], eax
mov dword [0x7941c0], ecx
cmp word [eax + 0x1a], 0x301
jne 0x77b6bb
call fcn.0077a950
test al, al
jne 0x77b6c2
xor al, al
jmp 0x77b7e5
lea ecx, [esp + 0x10]
call fcn.0077c940
mov edx, dword [0x7941c0]
push edx
mov dword [esp + 0x218], 0
call fcn.0077a6d0
add esp, 4
push 0x48
push 0x7941c8
lea ecx, [esp + 0x198]
mov esi, eax
call fcn.0077c8e0
mov ecx, dword [eax]
mov dword [esp + 0x1f8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1fc], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x200], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x1f8]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x208], edx
call fcn.0077c960
mov ecx, dword [0x7941c0]
mov edx, dword [0x7941b8]
push ecx
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.0077c9a0
mov eax, dword [0x7941c0]
mov ecx, dword [0x7941b8]
push eax
push esi
push ecx
call fcn.00787470
push esi
call fcn.0077a6f0
add esp, 0x10
push 0
push edi
mov dword [0x794210], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x7941b8]
mov dword [0x794214], eax
mov eax, dword [0x7941c0]
mov dword [0x794220], eax
mov eax, dword [0x7941b0]
mov dword [0x79421c], edx
cmp word [eax], 1
jne 0x77b7cf
mov ecx, dword [eax + 2]
test ecx, ecx
jbe 0x77b7cf
cmp ecx, 0x13880
jae 0x77b7cf
mov edx, dword [eax + 2]
imul edx, edx, 0x3e8
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push 0x77b5b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x794224], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x214], 0xffffffff
call fcn.0077c950
mov al, 1
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1fc]
xor ecx, esp
call fcn.00786f61
add esp, 0x20c
ret
Function at 0x77b810
Capabilities:
Get file size
Read file on windows
Terminate thread

Disassembly:
sub esp, 0x208
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [0x7941b4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x218]
push edi
xor edi, edi
cmp eax, edi
je 0x77b849
push eax
call fcn.0077a6f0
add esp, 4
mov dword [0x7941b4], edi
mov eax, dword [0x794224]
cmp eax, edi
je 0x77b85a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
push edi
push esi
mov dword [0x794210], eax
mov dword [0x794214], eax
mov dword [0x794218], eax
mov dword [0x79421c], eax
mov dword [0x794220], eax
mov dword [0x794224], eax
mov dword [0x7941c4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x220]
sub eax, ebx
push eax
mov dword [0x7941bc], eax
call fcn.0077a6d0
add esp, 4
push 1
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov dword [0x7941b4], eax
call edi
push 0
push 0
push ebx
push esi
mov ebp, eax
call edi
mov ecx, dword [0x7941bc]
mov edx, dword [0x7941b4]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push ebp
push esi
call edi
push esi
call fcn.0077b630
add esp, 4
test al, al
pop edi
pop esi
pop ebp
pop ebx
jne 0x77b91d
mov eax, dword [0x7941c4]
push eax
lea ecx, [esp + 8]
push 0x7748f0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x7748e4
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00786f61
add esp, 0x208
ret

Function at 0x77b940
Capabilities:
Get file size
Terminate thread

Disassembly:
sub esp, 0x20c
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [0x7941b4]
push esi
mov esi, dword [esp + 0x214]
push edi
xor edi, edi
cmp eax, edi
je 0x77b977
push eax
call fcn.0077a6f0
add esp, 4
mov dword [0x7941b4], edi
mov eax, dword [0x794224]
cmp eax, edi
je 0x77b988
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
push edi
push esi
mov dword [0x794210], eax
mov dword [0x794214], eax
mov dword [0x794218], eax
mov dword [0x79421c], eax
mov dword [0x794220], eax
mov dword [0x794224], eax
mov dword [0x7941c4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [0x7941bc], eax
call fcn.0077a6d0
mov ecx, dword [0x7941bc]
add esp, 4
push edi
push edi
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push edi
push edi
push edi
push esi
mov dword [0x7941b4], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [fcn.00794234]
test eax, eax
jne 0x77ba31
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.0077b630
add esp, 4
test al, al
jne 0x77ba31
mov eax, dword [0x7941c4]
push eax
lea ecx, [esp + 0x14]
push 0x7748f0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x7748e4
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.00786f61
add esp, 0x20c
ret
Function at 0x77bf00
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0x408], eax
push 0x1ff
lea eax, [esp + 0x20d]
push 0
push eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x214], 0
call fcn.00786f70
push 0x1ff
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00786f70
add esp, 0x18
push 0x200
lea edx, [esp + 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x208]
mov word [esp + 8], 0x22
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x77a7e6
push esi
push edi
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x77a800
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
pop edi
add eax, 0xffffffff
pop esi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x77a821
mov ecx, dword [0x774868]
mov dl, byte [0x77486c]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x77484c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x77a89f
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x77a870
sub eax, edx
add eax, 1
push eax
mov eax, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00786f61
add esp, 0x40c
ret
mov eax, dword [0x7732ec]
add dword [0x7732f0], eax
add dword [0x7732f4], eax
call fcn.0077ba50
push 0x77bd50
push 0x774948
push 0x774938
call fcn.0077bb20
push 0x77bca0
push 0x774928
push 0x77491c
call fcn.0077bb20
push 0x77be30
push 0x774910
push 0x774938
call fcn.0077bb20
add esp, 0x24
jmp 0x77a770

Function at 0x77c8e0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 0x10]
push 0
push eax
call fcn.00786f70
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 0xc
push ecx
push edx
mov ecx, esi
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x58], 0x67452301
mov dword [esi + 0x5c], 0xefcdab89
mov dword [esi + 0x60], 0x98badcfe
mov dword [esi + 0x64], 0x10325476
call fcn.0077c760
mov ecx, esi
call fcn.0077c810
pop esi
ret 8
Function at 0x7821c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov ecx, 6
lea esi, [esp + 0x2c]
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov al, byte [esp + 9]
xor al, byte [esp + 0xa]
pop edi
xor al, byte [esp + 7]
pop esi
xor al, byte [esp + 4]
xor al, byte [esp + 5]
xor ecx, ecx
jmp 0x782200
mov dl, byte [esp + ecx + 6]
xor dl, byte [esp + ecx + 7]
add ecx, 6
xor dl, byte [esp + ecx + 2]
xor dl, byte [esp + ecx + 3]
xor dl, byte [esp + ecx + 5]
xor dl, byte [esp + ecx + 4]
xor al, dl
cmp ecx, 0x12
jl 0x782200
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00786f61
add esp, 0x20
ret

Function at 0x782500
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [esp + 0x44]
mov eax, ebx
imul eax, eax, 0x126
cmp dword [eax + 0x798370], 0
push esi
push edi
jne 0x78253f
mov eax, 0xa2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00786f61
add esp, 0x3c
ret 4
lea ecx, [esp + 0xc]
push 0x19
push ecx
call fcn.00781e50
mov cl, 0x2c
add esp, 8
mov byte [esp + 0xd], 0xa
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], cl
xor eax, eax
jmp 0x782570
xor byte [esp + eax + 0x12], cl
add eax, 1
cmp eax, 0x12
jl 0x782570
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x28]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.007821c0
lea edx, [esp + 0x44]
mov byte [esp + 0x40], al
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00782010
mov ecx, dword [esp + 0x6c]
add esp, 0x28
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00786f61
add esp, 0x3c
ret 4