joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467768
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x467807
cmp dword [ebx + 0x94], 0
jne 0x467801
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4676f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x467801
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4677c7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x467801
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004165cc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4677d6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x467a20
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4c4ca0]
cmp dword [eax + 0x30], 0
je 0x467b7d
test bl, bl
jne 0x467ace
cmp dword [esi + 0x9c], 0
jne 0x467ac3
mov eax, esi
call fcn.0046a360
push eax
push 0x46794c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x467a94
mov eax, dword [0x4c4ca0]
call fcn.0046aa40
test al, al
je 0x467a94
mov eax, dword [0x4c4cc4]
call fcn.00405eb4
mov edi, eax
cmp edi, 0
jl 0x467a94
push 0
mov eax, dword [0x4c4cc4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x467a7e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x467ac3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004165cc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x467aa3
inc dword [esi + 0x9c]
jmp 0x467b7d
cmp dword [esi + 0x9c], 0
jle 0x467b7d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x467b7d
cmp dword [esi + 0x44], 0
je 0x467b29
mov eax, dword [0x4c4ca0]
call fcn.0046aa40
test al, al
je 0x467b29
mov eax, dword [0x4c4cc4]
call fcn.00405eb4
mov edi, eax
cmp edi, 0
jl 0x467b29
push 5
mov eax, dword [0x4c4cc4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x467b13
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x467b58
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004165cc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x467b38
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4c4cc4
mov ecx, 1
mov edx, dword [0x46792c]
call fcn.00406068
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x468664
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4686ce
mov eax, ebx
call fcn.0046aa40
test al, al
jne 0x4686ce
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404d50
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4686bb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4686db
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cb4
jmp 0x4686db
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cb4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x469b64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x469bd2
mov eax, esi
call fcn.004521b0
test al, al
je 0x469bd2
mov eax, dword [ebx + 0x84]
call fcn.00451e10
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x469bd2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x469bc6
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451e10
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00449c80
jmp 0x469bd2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004699a0
pop esi
pop ebx
ret
Function at 0x46b140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46b325
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
movzx eax, byte [ebx]
call fcn.0040953c
push dword [ebp - 4]
push 0x46b33c
mov eax, dword [ebx + 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.00409628
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
mov eax, dword [ebx + 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.00409628
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
mov eax, dword [ebx + 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00409628
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x24]
call fcn.0040953c
push dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00409628
push dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
push dword [ebx + 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
push dword [ebx + 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
push dword [ebx + 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
push dword [ebx + 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push dword [ebp - 4]
push 0x46b33c
push dword [ebx + 0x20]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0046b0dc
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.00404cf8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, esi
call fcn.004050f0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46b2e6
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.004050f0
push eax
push esi
call sub.kernel32.dll_WriteFile
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b32c
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404c84
lea eax, [ebp - 4]
call fcn.00404c60
ret
Function at 0x46bd98
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 0x46be34
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00405380
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 ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00405150
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x46bdc0
cmp byte [esp], 0
je 0x46be05
mov eax, edi
call fcn.00405150
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x46be40
mov eax, edi
call fcn.00405150
push eax
mov eax, edi
call fcn.00405150
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00403060
mov edx, ebx
mov eax, edi
call fcn.00405380
jmp 0x46be40
mov eax, edi
mov edx, 0x46be50
call fcn.00404cb4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46c4f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050e0
xor eax, eax
push ebp
push 0x46c562
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404cb4
mov eax, ebx
call fcn.00405148
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x46c538
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x46c54c
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x46c541
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c569
lea eax, [ebp - 4]
call fcn.00404c60
ret

Function at 0x46ccd4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x46cd1c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x46cd12
cmp word [edi], 0x5a4d
jne 0x46cd12
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x46cd12
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46cd28
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x46ceb8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46cefe
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x46cf2f
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree
cmp esi, 0xffffffff
je 0x46cf8c
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46cf5a
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x46cf6c
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x46cf86
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4701b0
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 0x47022c
cmp dword [esp + 0x10], 0x1000
jne 0x47022c
cmp dword [esp + 4], 0
je 0x47022c
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA
test eax, eax
je 0x47022c
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x47022c
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x47022c
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 0x472a38
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x4be4b0], 0xffffffff
jne 0x472a87
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x472a80
mov eax, esp
mov edx, 0x114
call fcn.00407cdc
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x4be4b0], eax
jmp 0x472a87
xor eax, eax
mov dword [0x4be4b0], eax
cmp dword [0x4be4b0], 1
sete al
add esp, 0x114
ret

Function at 0x473474
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 - 5], al
xor eax, eax
push ebp
push 0x473534
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x47354c
call fcn.0046c4f4
push dword [ebp - 0xc]
push 0x473560
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
movzx ecx, byte [ebp - 5]
mov eax, 0x47356c
call fcn.00473338
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ff4
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.004050f0
push eax
call fcn.00473050
mov esi, eax
test esi, esi
je 0x473511
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x47350b
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 0x47353b
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404c84
lea eax, [ebp - 4]
call fcn.00404c60
ret

Function at 0x4737c4
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
test eax, 0x80000000
jne 0x473835
mov ebx, 0x5f040000
jmp 0x473823
cmp dword [esp + 0x10], 0x10000
jne 0x473801
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x473835
cmp dword [esp + 0xc], 0x10000
jae 0x473815
mov dword [esp + 0xc], 0x10000
jmp 0x47381d
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 0x4737e1
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 0x473b0c
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 [0x4be49c]
cmp eax, 0x1c
jne 0x473b87
cmp dword [ebp - 0xc], 0x1000
jne 0x473b82
cmp dword [ebp - 0x18], 0
je 0x473b82
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x473b82
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x473b61
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x473b87
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4be46c]
cmp eax, 0
je 0x473b82
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4be4c8]
add ebx, dword [ebp - 0x10]
jmp 0x473b23
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x4777c4
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 0x4779b3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x4779cc
call fcn.00470018
mov dword [0x4c4f38], eax
xor edx, edx
mov eax, 0x4779f0
call fcn.00470018
mov dword [0x4c4f3c], eax
lea eax, [ebp - 4]
mov edx, 5
call fcn.00405380
lea eax, [ebp - 4]
call fcn.00405150
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.00405150
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.00405150
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.00405150
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.00405150
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, 0x477a18
call fcn.0046c4f4
push dword [ebp - 0xc]
push 0x477a28
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0046c150
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404ff4
mov eax, dword [ebp - 4]
call fcn.004050f0
push eax
push 0
push 0
call fcn.00407058
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x477990
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x4c4f2c], esi
mov dword [0x4c4f30], edi
cmp dword [0x4c4f38], 0
je 0x4778e0
cmp dword [0x4c4f3c], 0
jne 0x477962
mov dl, 1
mov eax, 0x477a34
call fcn.00470114
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x477974
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x477974
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x477974
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x477974
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x477974
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x477974
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x4c4f34], edx
mov edx, 0x477774
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 8]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x477974
push 0x477720
push 1
call dword [0x4c4f38]
test eax, eax
setne bl
test bl, bl
jne 0x477990
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 0x4779ba
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404c84
lea eax, [ebp - 4]
call fcn.00404c60
ret
Function at 0x477a50
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 [0x4c4f38], 0
je 0x477a68
cmp dword [0x4c4f3c], 0
jne 0x477ac1
mov dl, 1
mov eax, 0x477adc
call fcn.00470114
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 0x477aa7
mov eax, dword [0x4c4f34]
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 0x477acc
push 0x477720
call dword [0x4c4f3c]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x479c38
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.004050e0
xor eax, eax
push ebp
push 0x479cf8
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x479ce2
cmp dword [ebp - 4], 0
jne 0x479c85
lea edx, [ebp - 8]
mov eax, esi
call fcn.00472a98
test al, al
je 0x479ce2
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.00472a98
test al, al
je 0x479cd3
cmp dword [ebp - 4], 0
je 0x479cb3
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 0x479cca
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
cmp dword [ebp - 8], 0
je 0x479ce2
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479cff
lea eax, [ebp - 4]
call fcn.00404c60
ret

Function at 0x479d08
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 0x479db1
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov ebx, eax
push ebx
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov edi, eax
test edi, edi
je 0x479dab
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x479da5
cmp ebx, dword [esp]
jne 0x479da5
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x479d8f
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x479d8b
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x479d6e
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
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x479dbc
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 0x479ecb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x4c4d08], 0
jne 0x479e9d
cmp byte [0x4be5c4], 0
je 0x479e05
push ebx
push 0x104
call sub.kernel32.dll_GetTempPathW
jmp 0x479e10
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
jne 0x479e1f
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.kernel32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x479e38
push 0x479ed8
push ebx
call sub.kernel32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, 0x479ee4
call fcn.0046c4f4
push dword [ebp - 0x44]
push 0x479ef4
lea edx, [ebp - 0x48]
mov eax, 0x479f00
call fcn.0046c4f4
push dword [ebp - 0x48]
push 0x479f14
lea edx, [ebp - 0x4c]
mov eax, 0x479f20
call fcn.0046c4f4
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.00404ff4
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.004050f0
push eax
call fcn.00472484
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.kernel32.dll_lstrcatW
jmp 0x479ea8
push 0x4c4d08
push ebx
call sub.kernel32.dll_lstrcpyW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479ed2
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404c84
lea eax, [ebp - 4]
call fcn.00404c60
ret

Function at 0x479f24
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.004050e0
xor eax, eax
push ebp
push 0x479fad
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
movzx eax, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.00405380
add ebx, 4
mov esi, dword [edi]
movzx eax, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x479f84
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x479f7f
movzx edx, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x479f73
add ebx, 2
jmp 0x479f8a
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.00404f20
add eax, dword [edi]
cmp eax, esi
ja 0x479f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479fb4
lea eax, [ebp - 4]
call fcn.00404c60
ret