joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455538
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4555ef
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x455608
call fcn.0044e86c
push dword [ebp - 0xc]
push 0x45561c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, 0x455628
call fcn.004553fc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004043a8
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.004044e8
push eax
call fcn.0045530c
mov esi, eax
test esi, esi
je 0x4555d4
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x4555ce
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4555f6
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040404c
ret

Function at 0x455880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4558f1
mov ebx, 0x5f040000
jmp 0x4558df
cmp dword [esp + 0x10], 0x10000
jne 0x4558bd
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x4558f1
cmp dword [esp + 0xc], 0x10000
jae 0x4558d1
mov dword [esp + 0xc], 0x10000
jmp 0x4558d9
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x45589d
push 0x40
push 0x1000
push edi
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x455bbc
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x465800]
cmp eax, 0x1c
jne 0x455c37
cmp dword [ebp - 0xc], 0x1000
jne 0x455c32
cmp dword [ebp - 0x18], 0
je 0x455c32
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x455c32
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x455c11
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x455c37
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4657d0]
cmp eax, 0
je 0x455c32
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x465828]
add ebx, dword [ebp - 0x10]
jmp 0x455bd3
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x459804
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4599eb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x459a04
call fcn.004522d8
mov dword [0x467e44], eax
xor edx, edx
mov eax, 0x459a28
call fcn.004522d8
mov dword [0x467e48], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.00404674
lea eax, [ebp - 8]
call fcn.00404540
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.00404540
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.00404540
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.00404540
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.00404540
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, 0x459a50
call fcn.0044e86c
push dword [ebp - 0xc]
push 0x459a60
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0044e500
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004043a8
mov eax, dword [ebp - 8]
call fcn.004044e8
push eax
push 0
push 0
call fcn.00406198
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4599d0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x467e38], esi
mov dword [0x467e3c], edi
cmp dword [0x467e44], 0
je 0x459920
cmp dword [0x467e48], 0
jne 0x4599a2
mov dl, 1
mov eax, 0x459a6c
call fcn.004523d4
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x4599b4
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x4599b4
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x4599b4
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x4599b4
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x4599b4
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4599b4
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x467e40], edx
mov edx, 0x4597b4
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x4599b4
push 0x459760
push 1
call dword [0x467e44]
test eax, eax
setne bl
test bl, bl
jne 0x4599d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4599f2
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040404c
ret
Function at 0x459a88
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x467e44], 0
je 0x459aa0
cmp dword [0x467e48], 0
jne 0x459af9
mov dl, 1
mov eax, 0x459b14
call fcn.004523d4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x459adf
mov eax, dword [0x467e40]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x459b04
push 0x459760
call dword [0x467e48]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45bc4c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004044d8
xor eax, eax
push ebp
push 0x45bd0c
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x45bcf6
cmp dword [ebp - 4], 0
jne 0x45bc99
lea edx, [ebp - 8]
mov eax, esi
call fcn.00454d54
test al, al
je 0x45bcf6
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.00454d54
test al, al
je 0x45bce7
cmp dword [ebp - 4], 0
je 0x45bcc7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x45bcde
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [ebp - 8], 0
je 0x45bcf6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd13
lea eax, [ebp - 4]
call fcn.00404028
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x45bdc5
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov ebx, eax
push ebx
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov edi, eax
test edi, edi
je 0x45bdbf
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x45bdb9
cmp ebx, dword [esp]
jne 0x45bdb9
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x45bda3
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x45bd9f
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x45bd82
mov eax, ebx
and ax, 0xffff
shr ebx, 0x10
add ax, bx
movzx eax, ax
mov ebx, eax
mov ebp, dword [esp]
add ebp, ebx
push edi
call sub.kernel32.dll_LocalFree_1
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45bdd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45bedf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x467c14], 0
jne 0x45beb1
cmp byte [0x465924], 0
je 0x45be19
push ebx
push 0x104
call sub.kernel32.dll_GetTempPathW
jmp 0x45be24
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
jne 0x45be33
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.kernel32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x45be4c
push 0x45beec
push ebx
call sub.kernel32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, 0x45bef8
call fcn.0044e86c
push dword [ebp - 0x44]
push 0x45bf08
lea edx, [ebp - 0x48]
mov eax, 0x45bf14
call fcn.0044e86c
push dword [ebp - 0x48]
push 0x45bf28
lea edx, [ebp - 0x4c]
mov eax, 0x45bf34
call fcn.0044e86c
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.004043a8
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.004044e8
push eax
call fcn.004547a0
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.kernel32.dll_lstrcatW
jmp 0x45bebc
push 0x467c14
push ebx
call sub.kernel32.dll_lstrcpyW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bee6
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040404c
lea eax, [ebp - 4]
call fcn.00404028
ret

Function at 0x45bf38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044d8
xor eax, eax
push ebp
push 0x45bfbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.00404674
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x45bf95
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x45bf90
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x45bf85
add ebx, 2
jmp 0x45bf9b
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.004042e8
add eax, dword [edi]
cmp eax, esi
ja 0x45bf73
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bfc5
lea eax, [ebp - 4]
call fcn.00404028
ret
Function at 0x45cf3c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004044d8
xor eax, eax
push ebp
push 0x45d009
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004044e8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45cfd9
xor ebx, ebx
jmp 0x45cfb6
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404298
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.0045cf3c
pop ecx
inc ebx
push 0x104
lea eax, [ebp - 0x10d]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
je 0x45cf8c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
call fcn.004044e8
push eax
push esi
call sub.advapi32.dll_RegDeleteKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d010
lea eax, [ebp - 0x114]
call fcn.00404028
lea eax, [ebp - 4]
call fcn.00404028
ret
Function at 0x45e2b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0045dff8
pop ecx
test al, al
jne 0x45e3dc
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0045dff8
pop ecx
test al, al
jne 0x45e3dc
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x467664]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x467664]
push eax
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0045dff8
pop ecx
test al, al
jne 0x45e3dc
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0045dff8
pop ecx
test al, al
jne 0x45e3dc
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0045dff8
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45eaac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x45ead7
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x45eaeb
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
jne 0x45eaef
xor eax, eax
jmp 0x45eaf1
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x45ec60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x45ecf7
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0045ea80
test al, al
je 0x45ecf7
cmp word [ebp - 2], 0x5a4d
jne 0x45ecf7
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0045ea80
test al, al
je 0x45ecf7
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0045ea80
test al, al
je 0x45ecf7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x45ecf7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x45ecfb
xor eax, eax
jmp 0x45ecfd
mov al, 1
test al, al
je 0x45ed1a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x460964
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
mov eax, dword [esi]
push eax
call fcn.0045309c
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x149
push esi
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x460ab2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x460ab2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x460ab2
cmp dword [esi + 0x20], 0
je 0x460a2d
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x20]
push eax
push ebx
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x460ab2
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
lea eax, [edi + 0x24]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x460ab2
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x460ab2
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x145]
dec eax
push eax
push ebx
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x460ab2
cmp byte [ebp - 0x16], 0xe8
jne 0x460ab2
lea eax, [edi + 0x3c]
sub eax, dword [esi + 0x145]
sub eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x460ab2
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.kernel32.dll_VirtualProtectEx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x461000
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4611d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4611bb
xor eax, eax
push ebp
push 0x4611b4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x46119d
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x461197
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x4611ec
call fcn.0044e86c
mov eax, dword [ebp - 0x24]
call fcn.004044e8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4610cb
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, 0x461208
call fcn.0044e86c
mov eax, dword [ebp - 0x28]
call fcn.004044e8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4610fe
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x461224
call fcn.0044e86c
mov eax, dword [ebp - 0x2c]
call fcn.004044e8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x461131
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x461183
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x46114e
cmp eax, dword [ebp - 0x10]
je 0x46117f
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x461163
cmp eax, dword [ebp - 0x18]
je 0x46117f
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x461178
cmp eax, dword [ebp - 0x20]
je 0x46117f
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x46113b
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4611bb
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4611dd
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040404c
ret
Function at 0x462248
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [0x465e90]
mov eax, dword [eax]
call fcn.0044bc18
cmp byte [ebx + 0x290], 0
je 0x46227c
cmp byte [ebx + 0x298], 0
je 0x46227c
push 0
mov eax, dword [0x465e90]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
mov si, 0xffe7
call fcn.00403428
pop esi
pop ebx
ret
Function at 0x47d3d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x69bfe8]
xor edx, edx
cmp eax, edx
jne 0x47d3f6
xor eax, eax
mov byte [eax + 0x69bee8], al
inc eax
cmp eax, 0x100
jl 0x47d3de
mov dword [0x69bfe8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x69bee8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47d487
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47d45a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x47d428
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47d500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x47d553
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47d53a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret