joyce8/EMBER2024-capa huggingface dataset:
Function at 0x32bd5d
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, esi
jne 0x32bd78
xor eax, eax
jmp 0x32bf60
sub ebx, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], eax
xor eax, eax
push 0x860
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push 7
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x80100000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
js 0x32bf5d
push esi
push dword [ebp - 4]
call fcn.0032bd16
push dword [ebp - 4]
cmp eax, 0xffffffff
je 0x32bf57
push 0x1000000
push 2
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf001f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
js 0x32bf54
cmp dword [ebp - 8], esi
je 0x32bf54
push 2
push esi
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
cmp eax, esi
jge 0x32be5c
cmp eax, 0x40000003
jne 0x32bf54
cmp ecx, esi
je 0x32bf54
cmp ebx, dword [ebp - 0x10]
ja 0x32bf54
mov eax, dword [ebp + 0x10]
lea edi, [ecx + ebx]
push 8
push edi
mov dword [ebp - 0x183], 0x1c
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f0], edi
call fcn.0032a43b
mov ebx, eax
lea eax, [ebx - 8]
pop ecx
pop ecx
cmp eax, 0x24
ja 0x32bf54
push ebx
lea eax, [ebp - 0x1ec]
push edi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x1f4]
sub eax, dword [ebp - 0x1f0]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18f]
push eax
lea eax, [ebp - 0x1ec]
push eax
push ebx
push dword [ebp - 0x1f0]
call fcn.0032a484
add esp, 0x20
test eax, eax
je 0x32bf54
mov eax, dword [ebp - 0x18f]
mov byte [ebp + eax - 0x1ec], 0xe9
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18f]
add eax, 0xfffffffb
mov dword [ebp + ecx - 0x1eb], eax
mov ebx, dword [ebp - 0x18f]
add ebx, 5
push ebx
push dword [ebp - 0x1f0]
call fcn.0032a69f
pop ecx
pop ecx
test eax, eax
je 0x32bf54
push ebx
lea eax, [ebp - 0x1ec]
push eax
push dword [ebp - 0x1f0]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, esi
je 0x32bf47
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
jmp 0x32bf5f
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x32bf8e
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 0x32bfbf
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
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 0x32bff9
mov eax, dword [edi]
add eax, ecx
push eax
call fcn.00346dca
pop ecx
mov ecx, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x32c00a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
add ebx, 2
cmp eax, dword [esi + 0x18]
jb 0x32bfd5
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
pop edi
pop ebx
cmp edx, dword [esi + 0x18]
jne 0x32bfb1
xor eax, eax
jmp 0x32bfbc
movzx eax, word [ebx]
jmp 0x32bffc

Function at 0x32c91a
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop ebp
ret

Function at 0x32c93b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x32c99a
cmp dword [ebp + 0xc], ebx
je 0x32c983
cmp dword [ebp + 0x10], ebx
je 0x32c983
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x32c985
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x32c99a
push dword [ebp + 8]
call fcn.0032c91a
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x32e793
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call sub.ntdll.dll_memset
push 0x356c34
mov dword [ebp - 4], 0x712f20
call fcn.00346dca
add esp, 0x10
push eax
push 0x356db8
call fcn.00346dca
pop ecx
push eax
push 0x325188
lea eax, [ebp - 0x44]
push 0x3f
push eax
call sub.ntdll.dll__snprintf
add esp, 0x14
push 0x10
xor edx, edx
pop esi
lea ecx, [ebp + edx - 0x44]
mov al, byte [ecx]
cmp al, 0x41
jl 0x32e7f3
add al, 0x14
jmp 0x32e7fa
test dl, 1
je 0x32e7fc
add al, 0x11
mov byte [ecx], al
inc edx
cmp edx, esi
jb 0x32e7e5
lea eax, [ebp - 0x44]
push eax
call fcn.00346dca
and eax, 0xf
lea edi, [eax + 0x10]
pop ecx
cmp edi, esi
jbe 0x32e832
lea eax, [ebp - 0x44]
push eax
call fcn.00346dca
pop ecx
xor edx, edx
push 0x1a
pop ecx
div ecx
add dl, 0x41
mov byte [ebp + esi - 0x44], dl
inc esi
cmp esi, edi
jb 0x32e815
cmp byte [0x357c1a], 0
je 0x32e865
lea eax, [ebp - 4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x32e840
mov edi, dword [ebp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x32e84d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x32e86d
push 2
sub eax, edx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push 1
push eax
push 0x3253bc
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueA]
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x32e895
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x356c34
call fcn.00346dca
pop ecx
push eax
push 0x356db8
call fcn.00346dca
pop ecx
push eax
push 0x325188
lea eax, [ebp - 0x20]
push 0x1f
push eax
call sub.ntdll.dll__snprintf
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
push 0x3253bc
push 0x80000001
mov byte [ebp - 1], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x32eb6b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x32eb7f
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
sub eax, ecx
push ebx
mov dword [ebp - 0x10], eax
call edi
mov esi, eax
cmp esi, ebx
je 0x32ecd3
lea eax, [esi + 1]
test eax, eax
je 0x32ebbe
lea eax, [esi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
jmp 0x32ebc1
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x32ecd3
push ebx
push esi
call edi
test eax, eax
je 0x32ecd3
add esi, ebx
mov dword [ebp - 0x14], esi
cmp ebx, esi
jmp 0x32ec3c
mov esi, dword [ebp - 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x32ebe9
sub eax, edx
je 0x32ecad
lea ebx, [eax + esi - 1]
push 0x64
lea eax, [ebp - 0x7c]
push eax
push esi
mov byte [ebx], cl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x32ec36
lea eax, [ebp - 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x32ec15
sub eax, edx
mov dword [ebp - 0x18], eax
je 0x32ec36
cmp eax, dword [ebp - 0x10]
jae 0x32ec36
mov edi, dword [ebp + 8]
mov ecx, eax
lea esi, [ebp - 0x7c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x32ec43
add ebx, 2
cmp ebx, dword [ebp - 0x14]
mov dword [ebp - 8], ebx
jb 0x32ebe1
jmp 0x32ecad
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0
push dword [ebp + 0xc]
call sub.ntdll.dll_memset
mov edi, dword [ebp - 8]
add esp, 0xc
test edi, edi
je 0x32eca0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x32ec61
sub eax, edx
je 0x32eca0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x32ec71
mov ecx, dword [esi]
sub eax, edx
cmp eax, ecx
jb 0x32ec85
lea eax, [ecx - 1]
jmp 0x32ec93
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x32ec8a
sub eax, edx
push eax
push edi
push dword [ebp + 0xc]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x18]
inc eax
mov dword [esi], eax
mov dword [ebp - 0xc], 1
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x32ecd3
push dword [ebp - 4]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x32ecdb
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x32ecfc
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
mov esi, 0x7fffffff
cmp dword [ebp + 0x18], ebx
jg 0x32ed17
cmp dword [ebp + 0x18], esi
je 0x32ed17
push ebx
push 0x80
push 2
jmp 0x32ed1f
push ebx
push 0x80
push 4
push ebx
push 7
push 0x40000000
push edi
call dword [ebp + 8]
mov edi, eax
cmp edi, 0xffffffff
je 0x32ed61
cmp dword [ebp + 0x18], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
jne 0x32ed44
push ebx
push edi
call esi
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], ebx
jle 0x32ed68
push ebx
push ebx
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x32ed68
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x32ed5a
push ebx
push edi
call esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x32ed63

Function at 0x32ed8f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x32eda1
mov dword [edi], ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 0xc]
call dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
cmp esi, ebx
je 0x32edc6
cmp esi, 0xffffffff
jne 0x32edd0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [ebp + 0x10], 0xffffffff
je 0x32ee09
cmp edi, ebx
je 0x32ee25
lea eax, [esi + 1]
test eax, eax
je 0x32edf6
lea eax, [esi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x32edf8
xor eax, eax
mov dword [edi], eax
cmp eax, ebx
jne 0x32ee10
push dword [ebp + 0x10]
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov byte [esi + eax], bl
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x32ee0b

Function at 0x32f7b6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x32f7d6
mov ecx, dword [ebp + 8]
mov dl, byte [eax + ecx]
xor dl, 0x4c
sub dl, byte [eax + ecx - 1]
mov byte [eax + ecx], dl
dec eax
test eax, eax
jg 0x32f7c4
pop ebp
ret
Function at 0x32f9c1
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], edi
je 0x32fae7
push ebx
mov eax, dword [ebp + 8]
mov al, byte [eax]
dec dword [ebp + 0xc]
mov byte [ebp + esi - 4], al
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
inc esi
inc dword [ebp + 8]
cmp esi, 3
jne 0x32fa5c
mov dl, cl
shr dl, 2
mov byte [ebp - 8], dl
mov dl, cl
and dl, 3
shl dl, 4
mov bl, al
shr bl, 4
add dl, bl
mov bl, byte [ebp - 2]
mov byte [ebp - 7], dl
mov dl, al
and dl, 0xf
shr bl, 6
shl dl, 2
add dl, bl
mov byte [ebp - 6], dl
mov dl, byte [ebp - 2]
mov bl, dl
and bl, 0x3f
and dword [ebp - 0xc], 0
mov byte [ebp - 5], bl
mov esi, dword [ebp - 0xc]
movzx esi, byte [ebp + esi - 8]
mov bl, byte [esi + 0x323788]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov byte [esi + edi], bl
mov edi, esi
inc edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
mov dword [ebp - 0x10], edi
jl 0x32fa34
xor esi, esi
cmp dword [ebp + 0xc], 0
jne 0x32f9da
test esi, esi
je 0x32fae6
cmp esi, 3
jge 0x32fa8d
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 4]
push 0
push eax
call sub.ntdll.dll_memset
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
add esp, 0xc
mov bl, cl
shr bl, 2
and cl, 3
mov byte [ebp - 8], bl
mov bl, al
shl cl, 4
shr bl, 4
add cl, bl
mov byte [ebp - 7], cl
and al, 0xf
mov cl, dl
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 6], al
and dl, 0x3f
lea eax, [esi + 1]
xor ecx, ecx
mov byte [ebp - 5], dl
test eax, eax
jle 0x32fada
movzx edx, byte [ebp + ecx - 8]
mov dl, byte [edx + 0x323788]
mov ebx, dword [ebp + 0x10]
mov byte [edi + ebx], dl
inc edi
inc ecx
cmp ecx, eax
jl 0x32fac3
cmp esi, 3
jge 0x32fae6
mov eax, dword [ebp + 0x10]
mov byte [edi + eax], 0x3d
pop ebx
mov eax, dword [ebp + 0x10]
mov byte [edi + eax], 0
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x3301f5
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x330d52
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 esi, esi
mov ebx, 0x40000000
jmp 0x330d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x330dc6
push 0x4e20
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x330dc6
push esi
push esi
push 3
push esi
push esi
push ebx
push dword [ebp + 0xc]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x330d69
push esi
lea eax, [ebp - 8]
push eax
push 0x68
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x330dc6
cmp dword [ebp - 8], 0x68
jne 0x330dc6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x330dd1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x330dd6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x330ea9
push 0x124
lea eax, [ebp - 0x124]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push esi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x330e9e
lea eax, [ebp - 0x104]
push eax
call fcn.00346dca
cmp dword [ebp - 0x120], 0
pop ecx
je 0x330e91
cmp eax, 0x9e7d3072
je 0x330e91
cmp eax, 0x353ecbfa
je 0x330e91
cmp eax, 0x563eb7fa
je 0x330e91
cmp eax, 0x43048a33
je 0x330e91
push 0x356c34
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x330e91
push dword [ebp - 0x120]
lea eax, [ebp - 0x18c]
push 0x64
push eax
call fcn.00330b22
lea eax, [ebp - 0x18c]
push eax
push dword [ebp + 8]
call fcn.00330d52
add esp, 0x14
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x330e23
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x3310e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [edi], esi
mov dword [eax], esi
mov ebx, 0x325548
jmp 0x331124
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xe7
jne 0x3311fb
push 0x4e20
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x3311fb
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x3310fd
mov ebx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 4]
push eax
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3311e4
cmp dword [ebp - 4], 4
jne 0x3311e4
mov eax, dword [ebx]
cmp eax, esi
je 0x3311fb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
cmp eax, esi
je 0x3311fb
push esi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push dword [ecx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3311b6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jne 0x3311b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x331206
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
cmp eax, esi
je 0x331204
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x331204
push dword [edi]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], esi
jmp 0x331204
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
cmp eax, esi
je 0x331204
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jmp 0x3311c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x331fab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
not eax
mov edx, 0xff
cmp edi, 8
jb 0x332066
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x3237f0]
add ecx, 8
sub edi, 8
dec esi
jne 0x331fc9
pop ebx
test edi, edi
je 0x33207f
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x3237f0]
inc ecx
dec edi
jne 0x33206a
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x332085
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x3237f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x3237f0]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x33210d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [esi], 1
push edi
mov edi, eax
jne 0x33213f
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x33213a
and dword [ebp - 4], eax
mov dword [esi + 8], 7
mov eax, dword [ebp - 4]
jmp 0x332167
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x332150
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.ntdll.dll_memcpy
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
pop edi
leave
ret
Function at 0x332ac9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
cmp byte [eax], 0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x332af5
cmp byte [eax + 1], 0x3a
jne 0x332af5
add eax, 2
cmp byte [eax], 0x5c
jne 0x332afb
inc eax
push esi
jmp 0x332b4a
cmp cl, 0x5c
je 0x332b1b
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x332afe
xor esi, esi
test esi, esi
jne 0x332b1f
cmp dword [ebp + 0xc], esi
jne 0x332b22
xor eax, eax
inc eax
pop esi
leave
ret
mov esi, eax
jmp 0x332b0c
mov byte [esi], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x332b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x332b52
test esi, esi
je 0x332b15
mov byte [esi], 0x5c
lea eax, [esi + 1]
mov cl, byte [eax]
test cl, cl
jne 0x332afe
jmp 0x332b15
test esi, esi
je 0x332b59
mov byte [esi], 0x5c
xor eax, eax
jmp 0x332b18

Function at 0x332b77
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
cmp word [eax], di
je 0x332ba8
cmp word [eax + 2], 0x3a
jne 0x332ba8
add eax, 4
push 0x5c
pop ebx
cmp word [eax], bx
jne 0x332bfe
add eax, 2
jmp 0x332bfe
push ebx
call fcn.00332b5d
mov esi, eax
pop ecx
cmp esi, edi
jne 0x332bcf
cmp dword [ebp + 0xc], edi
jne 0x332bd4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x332bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x332c05
cmp esi, edi
je 0x332bc7
mov eax, ebx
mov word [esi], ax
lea eax, [esi + 2]
cmp word [eax], di
jne 0x332bb5
jmp 0x332bc7
cmp esi, edi
je 0x332c0c
mov word [esi], bx
xor eax, eax
jmp 0x332bca