joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bb700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x68], 0xffffffff
je 0x6bb723
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
jne 0x6bb728
or eax, 0xffffffff
jmp 0x6bb79c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
and eax, 2
je 0x6bb746
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x6bb780
mov eax, dword [ebp - 0x14]
add eax, 0x4c
push eax
call fcn.005abb90
add esp, 4
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x14]
add ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
adc eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x6bb7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x68], 0xffffffff
je 0x6bb7d3
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
and eax, 2
jne 0x6bb7db
or eax, 0xffffffff
jmp 0x6bb898
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
and eax, 8
je 0x6bb842
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 2
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6bb833
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6bb833
mov edx, dword [ebp - 0x1c]
add edx, 0x4c
push edx
call fcn.005abb90
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x70], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x74], edx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x6bb87c
mov edx, dword [ebp - 0x1c]
add edx, 0x4c
push edx
call fcn.005abb90
add esp, 4
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x70]
mov edx, dword [edx + 0x74]
adc edx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x6d3db0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x6fd2d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73a56f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov dword [ebp - 0x128], ecx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x14]
push ecx
push 0
call fcn.00565ed6
add esp, 0x18
mov edx, dword [ebp - 0x128]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x128]
cmp dword [edx + 8], 0
jne 0x6fd3e9
lea eax, [ebp - 0xb1]
mov dword [ebp - 0xb0], eax
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0040b0a0
mov dword [ebp - 0x12c], str.cannot_create_thread
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x12c]
mov al, byte [edx]
mov byte [ebp - 0x131], al
add dword [ebp - 0x12c], 1
cmp byte [ebp - 0x131], 0
jne 0x6fd36f
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x130]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
push edx
push str.cannot_create_thread
lea ecx, [ebp - 0x5c]
call fcn.0040a9d0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00593a10
push 0x7dab3c
lea ecx, [ebp - 0x40]
push ecx
call fcn.00563aac
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040b0a0
mov edx, dword [ebp - 0x128]
cmp dword [edx + 0x10], 0
je 0x6fd4d8
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x6fd4d8
lea ecx, [ebp - 0xed]
mov dword [ebp - 0xec], ecx
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.0040b0a0
mov dword [ebp - 0x13c], str.cannot_set_thread_priority
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax]
mov byte [ebp - 0x141], cl
add dword [ebp - 0x13c], 1
cmp byte [ebp - 0x141], 0
jne 0x6fd44f
mov edx, dword [ebp - 0x13c]
sub edx, dword [ebp - 0x140]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
push eax
push str.cannot_set_thread_priority
lea ecx, [ebp - 0xa8]
call fcn.0040a9d0
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00593a10
push 0x7dab3c
lea edx, [ebp - 0x8c]
push edx
call fcn.00563aac
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.0040b0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x6fe2a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7339e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov dword [ebp - 0xb8], ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
mov edx, dword [ebp - 0xb8]
cmp dword [edx], 0xffffffff
jne 0x6fe386
lea eax, [ebp - 0x61]
mov dword [ebp - 0x60], eax
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.0040b0a0
mov dword [ebp - 0xbc], 0x7be1f0
mov ecx, dword [ebp - 0xbc]
add ecx, 1
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xbc]
mov al, byte [edx]
mov byte [ebp - 0xc1], al
add dword [ebp - 0xbc], 1
cmp byte [ebp - 0xc1], 0
jne 0x6fe30c
mov ecx, dword [ebp - 0xbc]
sub ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
push edx
push 0x7be1f0
lea ecx, [ebp - 0x58]
call fcn.0040a9d0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00593a10
push 0x7dab3c
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00563aac
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0040b0a0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x6fe3a0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73a6e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xc4]
call fcn.006a8e50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc4]
mov dword [eax], vtable.Poco::PipeImpl.0
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0xc4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x6fe4be
lea ecx, [ebp - 0x6d]
mov dword [ebp - 0x6c], ecx
push 0
push 0
lea ecx, [ebp - 0x64]
call fcn.0040b0a0
mov dword [ebp - 0xc8], str.anonymous_pipe
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xc8]
mov cl, byte [eax]
mov byte [ebp - 0xcd], cl
add dword [ebp - 0xc8], 1
cmp byte [ebp - 0xcd], 0
jne 0x6fe44a
mov edx, dword [ebp - 0xc8]
sub edx, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
push eax
push str.anonymous_pipe
lea ecx, [ebp - 0x64]
call fcn.0040a9d0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00596770
push 0x7d7910
lea edx, [ebp - 0x48]
push edx
call fcn.00563aac
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.0040b0a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x700140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73a9f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov dword [ebp - 0x9c], ecx
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.0040b0a0
mov eax, dword [0x7c2410]
push eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040aed0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa0], 0x74cad0
mov edx, dword [ebp - 0xa0]
add edx, 1
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa0]
mov cl, byte [eax]
mov byte [ebp - 0xa5], cl
add dword [ebp - 0xa0], 1
cmp byte [ebp - 0xa5], 0
jne 0x7001a7
mov edx, dword [ebp - 0xa0]
sub edx, dword [ebp - 0xa4]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
push eax
push 0x74cad0
lea ecx, [ebp - 0x28]
call fcn.004472f0
mov ecx, dword [ebp - 0x9c]
movzx edx, byte [ecx + 0x10]
test edx, edx
je 0x70023c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x10], 0x10
jb 0x700210
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xb0], ecx
jmp 0x700219
lea edx, [ebp - 0x24]
mov dword [ebp - 0xb0], edx
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x7002b3
lea edx, [ebp - 0x59]
mov dword [ebp - 0x58], edx
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00446c40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.005a5ad0
add esp, 8
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x34], 8
jb 0x700279
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xb4], eax
jmp 0x700282
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xb4], ecx
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00446c40
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040b0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x70ad40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73b4ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x60], 0
jne 0x70ad74
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x35]
mov dword [ebp - 0x34], ecx
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00446c40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.005a5ad0
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x70adae
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x68], ecx
jmp 0x70adb4
lea edx, [ebp - 0x28]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 1
push 0
push 0x1000
mov edx, dword [ebp + 8]
push edx
call fcn.0070b0f0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0070b090
add esp, 4
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00446c40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x7159f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73bc36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00711ed0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
add ecx, 4
call fcn.006a8e50
mov eax, dword [ebp - 0x5c]
mov dword [eax], vtable.Poco::ActiveRunnableBase.0
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 4], vtable.Poco::ActiveRunnableBase.1.0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x5c]
mov dword [edx], vtable.Poco::ActiveRunnable_void__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_Poco::ArchiveCompressor_.1.0
mov eax, dword [ebp - 0x5c]
mov dword [eax + 4], vtable.Poco::ActiveRunnable_void__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_Poco::ArchiveCompressor_.0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 8]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x5c]
add edx, 0x14
mov dword [ebp - 0x50], edx
push 0
push 0
mov ecx, dword [ebp - 0x50]
call fcn.0040b0a0
mov eax, dword [0x7c2410]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.0040aed0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
add edx, 0x30
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 3
cmp dword [ebp + 8], 0
jne 0x715ada
push 0x67
push str..includePoco_ActiveRunnable.h
push str.pOwner
call fcn.005a4db0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x7161b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 0x1c], 0xffffffff
jne 0x7161d6
mov ecx, dword [ebp - 0xa0]
call fcn.00716420
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x7161f9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xa4], edx
jmp 0x716205
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0xa4], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x716251
push 0
mov eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x38]
call fcn.00596b90
push 0x7db094
lea ecx, [ebp - 0x38]
push ecx
call fcn.00563aac
push 0
lea edx, [ebp - 8]
push edx
push 2
push 0x74cad0
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x716296
push 0
mov edx, dword [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x68]
call fcn.00596b90
push 0x7db094
lea eax, [ebp - 0x68]
push eax
call fcn.00563aac
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x7162dc
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x7162dc
push 0
mov ecx, dword [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00596b90
push 0x7db094
lea edx, [ebp - 0x98]
push edx
call fcn.00563aac
mov esp, ebp
pop ebp
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x411ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x411eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ee0
mov eax, 1
add ebx, ebx
jne 0x411f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ef8
jne 0x411f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ef8
xor ecx, ecx
sub eax, 3
jb 0x411f28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411f9a
mov ebp, eax
add ebx, ebx
jne 0x411f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411f40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411f64
inc ecx
add ebx, ebx
jne 0x411f50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411f45
jne 0x411f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411f45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411f84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411f75
jmp 0x411ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411f84
add edi, ecx
jmp 0x411ee6
pop esi
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411fec
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14330]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x143ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411fa1
mov ecx, edi
jns 0x411fd0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x143f4]
or eax, eax
je 0x411fe6
mov dword [ebx], eax
add ebx, 4
jmp 0x411fbe
call dword [esi + 0x143f0]
mov ebp, dword [esi + 0x143f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412020
sub esp, 0xffffff80
jmp 0x403956

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x48adf0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51822b
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.0050aa14
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x48ae72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00508040
mov eax, dword [eax]
push 0x6f9270
push eax
call fcn.004f9514
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050ac9f
test bl, bl
je 0x48ae72
push 0x6f9270
lea ecx, [esp + 0xc]
call fcn.0050b07b
push 0x6fce0c
lea ecx, [esp + 0xc]
call fcn.0050b07b
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 0x48aeae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050ac9f
jmp 0x48af79
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 0x48af32
lea edx, [esp + 0x7c]
push 0x6fce08
push edx
call fcn.004f9514
add esp, 8
test eax, eax
je 0x48af32
lea eax, [esp + 0x7c]
push 0x6fce04
push eax
call fcn.004f9514
add esp, 8
test eax, eax
je 0x48af32
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 0x48aec2
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.0050ac9f
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 0x48b770
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 0x48b7d2
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