joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005210
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000e870
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10013034]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], 0
call fcn.10006410
mov byte [esp + 0x28], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x100052c3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x100052b1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x100052b1
call fcn.10007d50
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x100052a8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x100052c3
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
call fcn.10007ca0
mov ebx, dword [esp + 0x10]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100052e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea esi, [ebx - 0x10]
mov eax, esi
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.10007d50
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.10005350
mov dword [esp + 0x28], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000532c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000bce0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10013034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push 0x58
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
lea ebx, [esi + 0x20]
push edi
push ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call sub.MSVCR100.dll_memset
push 0x110
lea edx, [ebp - 0x114]
xor eax, eax
xor ecx, ecx
push edi
push edx
mov word [esi + 0x27c], ax
mov word [esi + 0x7c], cx
mov dword [esi + 0x78], edi
mov dword [ebx], 0x58
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000bd70
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x1000bd76
cmp eax, 4
jne 0x1000bd70
cmp dword [ebp - 0x110], 0x5a
jae 0x1000bd76
mov dword [ebx], 0x4c
lea eax, [esi + 0x27c]
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x7c]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], 0x104
mov dword [esi + 0x48], 0x100
mov dword [esi + 0x54], 0x880026
mov ecx, dword [0x10013244]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x24], edi
pop edi
xor ecx, ebp
mov dword [esi + 0x64], 0x1000c1e0
mov eax, esi
pop ebx
call fcn.1000d260
mov esp, ebp
pop ebp
ret

Function at 0x1000c790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e6dc
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10013034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp ebx, esi
je 0x1000c883
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x1000c883
mov dword [0x100136d4], edi
cmp dword [0x100136a0], esi
jne 0x1000c853
push 0x84
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1000c7fb
push eax
call fcn.10003040
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x100136a0], esi
test esi, esi
je 0x1000c830
mov eax, dword [esi]
mov edx, dword [eax]
push edi
mov ecx, esi
call edx
test eax, eax
jne 0x1000c830
mov eax, 0xfffffff8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100136a0]
push 0x10013610
push 0
push eax
push 0x1000c660
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test esi, esi
jne 0x1000c86a
mov eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], esi
mov eax, dword [0x1001369c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d255
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100132d4], 0
push esi
push edi
jne 0x1000d1cb
call fcn.1000d137
test eax, eax
je 0x1000d210
mov eax, dword [0x100132d4]
cmp eax, 1
jne 0x1000d1ec
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000d210
jmp 0x1000d252
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000d252
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000d214
xor eax, eax
jmp 0x1000d252
mov eax, dword [esi]
push dword [0x100132d4]
call edi
mov edi, eax
test edi, edi
je 0x1000d236
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1000d252
lea edi, [esi + 0xff0]
push esi
push dword [0x100132d4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000d23c
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000d1b7

Function at 0x1000d260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10013034]
jne 0x1000d26a
repz ret
jmp fcn.1000d7f6
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432030]
jne 0x401116
repz ret
jmp fcn.00401d41

Function at 0x40a6cc
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.00406ace
and dword [ebp - 4], 0
cmp dword [0x434894], 0
mov ebx, eax
jne 0x40a77d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a82e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a82e
push eax
call fcn.00406a5c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434894], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x4348a4], eax
test eax, eax
je 0x40a77d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x4348a0], eax
mov eax, dword [0x4348a0]
cmp eax, ebx
je 0x40a7d5
cmp dword [0x4348a4], ebx
je 0x40a7d5
push eax
call fcn.00406ad7
push dword [0x4348a4]
mov esi, eax
call fcn.00406ad7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7d5
test edi, edi
je 0x40a7d5
call esi
test eax, eax
je 0x40a7cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a7cc
test byte [ebp - 0xc], 1
jne 0x40a7d5
or dword [ebp + 0x10], 0x200000
jmp 0x40a80e
mov eax, dword [0x434898]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a80e
mov eax, dword [0x43489c]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434894]
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a82e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a830
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401835
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401874
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401874
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401874
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401874
cmp dword [ecx + 0x74], 0xe
jbe 0x401874
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4060e9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406134
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406306
test al, al
jne 0x40612e
sub edx, 2
cmp edx, edi
jne 0x406114
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406156
lea eax, [edi + 2]
cmp edx, eax
je 0x406156
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406035
add esp, 0x10
jmp 0x406250
push esi
lea ecx, [ebp - 0x255]
call fcn.00406306
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406199
push dword [ebp - 0x25c]
jmp 0x406146
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4061d6
cmp word [ebp - 0x226], 0
je 0x4061f7
cmp word [ebp - 0x226], ax
jne 0x4061d6
cmp word [ebp - 0x224], 0
je 0x4061f7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406035
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406243
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4061b0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40622b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406250
push 0x405e65
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00408eb0
add esp, 0x10
jmp 0x406220
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401005
leave
ret

Function at 0x407d83
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efac
push 0x40efa4
push str.FlsAlloc
push 0x1f
call fcn.00407cbe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407db7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d104]
call esi
jmp 0x407dbd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x407e01
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efbc
push 0x40efb4
push str.FlsGetValue
push 0x21
call fcn.00407cbe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e38
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d104]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407e40
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efc4
push 0x40efbc
push str.FlsSetValue
push 0x22
call fcn.00407cbe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e7a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40d104]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cbd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cbfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cbfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x1000194d
nop
movzx ecx, cl
lea esi, [esi + 1]
or ecx, 0x20
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
imul ecx, ecx, 0x82f63b78
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
imul edx, eax, 0x82f63b78
xor edx, ecx
mov eax, edx
shr edx, 1
and eax, 1
imul ecx, eax, 0x82f63b78
xor ecx, edx
mov eax, ecx
shr ecx, 1
and eax, 1
imul edx, eax, 0x82f63b78
xor edx, ecx
mov eax, edx
shr edx, 1
and eax, 1
imul ecx, eax, 0x82f63b78
xor ecx, edx
mov eax, ecx
shr ecx, 1
and eax, 1
imul edx, eax, 0x82f63b78
xor edx, ecx
mov eax, edx
shr edx, 1
and eax, 1
imul ecx, eax, 0x82f63b78
xor ecx, edx
mov eax, ecx
shr ecx, 1
and eax, 1
imul eax, eax, 0x82f63b78
xor eax, ecx
mov cl, byte [esi]
test cl, cl
jne 0x100018c0
pop esi
ret

Function at 0x10001950
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x18]
xor edx, edx
push ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
mov dword [ebp - 4], ebx
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x10001a19
push esi
push edi
nop dword [eax + eax]
test edx, edx
jne 0x10001a10
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
test eax, eax
je 0x100019fd
mov esi, dword [eax + ebx + 0x18]
test esi, esi
jne 0x1000199f
xor edx, edx
jmp 0x100019fd
mov ecx, dword [eax + ebx + 0x1c]
mov edi, dword [eax + ebx + 0x20]
add ecx, ebx
mov dword [ebp - 0x14], ecx
add edi, ebx
mov ecx, dword [eax + ebx + 0x24]
add ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + ebx + 0xc]
add ecx, ebx
call fcn.100018b0
lea edi, [edi + esi*4]
mov dword [ebp - 8], eax
add edi, 0xfffffffc
nop dword [eax + eax]
mov ecx, dword [edi]
add ecx, ebx
call fcn.100018b0
add eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x100019ed
sub edi, 4
sub esi, 1
jne 0x100019d0
xor edx, edx
jmp 0x100019fd
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
movzx eax, word [eax + esi*2 - 2]
mov edx, dword [edx + eax*4]
add edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x10001980
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb25f00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, edx
mov dword [ebp - 4], ecx
push ebx
xor ecx, ecx
mov dword [ebp - 8], eax
xor ebx, ebx
push esi
lea esi, [eax + 0xf8]
cmp cx, word [eax + 6]
jae 0xb25fa4
mov ecx, dword [ebp + 0x100]
mov edx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [ebp + 0x40]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0xb25f5d
test edi, edi
jle 0xb25f94
mov eax, dword [esi + 0xc]
push 0x40
push 0x1000
push edi
add eax, ecx
push eax
call edx
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.00c6c070
jmp 0xb25f82
push 0x40
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
call edx
push dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edi, eax
add ecx, dword [ebp - 4]
push ecx
push edi
call fcn.00c6b570
mov dword [esi + 8], edi
mov edx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esp, 0xc
mov ecx, dword [ebp + 0x100]
mov edi, dword [ebp + 0x40]
mov eax, dword [ebp - 8]
inc ebx
add esi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0xb25f34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xb26130
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
xor eax, eax
push esi
lea esi, [ebx + 0xf8]
cmp ax, word [ebx + 6]
jae 0xb26225
push edi
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [esi + 0x24]
test edx, 0x2000000
jne 0xb2620e
mov eax, edx
shr eax, 0x11
and eax, 0x200
test edx, 0x20000000
je 0xb261a9
test edx, 0x40000000
je 0xb26199
test edx, edx
jns 0xb26194
or eax, 0x80
jmp 0xb261cc
or eax, 0x20
jmp 0xb261cc
test edx, edx
jns 0xb261a4
or eax, 0x80
jmp 0xb261cc
or eax, 0x10
jmp 0xb261cc
test edx, 0x40000000
je 0xb261bf
test edx, edx
jns 0xb261ba
or eax, 4
jmp 0xb261cc
or eax, 2
jmp 0xb261cc
mov ecx, eax
or eax, 1
or ecx, 8
test edx, edx
cmovs eax, ecx
mov edi, eax
mov ecx, edx
or edi, 0x200
and ecx, 0x4000000
mov ecx, dword [esi + 0x10]
cmove edi, eax
test ecx, ecx
jne 0xb2620e
test dl, 0x40
je 0xb261f0
mov eax, dword [ebx + 0x20]
jmp 0xb261f7
test dl, dl
jns 0xb2620e
mov eax, dword [ebx + 0x24]
test eax, eax
je 0xb2620e
lea eax, [ebp - 8]
push eax
push edi
push ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0xb26224
mov edx, dword [ebp - 4]
add esi, 0x28
movzx eax, word [ebx + 6]
inc edx
mov dword [ebp - 4], edx
cmp edx, eax
jl 0xb26160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb26230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
movups xmm0, xmmword [ecx + 0x10]
push ebx
movups xmm1, xmmword [ecx]
mov edx, 0x5a4d
mov dword [ebp - 0xc], ecx
movups xmmword [ebp - 0x40], xmm0
push esi
movups xmm0, xmmword [ecx + 0x20]
push edi
movd eax, xmm1
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x10], 0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [ebp - 0x20], xmm0
cmp ax, dx
jne 0xb263c7
mov esi, dword [ebp - 0x14]
lea edi, [ebp - 0x148]
add esi, ecx
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x148], 0x4550
jne 0xb263c7
mov esi, dword [ebp - 0xf8]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x2000
push esi
push dword [ebp - 0x114]
call edi
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0xb262d2
push 0x40
push 0x2000
push esi
push eax
call edi
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0xb263c7
push 0x40
push 0x1000
push esi
push ebx
call edi
mov esi, dword [ebp - 0xf4]
push 0x40
push 0x1000
push esi
push ebx
call edi
mov ecx, dword [ebp - 0x14]
mov edi, eax
add ecx, esi
push ecx
push dword [ebp - 0xc]
push edi
call fcn.00c6b570
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x148]
add esp, 0xc
lea eax, [edi + ecx]
mov dword [edi + ecx + 0x34], ebx
push ebx
sub esp, 0xf8
mov dword [ebp - 8], eax
mov ecx, 0x3e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov edx, esi
call fcn.00b25f00
mov edx, dword [ebp + 8]
add esp, 0xfc
test edx, edx
cmove edx, ebx
sub edx, dword [ebp - 0x114]
je 0xb26352
push ebx
mov ecx, esi
call fcn.00b25fb0
add esp, 4
mov edx, ebx
mov ecx, esi
call fcn.00b26050
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0xb26377
test ebx, ebx
je 0xb26377
push 0x4000
push dword [ebp - 0xf8]
push ebx
call edi
mov ecx, esi
call fcn.00b26130
mov eax, dword [esi + 0x28]
test eax, eax
je 0xb263aa
add eax, ebx
mov dword [ebp - 8], eax
je 0xb263aa
cmp eax, ebx
jbe 0xb263aa
pushal
push 0
push 1
push dword [ebp - 4]
mov eax, dword [ebp - 8]
call eax
mov dword [ebp - 0x10], eax
popal
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x10], 0
je 0xb263b9
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
push dword [ebp - 0xf8]
push ebx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb26a40
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0xce3e6c]
xor eax, ebp
mov dword [ebp - 4], eax
add dword [0xce46a0], 0x32
lea eax, [ebp - 0x404]
push ebx
push esi
push edi
push eax
xorps xmm0, xmm0
mov dword [0xcee9a0], 0
push 0x400
movq qword [0xcee9a4], xmm0
mov dword [0xcee9b0], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp + eax - 0x404], 0x74782d54
add eax, 4
cmp eax, 0x400
jae 0xb26c2d
push 0
push 0x80
push 3
push 0
push 1
mov byte [ebp + eax - 0x404], 0
lea eax, [ebp - 0x404]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, dword [0xcee9b0]
xor ebx, ebx
nop
cmp ecx, 1
jne 0xb26b5b
cmp edi, 0xffffffff
jne 0xb26b7c
call esi
mov ecx, dword [0xcee9a0]
cmp eax, ecx
ja 0xb26b06
test ecx, ecx
jne 0xb26b06
mov ecx, dword [0xcee9b0]
jmp 0xb26b5b
mov dword [0xcee9b0], 2
call esi
mov edx, dword [0xcee9a8]
add eax, 0xa
mov dword [0xcee9a0], eax
mov eax, dword [0xcee9a4]
test eax, eax
jne 0xb26b31
cmp edx, ebx
je 0xb26b49
test eax, eax
je 0xb26b49
mov ecx, dword [0xcee9b0]
test edx, edx
mov eax, 2
cmovne ecx, eax
mov dword [0xcee9b0], ecx
jmp 0xb26b4f
mov ecx, dword [0xcee9b0]
mov dword [0xcee9a4], ebx
mov dword [0xcee9a8], ebx
cmp ecx, 2
je 0xb26b7c
cmp ecx, 4
jne 0xb26ae0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00c69310
mov esp, ebp
pop ebp
ret
mov ecx, dword [0xce46a0]
xor edx, edx
movaps xmm2, xmmword [0xcc62f0]
mov dword [0xcee9b0], 3
movd xmm0, ecx
pshufd xmm3, xmm0, 0
nop
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm0, xmm0, 0
movaps xmm1, xmm3
paddd xmm0, xmm2
psubd xmm1, xmm0
movd xmm0, eax
movups xmmword [edx*4 + 0xcee9b8], xmm1
pshufd xmm0, xmm0, 0
movaps xmm1, xmm3
paddd xmm0, xmm2
psubd xmm1, xmm0
movups xmmword [edx*4 + 0xcee9c8], xmm1
add edx, 8
cmp edx, 0x60
jl 0xb26ba0
cmp edx, 0x64
jge 0xb26bfe
lea eax, [edx*4 + 0xcee9b8]
sub ecx, edx
mov dword [eax], ecx
add eax, 4
dec ecx
cmp eax, 0xceeb48
jl 0xb26bf1
mov eax, dword [0xceea80]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x3fc]
mov dword [0xcee9b4], eax
push dword [ebp - 0x408]
ret
call fcn.00c69915
int3

Function at 0xb26fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0xb26ff5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0xb27036
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 0xb27032
nop word [eax + eax]
cmp esi, edx
jae 0xb27036
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0xb27020
cmp esi, edx
jb 0xb2703b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret