joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ccec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x48cd88
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404f78
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404e44
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x48cd14
cmp byte [esp], 0
je 0x48cd59
mov eax, edi
call fcn.00404e44
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x48cd94
mov eax, edi
call fcn.00404e44
push eax
mov eax, edi
call fcn.00404e44
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00402a58
mov edx, ebx
mov eax, edi
call fcn.00404f78
jmp 0x48cd94
mov eax, edi
mov edx, 0x48cda4
call fcn.00404980
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48d374
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ddc
xor eax, eax
push ebp
push 0x48d3d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404980
mov eax, ebx
call fcn.00404e3c
mov eax, dword [ebx]
call fcn.00404bec
test eax, eax
jle 0x48d3c0
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x48d3b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d3dd
lea eax, [ebp - 4]
call fcn.0040492c
ret

Function at 0x48d67c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebp
push 0x48d6b4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x48d6aa
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x48d6aa
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48d6c0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48d7f8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ddc
xor eax, eax
push ebp
push 0x48d9d6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
test ebx, ebx
je 0x48d9b5
mov eax, ebx
call fcn.0048d67c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48d9a0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, ebx
mov edi, eax
test edi, edi
je 0x48d9a0
mov eax, dword [edi + 0x18]
dec eax
test eax, eax
jl 0x48d9a0
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x12c]
mov edx, dword [edi + 0x20]
add edx, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
add edx, ebx
call fcn.00404b24
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 4]
call fcn.00404d38
jne 0x48d994
mov eax, dword [edi + 0x24]
add eax, ebx
mov edx, dword [ebp - 0xc]
mov si, word [eax + edx*2]
movzx eax, si
mov edx, dword [edi + 0x1c]
add edx, ebx
mov edi, dword [edx + eax*4]
mov eax, dword [ebp - 8]
cmp edi, dword [eax + 0x50]
jbe 0x48d987
xor edi, edi
push 0x104
lea eax, [ebp - 0x125]
push eax
push ebx
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x48d987
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48d97e
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48d975
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0048d7a4
add eax, dword [ebp - 0x1c]
mov edi, eax
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.0048d7a4
add eax, dword [ebp - 0x1c]
movzx edx, si
mov edi, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push 0x104
lea eax, [ebp - 0x125]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, edi
mov eax, ebx
call fcn.0048d6f4
mov esi, eax
jmp 0x48d9a0
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x48d874
test esi, esi
jne 0x48d9b5
mov eax, dword [ebp - 4]
call fcn.00404dec
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d9dd
lea eax, [ebp - 0x12c]
call fcn.0040492c
lea eax, [ebp - 4]
call fcn.0040492c
ret
Function at 0x4905e4
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x490660
cmp dword [esp + 0x10], 0x1000
jne 0x490660
cmp dword [esp + 4], 0
je 0x490660
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x490660
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x490660
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x490660
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x493438
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 0x4934f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x493508
call fcn.0048d374
push dword [ebp - 0xc]
push 0x49351c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov cl, byte [ebp - 1]
mov eax, 0x493528
call fcn.004932fc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404cac
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404dec
push eax
call fcn.0049320c
mov esi, eax
test esi, esi
je 0x4934d6
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x4934d0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
mov dword [edx - 4], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4934f8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404950
ret

Function at 0x493778
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 0x4937e9
mov ebx, 0x5f040000
jmp 0x4937d7
cmp dword [esp + 0x10], 0x10000
jne 0x4937b5
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x4937e9
cmp dword [esp + 0xc], 0x10000
jae 0x4937c9
mov dword [esp + 0xc], 0x10000
jmp 0x4937d1
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 0x493795
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 0x493950
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 [0x4e1bd8]
cmp eax, 0x1c
jne 0x4939cb
cmp dword [ebp - 0xc], 0x1000
jne 0x4939c6
cmp dword [ebp - 0x18], 0
je 0x4939c6
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x4939c6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x4939a5
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x4939cb
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4e1ba8]
cmp eax, 0
je 0x4939c6
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4e1bf0]
add ebx, dword [ebp - 0x10]
jmp 0x493967
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x498824
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.00404ddc
xor eax, eax
push ebp
push 0x4988e4
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 0x4988ce
cmp dword [ebp - 4], 0
jne 0x498871
lea edx, [ebp - 8]
mov eax, esi
call fcn.0049866c
test al, al
je 0x4988ce
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.0049866c
test al, al
je 0x4988bf
cmp dword [ebp - 4], 0
je 0x49889f
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 0x4988b6
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 0x4988ce
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 0x4988eb
lea eax, [ebp - 4]
call fcn.0040492c
ret

Function at 0x4988f4
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.00404ddc
xor eax, eax
push ebp
push 0x49897a
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.00404f78
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x498951
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x49894c
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x498941
add ebx, 2
jmp 0x498957
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.00404bec
add eax, dword [edi]
cmp eax, esi
ja 0x49892f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498981
lea eax, [ebp - 4]
call fcn.0040492c
ret
Function at 0x498988
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x498add
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jne 0x4989d5
mov word [ebp - 0x212], 0x2e
mov word [ebp - 0x210], 0
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_lstrlenW
cmp word [ebp + eax*2 - 0x214], 0x5c
je 0x4989fd
push 0x498aec
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [ebp - 0x226]
push eax
lea edx, [ebp - 0x22c]
mov eax, 0x498af8
call fcn.0048d374
mov eax, dword [ebp - 0x22c]
call fcn.00404dec
push eax
call fcn.00492988
push ebx
push 0
lea eax, [ebp - 0x226]
push eax
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
jne 0x498a59
lea eax, [ebp - 0x212]
push eax
push ebx
call sub.kernel32.dll_lstrcpyW
lea eax, [ebp - 0x226]
push eax
push ebx
call sub.kernel32.dll_lstrcatW
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x498aba
lea edx, [ebp - 4]
mov eax, 0x498b0c
call fcn.004988f4
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bec
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x498aac
mov eax, dword [ebp - 4]
call fcn.00404bec
cmp eax, dword [ebp - 8]
je 0x498ab0
xor ebx, ebx
jmp 0x498ab2
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x498abc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498ae4
lea eax, [ebp - 0x22c]
call fcn.0040492c
lea eax, [ebp - 4]
call fcn.0040492c
ret
Function at 0x49a298
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x49a2ec
push esi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x49a2d5
test ebx, ebx
je 0x49a2cd
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x49a2cd
push ebx
push esi
call sub.advapi32.dll_EqualSid
test eax, eax
jne 0x49a2d1
xor eax, eax
jmp 0x49a2ee
mov al, 1
jmp 0x49a2ee
test ebx, ebx
je 0x49a2e7
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x49a2e7
xor eax, eax
jmp 0x49a2ee
mov al, 1
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x49aab8
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.0049a7fc
pop ecx
test al, al
jne 0x49abe0
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.0049a7fc
pop ecx
test al, al
jne 0x49abe0
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x4e4668]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x4e4668]
push eax
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0049a7fc
pop ecx
test al, al
jne 0x49abe0
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA_1
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.0049a7fc
pop ecx
test al, al
jne 0x49abe0
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.0049a7fc
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49b250
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 0x49b27b
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x49b28f
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 0x49b293
xor eax, eax
jmp 0x49b295
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x49b404
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 0x49b49b
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.0049b224
test al, al
je 0x49b49b
cmp word [ebp - 2], 0x5a4d
jne 0x49b49b
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.0049b224
test al, al
je 0x49b49b
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.0049b224
test al, al
je 0x49b49b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x49b49b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x49b49f
xor eax, eax
jmp 0x49b4a1
mov al, 1
test al, al
je 0x49b4be
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 0x49d094
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.00491350
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 0x49d1e1
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 0x49d1e1
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 0x49d1e1
cmp dword [esi + 0x20], 0
je 0x49d15d
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 0x49d1e1
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 0x49d1e1
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x49d1e1
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 0x49d1e1
cmp byte [ebp - 0x16], 0xe8
jne 0x49d1e1
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 0x49d1e1
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
call sub.kernel32.dll_VirtualProtect
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49da5c
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x49db1d
xor ecx, ecx
push ebp
push 0x49db16
push dword fs:[ecx]
mov dword fs:[ecx], 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 0x49daff
mov eax, dword [ebp - 8]
add eax, eax
call fcn.004027ac
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 0x49daf8
mov eax, dword [ebx]
dec eax
test eax, eax
jl 0x49dae4
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
or dword [ebx + ecx*4 + 0xc], 2
inc edx
dec eax
jne 0x49dad8
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
mov eax, ebx
call fcn.004027cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49db1d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a41cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a4286
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405060
mov eax, dword [0x4e34ec]
cmp byte [eax], 0
je 0x4a423b
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004053c0
mov eax, dword [ebx]
call fcn.004051ec
push eax
mov eax, dword [ebx]
call fcn.004051dc
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004051ec
mov edx, eax
dec edx
mov eax, ebx
call fcn.004053c0
jmp 0x4a426d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409ec4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004051cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a428d
lea eax, [ebp - 0x3f0]
call fcn.0040492c
ret

Function at 0x4a73ec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4a7446
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.004a7450
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a744d
ret
Function at 0x4accf8
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4acd2e
jmp 0x4acdd4
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4acd72
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x168], 0
je 0x4acd72
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x14]
jmp 0x4acd82
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x164]
test edx, edx
je 0x4acd82
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4acd9b
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004a96d8
jmp 0x4acdd4
mov dl, 1
mov eax, dword [0x42482c]
call fcn.00426810
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00427280
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.004263c0
mov edx, esp
mov eax, esi
call fcn.00426f14
mov eax, esi
call fcn.00403ab8
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4af3a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0046bb0c
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.004650f8
pop ebx
ret