joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004aa80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.10045230
test eax, eax
je 0x1004ab6f
mov ecx, edi
call fcn.10045230
mov ecx, eax
call fcn.100427a0
test eax, eax
jne 0x1004ab6f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1004ab6f
mov eax, dword [0x100cefa0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x1004aae2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.10045230
mov ecx, eax
call fcn.100429d0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x1004ab6f
cmp ebx, eax
jne 0x1004ab6f
cmp dword [esp + 0x10], eax
jne 0x1004ab55
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x1004d720
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10083f08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x1004d759
inc eax
mov dword [esi + 0x10], eax
jmp 0x1004d86c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1004d76d
mov eax, 0xffffffc7
jmp 0x1004d86e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1004d77e
cmp dword [esi + 8], eax
jne 0x1004d76d
cmp dword [esi + 8], eax
jne 0x1004d797
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x1004d797
mov eax, 0xffffffc7
jmp 0x1004d86e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1004d7ab
push eax
mov ecx, ebx
call fcn.1004cf50
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.1001eb00
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1004d7dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.1001eb20
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.1004c6c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x1004d80f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100a47f0
call fcn.1001ed00
mov eax, dword [esp + 0x38]
jmp 0x1004d86e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.1004d580
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x1004d853
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.1004d5a0
mov esi, eax
test esi, esi
jne 0x1004d883
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.1004d580
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x1004d825
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100a47f0
call fcn.1001ed00
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100a47f0
call fcn.1001ed00
mov eax, esi
jmp 0x1004d86e

Function at 0x10050ad0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10050b30
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10050b30
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10050b30
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10050b30
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10050b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x10056c90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100845a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.1007d321
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.10056630
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.1007d24f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.10079afe
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.10079afe
push 1
push 0
push 0
mov ecx, esi
call fcn.10079aa6
push 1
push 0
push 1
mov ecx, esi
call fcn.10079aa6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1007d393
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10056e10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100845c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.1007d321
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.10056630
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.1007d24f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10056ed4
cmp dword [esp + 0x40], 1
jne 0x10056ed2
cmp ecx, eax
jge 0x10056ed4
mov eax, ecx
cmp eax, 0xc8
jge 0x10056ee0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.10056c90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1007d393
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10057650
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10084633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10077f19
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.1007d5c9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1007eae5
test eax, eax
je 0x1005776c
mov ecx, dword [esp + 0x3c]
call fcn.1007d5f6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10057730
push edi
mov ecx, esi
call fcn.1007ac49
mov ecx, esi
call fcn.100578d0
cmp dword [esp + 0x38], 1
jne 0x10057765
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1007ad84
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x1005a190
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1005a1c3
push esi
call fcn.1005d290
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1005a1bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1005a249
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1005a232
mov eax, dword [esi + 8]
test eax, eax
je 0x1005a1e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1005a22e
cmp eax, 2
je 0x1005a232
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1005a1da
cmp eax, 3
je 0x1005a20d
cmp eax, 1
jne 0x1005a1da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1005a1da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1005a1da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1005a270
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1005a258
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1005a270
add esp, 4
pop esi
ret

Function at 0x10078d0f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10078d47
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10076d99
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10076d71
jmp 0x10078d53
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1007a406
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1007a448
call fcn.1007fecb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1007a448
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1007a43f
xor eax, eax
jmp 0x1007a450
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1007a456
pop edi
pop esi
pop ebx
ret 4
Function at 0x9f289b8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9f4e7f0
push 0x9f0ec68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x9f28a3e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x9f28a16
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x9f28a44
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x9f28a0e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x9f28a0e
mov al, 1
jmp 0x9f28a10
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x9f28aaf
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x9f57cac]
test esi, esi
je 0x9f28ad3
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x9f28ab7
pop esi
pop ecx
ret

Function at 0x9f28ad6
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x9f57cb8], eax
je 0x9f28aec
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x9f57cc8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x9f28b39
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x9f28b2a
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x9f28b2a
push eax
call fcn.09f28ba0
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.09f06280
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x9f28afb
mov dword [0x9f57cc8], ebx
call fcn.09f28b79
mov esi, dword [0x9f57cc4]
cmp esi, ebx
je 0x9f28b66
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.09f06280
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x9f28b4e
pop edi
mov dword [0x9f57cc4], ebx
mov dword [0x9f57cb8], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x9f28e23
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x9f57cbc]
push esi
test eax, eax
push edi
jne 0x9f28e8d
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x9f28e8b
push 8
call fcn.09f0d660
mov esi, eax
pop ecx
test esi, esi
jne 0x9f28e4f
push 8
pop edi
jmp 0x9f28e6a
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x9f28e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.09f06280
pop ecx
and dword [0x9f57cc0], 0
mov dword [0x9f57cbc], edi
mov eax, edi
jmp 0x9f28e8d
mov dword [esi + 4], edi
mov eax, dword [0x9f57cc4]
mov dword [esi], eax
mov dword [0x9f57cc4], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x9f2914f
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x9f29173
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x9f29176
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x9f29189
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x9f29190
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x9f57cb0]
mov ecx, dword [0x9f57cac]
test eax, eax
jne 0x9f291aa
test ecx, ecx
je 0x9f291bf
mov eax, ecx
mov dword [0x9f57cb0], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x9f291bf
cmp edx, dword [ebp + 8]
jb 0x9f291bf
cmp edx, dword [ebp - 4]
jbe 0x9f29318
mov eax, ecx
test ecx, ecx
mov dword [0x9f57cb0], eax
je 0x9f291ef
test eax, eax
je 0x9f291e3
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x9f291e3
cmp ecx, dword [ebp + 8]
jb 0x9f291e3
cmp ecx, dword [ebp - 4]
jbe 0x9f29318
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x9f57cb0], eax
jne 0x9f291ce
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x9f29257
cmp edi, 0x70000000
jb 0x9f29214
cmp edi, 0x80000000
ja 0x9f29214
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x9f29257
cmp dword [ebp - 0x10], ebx
jne 0x9f2922f
cmp dword [ebp - 0x14], ebx
jae 0x9f2923f
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x9f291ff
jmp 0x9f29257
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x9f57cb0], eax
jne 0x9f292ce
cmp esi, dword [ebp - 4]
jae 0x9f2933f
cmp esi, 0x70000000
jb 0x9f29275
cmp esi, 0x80000000
ja 0x9f29275
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x9f2933f
cmp dword [ebp - 0x10], ebx
jne 0x9f292c3
cmp dword [ebp - 0x14], ebx
jb 0x9f292c3
mov ecx, esi
and ecx, 0xffff
je 0x9f292ab
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x9f57cb0], eax
jne 0x9f292ce
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x9f29257
mov dword [eax], 0x52727464
mov eax, dword [0x9f57cb0]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x9f57cb0]
mov edx, dword [0x9f57cac]
mov dword [eax + 4], edx
mov eax, dword [0x9f57cb0]
mov dword [0x9f57cac], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x9f29300
mov eax, dword [0x9f57cb0]
mov dword [eax + 8], ecx
mov eax, dword [0x9f57cb0]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x9f2933f
cmp esi, dword [ebp - 4]
ja 0x9f2933f
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.09f0d600
add esp, 0xc
mov eax, esi
jmp 0x9f29341
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9f29346
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9f4e800
push 0x9f0ec68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x9f293bb
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x9f293b7
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x9f293b7
cmp word [eax + 0x14], 0
jne 0x9f293ac
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x9f293bd
mov eax, ecx
jmp 0x9f293a6
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x9f293cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x9f57cb8], eax
je 0x9f293eb
mov eax, 0x10dd
jmp 0x9f294c1
mov eax, dword [0x9f57cbc]
test eax, eax
jne 0x9f294c1
mov edi, dword [ebp + 8]
test edi, edi
jne 0x9f29407
push 6
pop eax
jmp 0x9f294c1
cmp dword [edi], 0
jne 0x9f29419
push 6
pop eax
mov dword [0x9f57cbc], eax
jmp 0x9f294bb
push 0x18
call fcn.09f0d660
mov esi, eax
pop ecx
test esi, esi
jne 0x9f2942c
push 8
pop edi
jmp 0x9f294a5
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.09f28950
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x9f2949a
cmp ecx, 0x17
ja 0x9f2949a
cmp dword [edi + 0x1c], eax
jne 0x9f2949a
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x9f29470
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x9f294a5
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x9f57cc8]
mov dword [esi], eax
mov dword [0x9f57cc8], esi
xor eax, eax
jmp 0x9f294c1
cmp dword [0x9f57cb4], edx
push 9
pop edi
jne 0x9f294ab
mov dword [0x9f57cbc], edi
test esi, esi
je 0x9f294b6
push esi
call fcn.09f06280
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x9f57cc0], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x2a2925f9
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x17174313
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4afce4
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 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
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 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
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 eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10034485
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor al, 0x69
cmp byte [ebp - 0x53], cl
and dh, ch
mov dword [edi], esp
lodsd eax, dword [esi]
aas
popfd
xor al, 0xe1
mov eax, 0x37b7ad12
dec ebp
mov cl, 0x9c
mov esi, 0xb8299574
fsubr qword [edx]
mov dword [ecx - 0x35], edi
lodsb al, byte [esi]
popfd
cmp dword [edx + 0x1d], ecx
lodsb al, byte [esi]
mov bh, 0x4c
cld
in eax, dx
add al, 0x72
std
popfd
mov ah, 0x89
sub al, 0x62
mov ebp, 0xa82901e4
or edx, dword [edi - 0x46764b62]
adc ecx, edi
adc al, 0xf9
mov eax, dword [0xe6345cb7]
mov esp, 0x329ea20c
sal dword [eax], 0xb7
dec esp
xor al, 0x18
mov ecx, 0x37ef78b4
jns 0x1003448f
outsb dx, byte [esi]
movsb byte es:[edi], byte [esi]
or eax, 0x52e7a66b
sub al, 0x9d
mov ch, 0xfd
les eax, [ebx]
inc eax
xchg esp, eax
sub al, 0x60
mov bh, 0x80
push 0xffffffffffffff9e
movsb byte es:[edi], byte [esi]
mov ch, byte [ecx - 0x75f540ef]
popfd
les ecx, [ecx - 0x74835f57]
invalid