joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005c400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005c471
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push 0x101ce90c
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x10
push eax
push 0
push str.LangSelection
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1005c468
push 0x100ac98c
push 0x10
push 0x101ce90c
call fcn.1007bce6
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x1005c770
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10b3c52c]
test eax, eax
je 0x1005c78c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x1005c7e6
mov eax, dword [eax]
test eax, eax
jne 0x1005c780
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x1005c7e4
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov esi, edx
mov dword [ecx + 8], 0
sub esi, ecx
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x1005c7c0
mov eax, dword [0x10b3c52c]
mov dword [ecx], eax
mov dword [0x10b3c52c], ecx
pop esi
mov eax, ecx
ret
Function at 0x1005d1d0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005d2ab
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1005d2a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x1c], 0x10
jb 0x1005d289
call ebx
cmp dword [ebp - 0x10], eax
jne 0x1005d289
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x14], eax
je 0x1005d289
mov ecx, dword [esi]
test ecx, ecx
jne 0x1005d24f
push 0x200
push ecx
push dword [0x101da534]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1005d2a3
jmp 0x1005d278
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1005d278
shl eax, 3
push eax
push ecx
push 0
push dword [0x101da534]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1005d2a3
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x14]
mov dword [ecx + edx*4], eax
lea eax, [edx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1005d210
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005d2c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1005d1d0
cmp dword [edi], 0
je 0x1005d32c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1005d32b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1005d324
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1005d080
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1005d2f1
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1005d340
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x1005d38c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1005d37b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1005d374
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1005d351
pop ebx
push dword [edi]
push 0
push dword [0x101da534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x1005d390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov ebx, 5
add edi, dword [0x10b3c520]
test byte [edi + 0x14], 1
mov esi, dword [edi]
je 0x1005d3b4
sub esi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005d3d2
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1005d3ed
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005d420
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x10b3c528]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1005d583
mov eax, dword [0x10b3c520]
add eax, 0x14
test byte [eax], 2
je 0x1005d45a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1005d445
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1005d583
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1005d2c0
mov edx, dword [0x10b3c528]
add esp, 4
cmp esi, edx
jae 0x1005d536
imul ecx, esi, 0x2c
mov dword [ebp - 0xc], ecx
nop dword [eax + eax]
mov ebx, dword [0x10b3c520]
add ebx, ecx
test byte [ebx + 0x14], 2
jne 0x1005d51b
test byte [ebx + 0x14], 1
mov eax, 5
mov edi, dword [ebx]
mov dword [ebp - 4], eax
je 0x1005d4b8
sub edi, eax
mov eax, 7
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005d52e
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x1005d4e5
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
xor ebx, ebx
mov edx, dword [0x10b3c528]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
jmp 0x1005d51d
xor ebx, ebx
inc esi
add ecx, 0x2c
mov dword [ebp - 0xc], ecx
cmp esi, edx
jb 0x1005d490
jmp 0x1005d536
mov ebx, 0xa
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005d582
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x1005d573
mov ebx, eax
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1005d567
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x1005d546
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
push eax
push 0
push dword [0x101da534]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005db90
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1005dc94
push 0x104
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1005dc8d
push ecx
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x450]
call fcn.100631d0
add esp, 4
test al, al
je 0x1005dc8d
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1005bc20
test al, al
jne 0x1005dc24
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x40]
mov ecx, 1
call fcn.10032a50
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1005bf20
test al, al
jne 0x1005dc5a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x40]
mov ecx, 2
call fcn.10032a50
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push ecx
lea eax, [ebp - 0x248]
push eax
call fcn.10033910
test al, al
jne 0x1005dc8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x40]
mov ecx, 5
call fcn.10032a50
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1005de50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092bd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.10064790
mov word [ebp - 0xc38], 0xac2
mov byte [ebp - 0xc36], 0xc
call fcn.1007baf7
and eax, 0x800000ff
jns 0x1005debb
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov byte [ebp - 0xc35], al
mov eax, dword [ebp - 0x18]
sub ebx, eax
sar ebx, 2
mov byte [ebp - 0xc34], 0x17
mov dword [ebp - 0xc30], ebx
test ebx, ebx
je 0x1005df98
lea esi, [ebp - 0x72c]
jmp 0x1005def3
mov eax, dword [ebp - 0x18]
cmp edi, 0x14
jge 0x1005df98
push 0x104
lea ecx, [ebp - 0x120]
push ecx
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x104
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetClassNameA]
movups xmm0, xmmword [ebp - 0x120]
inc edi
movups xmmword [esi - 0x500], xmm0
movups xmm0, xmmword [ebp - 0x110]
movups xmmword [esi - 0x4f0], xmm0
movups xmm0, xmmword [ebp - 0x100]
movups xmmword [esi - 0x4e0], xmm0
movups xmm0, xmmword [ebp - 0xf0]
movups xmmword [esi - 0x4d0], xmm0
movups xmm0, xmmword [ebp - 0x228]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x218]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x208]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x1f8]
movups xmmword [esi + 0x30], xmm0
add esi, 0x40
cmp edi, ebx
jb 0x1005def0
push 0xa0c
lea eax, [ebp - 0xc38]
push eax
call fcn.10030f00
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1005dfbf
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.10056b00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005e000
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x944
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
je 0x1005e1f6
push eax
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005e1f6
push 0x424
lea eax, [ebp - 0x93c]
push 0
push eax
call fcn.10070060
add esp, 0xc
mov dword [ebp - 0x940], 0x428
lea eax, [ebp - 0x940]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
nop dword [eax]
push 0x1f4
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.10070060
xor ecx, ecx
add esp, 0xc
cmp word [ebp - 0x720], cx
je 0x1005e0ac
lea eax, [ebp - 0x720]
nop word [eax + eax]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x519], al
lea eax, [ebp - 0x720]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x1005e090
lea edx, [ebp - 0x518]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1005e0b5
sub edx, ecx
xor ecx, ecx
test edx, edx
js 0x1005e0e1
mov al, byte [ebp + ecx - 0x518]
cmp al, 0x41
jl 0x1005e0dc
cmp al, 0x5a
jg 0x1005e0dc
add al, 0x20
mov byte [ebp + ecx - 0x518], al
inc ecx
cmp ecx, edx
jle 0x1005e0c4
push 0x1f4
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.10070060
xor ecx, ecx
add esp, 0xc
cmp word [ebp - 0x920], cx
je 0x1005e12c
lea eax, [ebp - 0x920]
nop dword [eax + eax]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x321], al
lea eax, [ebp - 0x920]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x1005e110
lea edx, [ebp - 0x320]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1005e135
sub edx, ecx
xor ecx, ecx
test edx, edx
js 0x1005e161
mov al, byte [ebp + ecx - 0x320]
cmp al, 0x41
jl 0x1005e15c
cmp al, 0x5a
jg 0x1005e15c
add al, 0x20
mov byte [ebp + ecx - 0x320], al
inc ecx
cmp ecx, edx
jle 0x1005e144
movups xmm0, xmmword [ebp - 0x320]
mov eax, dword [ebp - 0x938]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x518]
movups xmmword [ebp - 0x124], xmm0
push eax
movups xmm0, xmmword [ebp - 0x310]
lea eax, [ebp - 0x104]
push eax
movups xmmword [ebp - 0x114], xmm0
call fcn.1002c420
mov eax, dword [0x101da888]
add esp, 8
cmp eax, dword [0x101da88c]
jne 0x1005e1b7
push ecx
call fcn.1005ef50
mov eax, dword [0x101da888]
test eax, eax
je 0x1005e1cf
mov edi, eax
lea esi, [ebp - 0x128]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x101da888]
add eax, 0x128
mov dword [0x101da888], eax
lea eax, [ebp - 0x940]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1005e060
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005e5a0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1584
call fcn.1008ea30
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x1000
lea eax, [ebp - 0x1580]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x1005e5da
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x1005e6c2
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x1580]
test eax, eax
je 0x1005e6b9
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1005e6b2
push 0x104
lea eax, [ebp - 0x378]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1005e6b2
lea ecx, [ebp - 0x378]
call fcn.100633a0
push eax
lea eax, [ebp - 0x48]
push 0x100a8acc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [ebp - 0x580]
lea ecx, [ebp - 0x378]
call fcn.100631d0
add esp, 4
test al, al
je 0x1005e6b2
mov eax, dword [ebp + esi*4 - 0x1580]
movups xmm0, xmmword [ebp - 0x48]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x580]
push eax
movups xmmword [ebp - 0x16c], xmm0
lea eax, [ebp - 0x14c]
movups xmm0, xmmword [ebp - 0x38]
push 0x100ac9e0
push eax
movups xmmword [ebp - 0x15c], xmm0
call fcn.1002c420
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
call fcn.1005eef0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x1005e5f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005e6d0
Capabilities:
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005e70c
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1005e715
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x1005e740
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
push dword [ebp - 0x14]
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x1005e7c0
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1005e7b9
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp + 8], eax
cmp dword [eax], 0x4550
jne 0x1005e7b9
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
je 0x1005e789
mov edx, 0x8664
cmp cx, dx
jne 0x1005e7b9
push dword [eax + 0x28]
push dword [eax + 0x34]
push eax
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
mov ecx, eax
test ecx, ecx
je 0x1005e7b9
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
add eax, dword [ecx + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005e7d7
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x1005e7ba
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
add ecx, dword [eax + 0x34]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1005f350
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.1008ea30
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x1005f38c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 8]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x1005f3f3
nop dword [eax + eax]
mov edi, dword [ebp + esi*4 - 0x1014]
test edi, edi
je 0x1005f3ee
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.1005f670
test al, al
jne 0x1005f3ee
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
mov dword [ebp - 0xc], eax
call fcn.1005f6f0
push ecx
push dword [ebp + esi*4 - 0x1014]
call fcn.1005f400
test al, al
je 0x1005f381
push ecx
push dword [ebp + esi*4 - 0x1014]
call fcn.1005db90
test al, al
je 0x1005f381
inc esi
cmp esi, ebx
jl 0x1005f3a0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1005f4a0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.1008ea30
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1108]
mov dword [ebp - 4], 0
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x1005f4dc
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [ebp - 4]
xor esi, esi
shr edi, 2
test edi, edi
jle 0x1005f545
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp + esi*4 - 0x1108]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x1005f540
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1005f537
test dl, dl
je 0x1005f533
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1005f537
add ecx, 2
add eax, 2
test dl, dl
jne 0x1005f517
xor eax, eax
jmp 0x1005f53c
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005f550
inc esi
cmp esi, edi
jl 0x1005f4f0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005f560
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0x1000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x1005f5a3
push 0
push ebx
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1005f5ac
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
push 0x100acaf0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005f595
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x1005f595
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push edi
push esi
test eax, eax
jne 0x1005f59d
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc

Function at 0x10060190
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
mov ebx, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.100306e0
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4dec]
push ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.10030900
test al, al
je 0x100601f7
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100601f7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4de8
je 0x10060202
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x4de8
lea esi, [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100601f0
mov ecx, 0x4de8
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
add al, 0x78
xor al, 0xb3
mov byte [esi - 1], al
sub ecx, 1
jne 0x10060230
call fcn.1005c400
lea eax, [ebx + 0x90]
push eax
call fcn.1005c480
lea eax, [ebx + 0x1a58]
push eax
call fcn.1005c4e0
lea eax, [ebx + 0x3420]
push eax
call fcn.1005c540
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov byte [ebx + 0x4df0], 0
mov al, 1
mov dword [ebx + 0x4df4], 0
pop ebx
mov esp, ebp
pop ebp
ret 4