joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe3b94e
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [ecx], 0x5a4d
jne 0xe3b9b5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xe3b9b5
mov esi, dword [eax + 0x78]
mov eax, dword [esi + ecx + 0x24]
and dword [ebp - 4], 0
add esi, ecx
add eax, ecx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add edi, ecx
add ebx, ecx
cmp dword [esi + 0x14], 0
mov dword [ebp - 8], eax
jbe 0xe3b9b5
jmp 0xe3b994
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
add eax, ecx
push eax
push dword [ebp + 0xc]
call fcn.00e3b753
pop ecx
test eax, eax
pop ecx
je 0xe3b9bc
inc dword [ebp - 4]
add edi, 4
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0xe3b991
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0xe3b9b7

Function at 0xe3b9ce
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0xe3bab3
cmp dword [ebp + 0xc], ebx
je 0xe3bab3
push 0xd10
push ebx
push esi
mov dword [ebp + 8], ebx
call fcn.00e3b7fb
mov edi, 0x104
lea eax, [esi + 0xc08]
push edi
push dword [ebp + 0xc]
push eax
call sub.ntdll.dll_strncpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push str._s_Mutex
push eax
call sub.ntdll.dll_sprintf
add esp, 0x24
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi], eax
je 0xe3baac
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push str._s_0
push edi
push eax
call sub.ntdll.dll__snprintf
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor ecx, ecx
cmp eax, ebx
sete cl
cmp eax, ebx
mov edi, ecx
je 0xe3ba7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0xe3ba96
lea eax, [ebp + 8]
push eax
push 0x10
push esi
call fcn.00e3bbbd
add esp, 0xc
test eax, eax
je 0xe3bab3
lea eax, [ebp + 8]
push eax
push esi
call fcn.00e3baeb
pop ecx
cmp eax, ebx
pop ecx
mov dword [esi + 0x804], eax
jne 0xe3baba
push esi
call fcn.00e3bdde
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp edi, ebx
je 0xe3bae6
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xe3bae6
mov eax, dword [esi + 0x804]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x804]
mov dword [eax + 0xc], ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 1
pop eax
jmp 0xe3bab5
Function at 0xe3c127
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
call fcn.00e3b74a
cmp dword [0xe451dc], eax
jne 0xe3c142
push 1
pop eax
leave
ret
call fcn.00e3b74a
mov dword [0xe451dc], eax
call fcn.00e3b8d1
test eax, eax
jne 0xe3c157
leave
ret
push esi
call fcn.00e3cfd7
push 0xedb88320
call fcn.00e3d6cd
mov dword [esp], 0x10000
push 0xe46020
mov esi, 0xe56028
push 0
push esi
call fcn.00e3d42d
push dword [ebp + 8]
push 0xe452f0
call fcn.00e3b9ce
push 0xe451b0
call fcn.00e3d58b
push 0x104
push dword [ebp + 8]
push 0xe451e8
call sub.ntdll.dll_strncpy
add esp, 0x28
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x804]
push 0x800
push eax
push 0x1b
call fcn.00e3b746
push eax
call dword [0xe45194]
movzx eax, word [ebp - 0x802]
push eax
push esi
call fcn.00e3d496
mov cx, word [ebp - 0x804]
mov dx, word [ebp - 0x802]
mov word [0xe451a8], cx
mov dword [0xe451ac], eax
movzx ecx, cx
push ecx
mov word [0xe451aa], dx
push dword [ebp - 0x800]
push eax
call fcn.00e3b834
movzx eax, word [0xe451a8]
mov ecx, dword [0xe451ac]
shr eax, 1
and word [ecx + eax*2], 0
movzx eax, word [0xe451a8]
shr eax, 1
push eax
push dword [0xe451ac]
call fcn.00e3c0fa
add esp, 0x1c
mov dword [0xe56040], eax
push str.NtGetNextProcess
push 0xe421f0
call fcn.00e3b678
push eax
call fcn.00e3b88d
push 1
push str.SeDebugPrivilege
mov dword [0xe451e4], eax
call fcn.00e3c085
pop ecx
pop ecx
push 1
pop eax
pop esi
leave
ret
Function at 0xe3c91d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
cmp word [ecx], 0x5a4d
jne 0xe3c948
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xe3c948
cmp word [eax + 4], 0x14c
je 0xe3c94c
xor eax, eax
leave
ret
mov eax, dword [eax + 0x80]
test eax, eax
je 0xe3c9d5
add eax, ecx
add eax, 0xc
cmp dword [eax], 0
je 0xe3c9d5
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
mov dword [ebp - 0xc], eax
call fcn.00e3b85c
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
and word [ebp - 8], 0
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x104
call dword [0xe45184]
push dword [ebp - 0xc]
call fcn.00e3b678
mov ebx, eax
test ebx, ebx
je 0xe3c9cb
lea eax, [ebp - 8]
push ebx
push eax
push dword [0xe56054]
call fcn.00e3c770
add esp, 0xc
test eax, eax
je 0xe3c9cb
push ebx
call fcn.00e3c91d
pop ecx
add esi, 0x14
cmp dword [esi], 0
jne 0xe3c964
pop esi
pop ebx
push 1
pop eax
leave
ret

Function at 0xe3cdcd
Capabilities:
Create thread

Disassembly:
xor edx, edx
cmp dword [0xe451e4], edx
jne 0xe3cdda
xor eax, eax
ret
cmp dword [esp + 8], edx
jne 0xe3cdee
push edx
push dword [esp + 8]
call fcn.00e3ce2d
pop ecx
pop ecx
jmp 0xe3ce29
test byte [0xe5603c], 1
mov eax, 0xe451c8
jne 0xe3ce12
or byte [0xe5603c], 1
push esi
mov esi, dword [esp + 8]
push edi
push 5
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push edx
push edx
push eax
push 0xe3cfc8
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
ret
Function at 0xe3d069
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push dword [0xe56058]
mov dword [ebp - 4], ebx
call fcn.00e3d18c
add esp, 0xc
mov dword [ebp - 8], eax
push 0x40
push 0x3000
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
je 0xe3d177
lea eax, [ebp - 4]
push edi
push eax
push dword [0xe56058]
call fcn.00e3d18c
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0xe3d167
push dword [ebp - 4]
call fcn.00e3d251
mov eax, dword [ebp - 4]
pop ecx
sub eax, dword [0xe56058]
cmp dword [ebp + 0xc], ebx
mov dword [eax + 0xe56058], edi
je 0xe3d10b
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0xe3d10b
mov eax, dword [esi]
push dword [esi + 8]
sub eax, dword [0xe56058]
push dword [esi + 4]
add eax, dword [ebp - 4]
push eax
call fcn.00e3b834
add esp, 0xc
dec dword [ebp + 0xc]
add esi, 0xc
cmp dword [ebp + 0xc], ebx
jne 0xe3d0e2
cmp dword [ebp + 0x14], ebx
je 0xe3d13c
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0xe3d13c
mov eax, dword [esi]
push dword [esi + 8]
sub eax, dword [0xe56058]
push dword [esi + 4]
add eax, dword [ebp - 4]
push eax
call fcn.00e3b834
add esp, 0xc
dec dword [ebp + 0x14]
add esi, 0xc
cmp dword [ebp + 0x14], ebx
jne 0xe3d113
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xe3d167
cmp esi, dword [ebp - 0xc]
jne 0xe3d167
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
mov eax, edi
jmp 0xe3d187
push 0x8000
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp - 4], ebx
je 0xe3d185
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xe3d2f0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00e3b74a
cmp dword [0xe56068], eax
jne 0xe3d3cf
mov ebx, dword [ebp + 8]
xor edi, edi
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.00e3d2bf
test eax, eax
pop ecx
jne 0xe3d3cf
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
cmp eax, edi
je 0xe3d349
push 0x40
push 0x3000
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp eax, edi
mov dword [ebp - 4], eax
je 0xe3d3cf
mov eax, dword [esi + 8]
cmp eax, edi
je 0xe3d36e
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [esi + 4]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xe3d3a6
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 0xc]
jne 0xe3d3a6
push edi
push edi
push dword [esi + 0x10]
push dword [esi + 0xc]
push ebx
call fcn.00e3d069
add esp, 0x14
cmp eax, edi
mov dword [ebp - 8], eax
je 0xe3d3a6
mov eax, dword [esi]
push edi
sub eax, dword [0xe56058]
push edi
push dword [ebp - 4]
add eax, dword [ebp - 8]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, edi
jne 0xe3d3d3
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ebx, 0x8000
je 0xe3d3c0
push ebx
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call esi
cmp dword [ebp - 8], edi
je 0xe3d3cf
push ebx
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call esi
xor eax, eax
jmp 0xe3d3e4
push edi
call sub.MSVCRT.dll_free
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xe3d496
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0xe3d584
mov edi, dword [ebp + 0xc]
test edi, edi
je 0xe3d584
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
mov ecx, dword [esi + 8]
lea ebx, [esi + 8]
test eax, eax
jbe 0xe3d4de
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
cmp edx, edi
jae 0xe3d574
inc dword [ebp + 8]
add ecx, 0xc
cmp dword [ebp + 8], eax
jb 0xe3d4c6
push 0xc
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00e3b7fb
mov eax, dword [esi]
add esp, 0xc
cmp eax, edi
ja 0xe3d4f6
mov eax, edi
add dword [esi + 0xc], edi
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
call sub.MSVCRT.dll_malloc
xor edi, edi
pop ecx
cmp eax, edi
mov dword [ebp - 4], eax
je 0xe3d584
lea ecx, [ebp + 8]
push ecx
push 0x40
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call fcn.00e3b7fb
add esp, 0xc
cmp dword [esi + 4], 1
jne 0xe3d556
cmp dword [esi + 0x10], edi
je 0xe3d556
push 0xc
lea eax, [ebp - 0x18]
push dword [ebx]
push eax
call fcn.00e3b834
push 0xc
lea eax, [ebp - 0x18]
push edi
push eax
push ebx
call fcn.00e3da1a
add esp, 0x1c
mov eax, dword [esi + 4]
push 0xc
push eax
lea ecx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push ebx
mov dword [esi + 4], ecx
call fcn.00e3da1a
mov eax, dword [ebp - 4]
add esp, 0x10
jmp 0xe3d586
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
add eax, edx
add edx, edi
mov dword [ecx], edx
add dword [esi + 0xc], edi
jmp 0xe3d586
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xe3d6fb
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, ecx
dec ecx
test edx, edx
not eax
je 0xe3d734
push esi
lea edx, [ecx + 1]
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0xe5606c]
xor eax, esi
inc ecx
dec edx
jne 0xe3d715
pop edi
pop esi
not eax
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x4265e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4265e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4265d8
mov eax, 1
add ebx, ebx
jne 0x4265fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4265f0
jne 0x42660c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4265f0
xor ecx, ecx
sub eax, 3
jb 0x426620
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426692
mov ebp, eax
add ebx, ebx
jne 0x42662b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42665c
inc ecx
add ebx, ebx
jne 0x426648
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42663d
jne 0x426659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42663d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42667c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42666d
jmp 0x4265de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42667c
add edi, ecx
jmp 0x4265de
pop esi
mov edi, esi
mov ecx, 0x5c8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42669a
cmp byte [edi], 0xa
jne 0x42669a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42669f
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x426717
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c0dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c1b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4266cc
mov ecx, edi
jns 0x4266fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c1bc]
or eax, eax
je 0x426711
mov dword [ebx], eax
add ebx, 4
jmp 0x4266e9
call dword [esi + 0x2c1c0]
popal
jmp 0x40a299
Function at 0x44aaaf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45f1b0]
jne 0x44aab9
repz ret
jmp fcn.0044d092

Function at 0x455047
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45f1b0]
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.0044e13c
and dword [ebp - 0x14], 0
cmp dword [0x4610e0], 0
mov dword [ebp - 0x18], eax
jne 0x4550fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4551a2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4551a2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4610e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4610e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4610e8], eax
call edi
push eax
call esi
mov dword [0x4610f0], eax
test eax, eax
je 0x4550fa
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4610ec], eax
mov eax, dword [0x4610ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x455153
cmp dword [0x4610f0], ecx
je 0x455153
push eax
call esi
push dword [0x4610f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x455153
test ebx, ebx
je 0x455153
call edi
test eax, eax
je 0x45514a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45514a
test byte [ebp - 8], 1
jne 0x455153
or dword [ebp + 0x10], 0x200000
jmp 0x455186
mov eax, dword [0x4610e4]
cmp eax, dword [ebp - 0x18]
je 0x455186
push eax
call esi
test eax, eax
je 0x455186
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x455186
mov eax, dword [0x4610e8]
cmp eax, dword [ebp - 0x18]
je 0x455186
push eax
call esi
test eax, eax
je 0x455186
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4610e0]
call esi
test eax, eax
je 0x4551a2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4551a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044aaaf
leave
ret
Function at 0x4a14f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a15cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a15e8
push ebx
push 0x4a15f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004077c0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a1576
mov ax, 0x83
call fcn.004a1118
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a14c8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a157f
call fcn.004a14c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d4
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x4a16e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
jmp 0x4a17a5
cmp dword [esi + 0x10], 0x1000
jne 0x4a1793
test byte [esi + 0x15], 1
jne 0x4a1793
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1744
cmp ebp, 2
je 0x4a1744
cmp ebp, 0x10
je 0x4a1744
cmp ebp, 0x20
jne 0x4a1760
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1760
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1771
mov eax, dword [esi]
add eax, ebx
call fcn.004a16e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1764
cmp byte [esp + 4], 0
je 0x4a1793
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1719
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42eb96
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x42eb96
lcall 0x5de5, 0x8b10c483
jmp loc.0096a69c
Function at 0x403120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40317b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40317b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40316a
cmp esi, edx
jae 0x40317b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403158
cmp esi, edx
jae 0x40317b
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x406c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
push 0x11
call edi
test ax, ax
js 0x406c7b
push 0x10
call edi
test ax, ax
js 0x406c7b
mov ebx, dword [ebp + 0xc]
mov ecx, esi
mov eax, dword [esi]
push ebx
push dword [ebp + 8]
call dword [eax + 0x1bc]
mov edi, eax
test edi, edi
je 0x406c7b
push dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
mov eax, dword [eax + 0x28]
push esi
call eax
test al, al
jne 0x406c7b
push dword [ebp + 0x18]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push esi
call dword [eax + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14

Function at 0x4073d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a22bd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x615780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00431eae
mov ecx, eax
test ecx, ecx
je 0x4074f1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push 1
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x238]
call eax
test al, al
je 0x4074bd
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax - 0xc]
inc ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4074bd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4074bd
push ebx
push dword [ebp - 0x10]
push eax
call fcn.00578e20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x4074bd
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x407482
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4074bd
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40749b
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4074bd
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4074b7
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4074bd
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401ec0
int3