joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404374
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455338]
jne 0x40437e
repz ret
jmp fcn.0040551d

Function at 0x4044e9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x455338]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040375a
and dword [ebp - 0x14], 0
cmp dword [0x47a0d0], 0
mov dword [ebp - 0x18], eax
jne 0x40459c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404644
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404644
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47a0d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47a0d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47a0d8], eax
call edi
push eax
call esi
mov dword [0x47a0e0], eax
test eax, eax
je 0x40459c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47a0dc], eax
mov eax, dword [0x47a0dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4045f5
cmp dword [0x47a0e0], ecx
je 0x4045f5
push eax
call esi
push dword [0x47a0e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4045f5
test ebx, ebx
je 0x4045f5
call edi
test eax, eax
je 0x4045ec
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4045ec
test byte [ebp - 8], 1
jne 0x4045f5
or dword [ebp + 0x10], 0x200000
jmp 0x404628
mov eax, dword [0x47a0d4]
cmp eax, dword [ebp - 0x18]
je 0x404628
push eax
call esi
test eax, eax
je 0x404628
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404628
mov eax, dword [0x47a0d8]
cmp eax, dword [ebp - 0x18]
je 0x404628
push eax
call esi
test eax, eax
je 0x404628
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47a0d0]
call esi
test eax, eax
je 0x404644
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404646
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404374
leave
ret
Function at 0x40ec28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7baf4e6c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6ef61280
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1000692d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000693c
pop dword [ebp - 0x20]
mov eax, 0x1000693c
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x85fd2e4d
sub dword [ebp - 0x30], 0x37aae902
mov dword [ebp - 0x2c], 0xfed0da1f
add dword [ebp - 0x2c], 0x33627226
mov dword [ebp - 0x28], 0x25f28e17
add dword [ebp - 0x28], 0x2659b617
mov dword [ebp - 0x24], 0xc507299c
add dword [ebp - 0x24], 0x3af8d664
lea eax, [ebp - 0x30]
push eax
mov eax, 0x2cd72db5
sub eax, 0x1cd58dad
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x33bf4b56
add dword [ebp - 0x30], 0x40b31e00
mov dword [ebp - 0x2c], 0x98622bda
add dword [ebp - 0x2c], 0xa90a359b
mov dword [ebp - 0x28], 0xd8b37ffa
add dword [ebp - 0x28], 0x8abbec72
mov dword [ebp - 0x24], 0x8e7b21d7
sub dword [ebp - 0x24], 0x8e7b21d7
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x146f6f14
sub eax, 0x46dcf08
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3b3ac
push 0
call eax
mov ecx, 0x98c9f9c8
add ecx, 0x67364c64
xor ebx, ebx
add ebx, eax
mov esi, 0x10024a00
add esi, dword [ebp - 0x20]
mov edx, 0x1e5aea86
sub edx, 0xcda1a15d
sub dword [ebp - 0xc], 0xfb6931d8
mov edi, dword [esi]
mov dword [ebp - 0x14], 0x5d3516b2
add edi, edx
xor dword [ebp - 0x10], 0xf848af09
mov dword [ebx], edi
add dword [ebp - 0x14], 0x94efbeb1
add ebx, 4
add esi, 4
loop 0x10006a55
add eax, 0x10b83
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x407d67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407d7e
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407db3
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x407daf
cmp edi, eax
jae 0x407db3
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x407da1
cmp edi, eax
jb 0x407db7
xor eax, eax
jmp 0x407dc1
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x407f72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x408000
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x407fa9
cmp dword [ebp - 8], 2
jne 0x407fff
push esi
mov esi, dword [ebp + 0xc]
call fcn.00407c31
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00407b32
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x407fe7
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x407ff7
push eax
call fcn.0047acce
pop ecx
mov edx, esi
call fcn.00407aee
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x408623
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x408651
push dword [esp + 0xc]
call fcn.0047acce
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x408651
inc edi
mov eax, edi
pop edi
ret 8
Function at 0x40866b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4086f4
push ebx
call fcn.0047709e
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4086e5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4bae94
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4086e5
cmp dword [ebp - 0xc], ebx
je 0x4086e5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4086f4
push dword [ebp - 4]
call fcn.0047a32e
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x408730
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ab583
call fcn.004a8fb4
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4dd02c
mov dword [ebp - 0x10], edi
call fcn.00407cb4
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0047a340
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00407e8c
push esi
call fcn.00409f3e
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40887e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0047a340
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4088d7
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x40898d
mov eax, dword [ebp - 0x94]
dec eax
je 0x408979
dec eax
jne 0x40898d
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x408926
cmp dword [ebp - 0x9c], edx
jne 0x408910
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x408975
cmp dword [ebp - 0x9c], edi
jne 0x40895e
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x408975
cmp eax, 5
jne 0x408950
cmp dword [ebp - 0x9c], 2
jne 0x408937
push eax
jmp 0x408957
cmp dword [ebp - 0x9c], 1
jne 0x408944
mov edi, ecx
jmp 0x40898d
cmp dword [ebp - 0x9c], edi
jne 0x40898d
push 3
jmp 0x408957
cmp eax, 4
ja 0x40895a
push 4
pop edi
jmp 0x40898d
cmp eax, ecx
jb 0x40898d
cmp dword [ebp - 0x9c], 2
jae 0x40896b
cmp eax, ecx
jbe 0x40898d
cmp byte [ebp + 0x76], dl
jne 0x40898d
call fcn.004087b3
mov edi, eax
jmp 0x40898d
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00408ff5
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x408ebd
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x408ebc
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.00409034
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408ebc
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x408ebc
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x408e6d
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x408ea7
xor eax, eax
jmp 0x408eae
push eax
call fcn.004778b0
pop ecx
mov edx, esi
call fcn.00409118
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x408ecd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x409fd2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x409ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a0b8
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.0047a340
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a067
lea eax, [ebp - 0x20c]
push 0x4bb000
push eax
call fcn.0047bc85
test eax, eax
pop ecx
pop ecx
je 0x40a05b
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a031
jmp 0x40a070
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40a070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40a095
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a0b7
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a0b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40a19d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x40a1af
or eax, 0xffffffff
leave
ret
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0047a340
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a1f2
cmp dword [ebp - 0x110], 5
jne 0x40a1f2
cmp dword [ebp - 0x10c], 0
je 0x40a1ff
push esi
call fcn.0040a0bb
test eax, eax
pop ecx
jne 0x40a1ff
leave
ret
push esi
call fcn.00409fd2
pop ecx
leave
ret
Function at 0x40a208
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40a2c8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40a26e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40a2c7
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 2
push dword [ebp + 8]
call esi
test eax, eax
je 0x40a2bb
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40a2bb
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40a2b7
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x40a299
jmp 0x40a2bb
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x40a2c6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x40a2d7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret

Function at 0x40a2dc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x40a34a
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0047a340
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a344
cmp dword [ebp - 0x118], 6
jne 0x40a344
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a37f
mov dword [esi], edi
xor eax, eax
jmp 0x40a37f
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ebp - 4], edi
push ebx
mov ebx, 0x490
jbe 0x40a376
lea edx, [ecx + 8]
cmp dword [edx], edi
je 0x40a36c
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x40a35d
jmp 0x40a376
imul eax, eax, 0xc
mov eax, dword [eax + ecx]
mov dword [esi], eax
xor ebx, ebx
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
pop ebx
pop edi
leave
ret
Function at 0x40acf8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
xor eax, eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x67452301
mov dword [ebp - 0x68], 0xefcdab89
mov dword [ebp - 0x64], 0x98badcfe
mov dword [ebp - 0x60], 0x10325476
call fcn.0040ab1c
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x6c]
call fcn.0040abdf
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0040ac7b
mov eax, dword [ebp + 8]
add esp, 0x10
pop esi
leave
ret

Function at 0x40b872
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
mov esi, eax
cmp dword [esi + 0x14], 0x104
push edi
jb 0x40b892
xor al, al
jmp 0x40b91f
and word [esp + 0x28], 0
push 0x208
lea eax, [esp + 0x2e]
push 0
push eax
call fcn.0047a340
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x40b8b7
mov esi, dword [esi + 4]
jmp 0x40b8ba
add esi, 4
push esi
lea eax, [esp + 0x2c]
push 0x105
push eax
call fcn.0047c2b4
and dword [esp + 0x14], 0
add esp, 0xc
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x40b88b
test eax, eax
je 0x40b91c
cmp eax, 2
je 0x40b91c
cmp eax, 0x402
je 0x40b91c
xor eax, eax
jmp 0x40b91f
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40deb3
Capabilities:
Terminate process

Disassembly:
push ebx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x40dec7
push ebx
call fcn.00416d28
test eax, eax
pop ecx
jne 0x40df09
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x40dedb
push edi
call fcn.00416d28
test eax, eax
pop ecx
jne 0x40df08
mov eax, ebx
call fcn.00416d0d
mov eax, edi
call fcn.00416d0d
lea eax, [esi + 0xc]
cmp dword [eax], 0
mov byte [esi + 0x10], 0
je 0x40def9
xor eax, eax
jmp 0x40df08
push esi
push 0x40de89
push eax
call fcn.00416c8b
add esp, 0xc
pop edi
pop ebx
ret
Function at 0x40e2f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a9778
call fcn.004a8fb4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi], eax
mov dword [ebp - 4], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0xc], ecx
lea esi, [edi + 0x10]
push 8
pop edx
mov ecx, vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi], ecx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
mov dword [edi + 0x24], ecx
push 4
pop edx
mov ecx, vtable.CRecordVector_unsigned_long_long_unsigned___int64__const__.0
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], edx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], edx
mov dword [edi + 0x4c], ecx
mov byte [ebp - 4], 5
mov ebx, dword [edi + 8]
call fcn.00416ebb
mov ebx, dword [edi + 8]
lea esi, [edi + 0x38]
call fcn.00416ebb
mov ebx, dword [edi + 0xc]
lea esi, [edi + 0x24]
call fcn.00416ebb
mov ebx, dword [edi + 0xc]
lea esi, [edi + 0x4c]
call fcn.00416ebb
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x411eef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
je 0x411efb
xor eax, eax
pop ebp
ret
lea eax, [esi + 0x30]
push eax
call fcn.00416d83
test eax, eax
pop ecx
je 0x411f0e
push 0xc
pop eax
pop ebp
ret
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.00416d28
test eax, eax
pop ecx
jne 0x411f82
lea eax, [esi + 0x18]
push eax
call fcn.00416d28
test eax, eax
pop ecx
jne 0x411f82
lea eax, [esi + 0x1c]
push eax
call fcn.00416d28
test eax, eax
pop ecx
jne 0x411f82
push dword [ebp + 0x10]
lea eax, [esi + 0x20]
push dword [ebp + 0x10]
push eax
call fcn.00416d39
add esp, 0xc
test eax, eax
jne 0x411f82
push dword [ebp + 0x10]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.00416d39
add esp, 0xc
test eax, eax
jne 0x411f82
push dword [ebp + 0xc]
lea eax, [esi + 0x10]
push dword [ebp + 8]
mov dword [esi + 4], edi
push eax
call fcn.00416c8b
add esp, 0xc
test eax, eax
je 0x411f87
push 0xc
pop eax
jmp 0x411f8b
mov dword [esi], edi
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4145e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, 0x100
push edi
mov ebx, eax
or esi, eax
shl dword [ebp + 0x10], 1
mov eax, esi
shr eax, 7
and eax, 1
push eax
mov eax, ebx
and eax, dword [ebp + 0x10]
mov ecx, esi
add eax, ebx
shr ecx, 8
add ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + ecx*2]
mov eax, dword [ebp + 8]
call fcn.0041455b
add esi, esi
mov eax, esi
xor eax, dword [ebp + 0x10]
pop ecx
not eax
and ebx, eax
cmp esi, 0x10000
jb 0x4145f2
pop edi
pop esi
pop ebx
pop ebp
ret