joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2884
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a2896
add esp, 0xfffffff0
call fcn.00403cf8
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404cfc
xor eax, eax
push ebp
push 0x4a294f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403990
lea eax, [esi + 0x7c]
mov edx, dword [ebp - 4]
call fcn.004048a0
mov byte [esi + 0xa0], 0
mov byte [esi + 0xa1], 1
lea eax, [esi + 0x1c]
xor ecx, ecx
mov edx, 0xc
call fcn.00403334
mov dword [esi + 0x1c], 0xc
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0xffffffff
push 0x400
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
call sub.kernel32.dll_CreatePipe
push 0x400
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
push 0x400
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x14]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2956
lea eax, [ebp - 4]
call fcn.0040484c
ret

Function at 0x4a29c4
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40c], ebx
mov edi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4a2a71
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 4], 0
jbe 0x4a2a58
cmp dword [ebp - 4], 0x400
jbe 0x4a2a14
mov dword [ebp - 4], 0x400
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
call sub.kernel32.dll_ReadFile
push edi
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x408]
mov ecx, 0x400
call fcn.0040493c
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 8]
mov edx, 1
call fcn.00404d6c
mov esi, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2a78
lea eax, [ebp - 0x40c]
call fcn.0040484c
ret
Function at 0x4a2a84
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a2c73
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0xa2], 0
lea eax, [ebx + 0x38]
xor ecx, ecx
mov edx, 0x44
call fcn.00403334
mov dword [ebx + 0x38], 0x44
cmp byte [ebx + 0xa1], 0
je 0x4a2ac8
mov word [ebx + 0x68], 0
jmp 0x4a2ace
mov word [ebx + 0x68], 0xa
mov dword [ebx + 0x64], 0x101
mov eax, dword [ebx + 4]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x78], eax
lea eax, [ebx + 0x28]
push eax
lea eax, [ebx + 0x38]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebx + 0x7c]
call fcn.00404d0c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a2c5d
mov byte [ebx + 0xa0], 1
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 0x2c]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4a2bc7
cmp byte [ebx + 0xa2], 0
je 0x4a2b57
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_TerminateProcess
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.004a29c4
test eax, eax
jle 0x4a2b83
cmp word [ebx + 0x82], 0
je 0x4a2b83
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.004a29c4
test eax, eax
jle 0x4a2baf
cmp word [ebx + 0x8a], 0
je 0x4a2baf
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
cmp word [ebx + 0x92], 0
je 0x4a2bc7
mov edx, ebx
mov eax, dword [ebx + 0x94]
call dword [ebx + 0x90]
push 0xa
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4a2b43
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.004a29c4
test eax, eax
jle 0x4a2c09
cmp word [ebx + 0x82], 0
je 0x4a2c09
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.004a29c4
test eax, eax
jle 0x4a2c35
cmp word [ebx + 0x8a], 0
je 0x4a2c35
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebx + 0xa0], 0
cmp word [ebx + 0x9a], 0
je 0x4a2c5d
mov edx, ebx
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2c7a
lea eax, [ebp - 4]
call fcn.0040484c
ret
Function at 0x4a9914
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41b55c]
call fcn.00405350
xor eax, eax
push ebp
push 0x4a9a58
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e258c], 0
jne 0x4a9967
mov ecx, dword [0x4e3334]
mov dl, 1
mov eax, dword [0x408274]
call fcn.0040d914
call fcn.00404224
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403334
mov eax, ebx
call fcn.00405104
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4a9a68
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040670c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405114
test eax, eax
jle 0x4a99ff
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a99f8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404ad4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404abc
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040917c
test eax, eax
jne 0x4a99f8
mov ebx, 0x15
jmp 0x4a9a04
mov ebx, 0x10
jmp 0x4a9a04
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e258c]
call fcn.004a986c
mov eax, dword [ebp - 8]
call fcn.004a986c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9a5f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404870
lea eax, [ebp - 0x10]
mov edx, dword [0x41b55c]
call fcn.00405420
ret

Function at 0x4bfc70
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4bfc95
cmp dword [esp + 4], 5
jb 0x4bfc95
mov al, 1
jmp 0x4bfc97
xor eax, eax
add esp, 0x94
ret
Function at 0x4d499c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
xor ebx, ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ebx
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cfc
lea eax, [ebp - 0x164]
mov edx, dword [0x408254]
call fcn.00405350
xor eax, eax
push ebp
push 0x4d4ba9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 7], 1
mov eax, dword [ebp - 4]
call fcn.00474238
test al, al
je 0x4d4b72
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 4]
call fcn.004d4940
lea eax, [ebp - 0x168]
mov edx, 0x4d4bc0
call fcn.00404b14
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
mov edx, 0x3f
call fcn.00409e68
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d4b5a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x4d4b41
mov eax, dword [ebp - 0x158]
mov edx, 0x4d4bcc
call fcn.00404c58
je 0x4d4b29
mov eax, dword [ebp - 0x158]
mov edx, 0x4d4bd8
call fcn.00404c58
je 0x4d4b29
push 0x80
lea edx, [ebp - 0x16c]
mov eax, dword [ebp - 4]
call fcn.004d4940
lea eax, [ebp - 0x16c]
mov edx, dword [ebp - 0x158]
call fcn.00404b14
mov eax, dword [ebp - 0x16c]
call fcn.00404d0c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x4d4af6
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 4]
call fcn.004d4940
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 0x158]
call fcn.00404b14
mov eax, dword [ebp - 0x170]
mov cl, byte [ebp - 6]
mov dl, 1
call fcn.004d499c
mov byte [ebp - 7], al
jmp 0x4d4b29
cmp byte [ebp - 6], 0
jne 0x4d4b29
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.004d4940
lea eax, [ebp - 0x174]
mov edx, dword [ebp - 0x158]
call fcn.00404b14
mov eax, dword [ebp - 0x174]
call fcn.00409ef8
mov byte [ebp - 7], al
lea eax, [ebp - 0x164]
call fcn.00409eb8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d4a53
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4b61
lea eax, [ebp - 0x164]
call fcn.00409edc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4bb0
lea eax, [ebp - 0x174]
mov edx, 4
call fcn.00404870
lea eax, [ebp - 0x164]
mov edx, dword [0x408254]
call fcn.00405420
lea eax, [ebp - 4]
call fcn.0040484c
ret
Function at 0x4d4cf4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
xor edx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d4df6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00408fc4
xor edx, edx
mov eax, 2
call fcn.004a2f34
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x144], 0x128
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x18]
call fcn.004a2f54
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
jmp 0x4d4dca
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404abc
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x10]
call fcn.00408fc4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00404e50
test eax, eax
jle 0x4d4db3
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_TerminateProcess
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x18]
call fcn.004a2f74
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d4d59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4dfd
lea eax, [ebp - 0x148]
call fcn.0040484c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404870
ret

Function at 0x4d4ea0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov edx, 0x4e4e38
xor ebx, ebx
cmp ebx, 0x100
je 0x4d4ed3
mov eax, ebx
mov ecx, 8
test eax, 1
je 0x4d4ec7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d4ec9
shr eax, 1
loop 0x4d4eb7
mov dword [edx], eax
add edx, 4
inc ebx
jmp 0x4d4ea8
pop ebx
ret

Function at 0x4d4ed8
Capabilities:
Encode data using xor

Disassembly:
or edx, edx
je 0x4d4efa
jecxz 0x4d4efa
push esi
push ebx
mov esi, 0x4e4e38
movzx ebx, al
xor bl, byte [edx]
shr eax, 8
and eax, 0xffffff
xor eax, dword [esi + ebx*4]
inc edx
loop 0x4d4ee5
pop ebx
pop esi
ret
Function at 0x4d4efc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffd8
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00404d0c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x4d5065
xor eax, eax
push ebp
push 0x4d505e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 4]
jne 0x4d4f7a
cmp eax, dword [ebp - 8]
jbe 0x4d4f8a
jmp 0x4d4f7c
jle 0x4d4f8a
mov byte [ebp - 0x11], 0
call fcn.004042d0
jmp 0x4d5065
cmp dword [ebp + 0xc], 0
jne 0x4d4f98
cmp dword [ebp + 8], 0
jbe 0x4d4fa8
jmp 0x4d4f9a
jle 0x4d4fa8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x4d4fba
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub eax, dword [ebp + 0x10]
sbb edx, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x10]
not dword [eax]
push 0
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_SetFilePointer
jmp 0x4d5032
cmp dword [ebp - 0x24], 0
jne 0x4d4fe5
cmp dword [ebp - 0x28], 0x1000
jbe 0x4d4ff0
jmp 0x4d4fe7
jle 0x4d4ff0
mov dword [ebp - 0x1c], 0x1000
jmp 0x4d4ff6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1028]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReadFile
lea edx, [ebp - 0x1028]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.004d4ed8
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
cdq
sub dword [ebp - 0x28], eax
sbb dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x4d5040
cmp dword [ebp - 0x28], 0
ja 0x4d4fd4
jmp 0x4d5042
jg 0x4d4fd4
mov eax, dword [ebp - 0x10]
not dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5065
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d5248
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404cfc
mov eax, dword [ebp + 8]
call fcn.00404cfc
xor eax, eax
push ebp
push 0x4d52e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409ce0
test al, al
je 0x4d529a
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404d0c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00409ef8
mov edx, esi
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebx + 0x3c]
mov edx, dword [ebp - 4]
call fcn.004048a0
lea eax, [ebx + 0x44]
mov edx, dword [ebp + 8]
call fcn.004048a0
mov eax, ebx
call fcn.004a3338
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d52e8
lea eax, [ebp - 4]
call fcn.0040484c
lea eax, [ebp + 8]
call fcn.0040484c
ret
Function at 0x4df88c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4df894
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dfa86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004dfb60
mov eax, dword [0x4e35dc]
mov eax, dword [eax]
mov esi, dword [eax + 0x78]
mov eax, esi
call fcn.004bb62c
mov eax, esi
call fcn.004bdaf4
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14c]
mov dword [ebp - 0x10], eax
jmp 0x4dfa13
cmp word [ebp + 0xa], 0
je 0x4df8ff
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x150]
push eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [0x4e37e0]
mov eax, dword [eax]
call fcn.0046d55c
mov edx, 0x4dfaa0
mov eax, esi
call fcn.004bc678
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004091ec
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004df0b0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
call fcn.004091ec
cmp dword [ebp - 0xc], 0
jne 0x4df955
mov eax, esi
call fcn.004bdd74
jmp 0x4dfa13
mov eax, esi
call fcn.004bdde8
mov edx, 0x4dfab0
mov eax, esi
call fcn.004bc678
mov edx, eax
mov cl, 1
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x214]
mov dword [ebp - 8], eax
push 0x40
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41c5d4]
call fcn.00421110
mov ebx, eax
push 0
push 0
mov eax, ebx
call fcn.00420c7c
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00420ef8
mov eax, ebx
call fcn.004039c0
mov eax, dword [ebp - 8]
call fcn.004039c0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0040a098
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.00415da0
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x4dfabc
mov eax, esi
call fcn.004bc678
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xb4]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x24c]
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.00404d0c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.00409ef8
mov eax, esi
call fcn.004bdd74
cmp byte [esi + 0xa1], 0
je 0x4df8e0
cmp word [ebp + 0xa], 0
je 0x4dfa38
mov eax, dword [ebp - 0x10]
push eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [0x4e37e0]
mov eax, dword [eax]
call fcn.0046d55c
mov eax, dword [0x4e35dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
call fcn.004b05bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfa8d
lea eax, [ebp - 0x30]
call fcn.0040484c
lea eax, [ebp - 0x2c]
call fcn.0041164c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404870
lea eax, [ebp - 0xc]
call fcn.0040484c
ret
Function at 0x4dfac4
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404cfc
mov eax, dword [ebp - 8]
call fcn.00404cfc
xor eax, eax
push ebp
push 0x4dfb50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00409ce0
test al, al
je 0x4dfb16
push 0x80
mov eax, dword [ebp - 8]
call fcn.00404d0c
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
push 0
mov eax, dword [ebp - 8]
call fcn.00404d0c
push eax
mov eax, dword [ebp - 4]
call fcn.00404d0c
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfb57
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404870
ret

Function at 0x4dfb60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dfcf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e35dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.004b05bc
push 0x4dfd0c
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x4dfd44
mov eax, dword [0x4e37ec]
push dword [eax]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404bcc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004050f4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004c5110
xor eax, eax
push ebp
push 0x4dfccb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4dfc2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x14]
mov ecx, 0x4dfd98
call fcn.00404b58
mov eax, dword [ebp - 0x14]
call fcn.00404d0c
push eax
mov eax, dword [0x4e39c0]
mov eax, dword [eax]
call fcn.00404d0c
push eax
call sub.zflib.dll_Decode
mov eax, dword [ebp - 8]
call fcn.004b05b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dfc6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfcd2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x4dfd98
call fcn.00404b58
mov eax, dword [ebp - 0x1c]
call fcn.00404d0c
push eax
mov eax, dword [0x4e39c0]
mov eax, dword [eax]
call fcn.00404d0c
push eax
call sub.zflib.dll_Encode
push 2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x20]
mov ecx, 0x4dfdb4
call fcn.00404b58
mov eax, dword [ebp - 0x20]
call fcn.00404d0c
push eax
call sub.kernel32.dll_SetFileAttributesA
ret
Function at 0x4e0134
Capabilities:
Read file via mapping

Disassembly:
push 0x4e01d4
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4e5c78], eax
cmp dword [0x4e5c78], 0
jne 0x4e01a4
push 0x4e01d4
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4e5c78], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x4e5c78]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4e5c7c], eax
cmp dword [0x4e5c7c], 0
jne 0x4e0199
mov eax, dword [0x4e5c78]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [0x4e5c7c]
xor edx, edx
mov dword [eax], edx
jmp 0x4e01d0
push 0
push 0
push 0
push 6
mov eax, dword [0x4e5c78]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4e5c7c], eax
cmp dword [0x4e5c7c], 0
jne 0x4e01d0
mov eax, dword [0x4e5c78]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x4118d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4719bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046600e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411952
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463ced
mov eax, dword [eax]
push 0x58b210
push eax
call fcn.00456814
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00466299
test bl, bl
je 0x411952
push 0x58b210
lea ecx, [esp + 0xc]
call fcn.00466629
push 0x58eda0
lea ecx, [esp + 0xc]
call fcn.00466629
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41198e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00466299
jmp 0x411a59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x411a12
lea edx, [esp + 0x7c]
push 0x58ed9c
push edx
call fcn.00456814
add esp, 8
test eax, eax
je 0x411a12
lea eax, [esp + 0x7c]
push 0x58ed98
push eax
call fcn.00456814
add esp, 8
test eax, eax
je 0x411a12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4119a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00466299
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x412250
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4122b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc