joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6642c160
Capabilities:
Check if process is running under wine
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x444]
push ebx
lea ebx, [ebp - 0x438]
sub esp, 0x46c
mov dword [esp + 4], eax
mov dword [esp], 0x20019
call dword [sym.imp.ntdll.dll_RtlOpenCurrentUser]
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x430], 0x18
sub esp, 8
mov dword [ebp - 0x428], ebx
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x41c], 0
mov dword [esp + 4], str.SoftwareWineDebug
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x430]
sub esp, 8
mov dword [esp + 8], eax
lea eax, [ebp - 0x440]
mov dword [esp + 4], 0x20019
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
sub esp, 0xc
test eax, eax
je 0x6642c20e
mov dword [ebp - 0x440], 0
mov eax, dword [ebp - 0x444]
mov dword [esp], eax
mov eax, dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x450], eax
call eax
mov eax, dword [ebp - 0x440]
sub esp, 4
test eax, eax
je 0x6642c388
mov dword [esp + 4], str.RelayInclude
lea edi, [ebp - 0x43c]
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x418]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x440]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x400
mov dword [esp + 8], 2
mov dword [esp], eax
mov eax, dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [esp + 4], ebx
mov dword [ebp - 0x44c], eax
call eax
sub esp, 0x18
test eax, eax
je 0x6642c3d8
mov dword [esp + 4], str.RelayExclude
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x418]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x440]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x400
mov dword [esp + 8], 2
mov dword [esp], eax
mov eax, dword [ebp - 0x44c]
mov dword [esp + 4], ebx
call eax
sub esp, 0x18
test eax, eax
je 0x6642c3c0
mov dword [esp + 4], str.SnoopInclude
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x418]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x440]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x400
mov dword [esp + 8], 2
mov dword [esp], eax
mov eax, dword [ebp - 0x44c]
mov dword [esp + 4], ebx
call eax
sub esp, 0x18
test eax, eax
je 0x6642c3a8
mov dword [esp + 4], str.SnoopExclude
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x418]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x440]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x400
mov dword [esp + 8], 2
mov dword [esp], eax
mov eax, dword [ebp - 0x44c]
mov dword [esp + 4], ebx
call eax
sub esp, 0x18
test eax, eax
je 0x6642c390
mov eax, dword [ebp - 0x440]
mov dword [esp], eax
mov eax, dword [ebp - 0x450]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x40c]
call fcn.6642bc40
mov dword [0x664521b4], eax
jmp 0x6642c374
lea eax, [ebp - 0x40c]
call fcn.6642bc40
mov dword [0x664521b0], eax
jmp 0x6642c32a
lea eax, [ebp - 0x40c]
call fcn.6642bc40
mov dword [0x664521bc], eax
jmp 0x6642c2dc
lea eax, [ebp - 0x40c]
call fcn.6642bc40
mov dword [0x664521b8], eax
jmp 0x6642c28e
Function at 0x66430ca0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov edi, dword [ecx]
mov eax, edi
movzx edx, di
shr eax, 0x10
test eax, eax
jne 0x66430cd8
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, edi
and esi, 0xffff8000
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapLock]
mov ebx, dword [0x664521e4]
sub esp, 4
test ebx, ebx
je 0x66430d8e
xor eax, eax
jmp 0x66430d1b
test edx, edx
cmove eax, ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x66430d68
mov edx, dword [ebx + 8]
cmp dword [ebx + 4], esi
jne 0x66430d10
movzx eax, word [ebx + 0xc]
sub edi, esi
add dword [ebx + 8], 1
movzx edx, di
shl eax, 0x10
or edx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapUnlock]
mov edx, dword [ebp - 0x1c]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
test eax, eax
je 0x66430d8e
movzx ecx, word [eax + 0xc]
mov ebx, eax
mov word [ebp - 0x1c], cx
movzx eax, word [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.krnl386.exe16_SetSelectorBase
mov dword [ebx + 4], esi
sub esp, 8
jmp 0x66430d23
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
xor edx, edx
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x66430d35
movzx eax, word [0x66444984]
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 1
mov dword [esp], 0x66444988
mov dword [esp + 8], eax
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edx, dword [ebp - 0x20]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x66430e7d
shl eax, 3
mov edx, 0xffff
mov ecx, eax
mov dword [ebp - 0x20], eax
mov eax, esi
or ecx, 7
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x1c], cx
mov ecx, 0x13
call fcn.6642f850
mov dword [esp + 0xc], 0
mov dword [ebp - 0x30], eax
mov eax, dword [0x6644eaec]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x6644eaf0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], eax
movzx eax, word [ebp - 0x20]
mov dword [esp + 8], edx
or eax, 7
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtSetLdtEntries]
movzx eax, word [ebp - 0x24]
mov dword [ebx + 8], 0
sub esp, 0x18
mov word [ebx + 0xc], ax
mov eax, dword [0x664521e4]
mov dword [0x664521e4], ebx
mov dword [ebx], eax
jmp 0x66430d76
xor eax, eax
mov dword [ebp - 0x20], edx
mov word [ebx + 0xc], ax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x20]
sub esp, 0xc
jmp 0x66430d35
Function at 0x66432600
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
movzx eax, word [eax + 0x1e]
mov dword [esp], eax
call fcn.664253a0
mov dword [esp + 8], 0x224
mov dword [esp + 4], 0
mov esi, eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x22c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x66432753
lea edi, [ebp - 0x220]
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
movzx eax, word [esi + 0xa]
mov dword [esp + 4], 0
mov dword [esp], 0
lea eax, [esi + eax + 8]
mov dword [esp + 8], eax
lea esi, [ebx + 8]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
sub esp, 8
test al, al
mov eax, 0
cmove esi, eax
mov dword [ebx + 4], esi
call dword [sym.imp.ntdll.dll_RtlAcquirePebLock]
mov edx, dword [ebp - 0x22c]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x66432780
mov esi, dword [edx + 0xc]
add esi, 0x10
mov edx, 0x208
mov eax, 0x206
mov edi, 0x206
mov word [ebx + 0x12], dx
movzx ecx, word [esi]
mov dword [ebx + 0x18], 0
cmp cx, ax
cmovbe eax, ecx
cmp ecx, edi
cmova ecx, edi
mov word [ebx + 0x10], ax
mov word [ebp - 0x22c], ax
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x14], eax
mov esi, dword [esi + 4]
cmp ecx, 4
jb 0x66432760
mov edi, dword [esi + ecx - 4]
mov dword [eax + ecx - 4], edi
sub ecx, 1
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
movzx edx, word [ebp - 0x22c]
xor eax, eax
shr dx, 1
movzx edx, dx
mov word [ebx + edx*2 + 0x1c], ax
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
je 0x66432739
movzx edx, byte [esi]
mov byte [ebx + 0x1c], dl
test cl, 2
je 0x66432739
movzx esi, word [esi + ecx - 2]
mov word [eax + ecx - 2], si
jmp 0x66432739
mov eax, dword [edx + 0x30]
mov esi, dword [eax + 0x10]
add esi, 0x24
jmp 0x664326e6
Function at 0x66432d40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
call fcn.664322f0
mov eax, dword fs:[0x18]
movzx eax, word [eax + 0x112]
test ax, ax
cmove ax, word [0x66452612]
movzx eax, ax
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
sub esp, 4
test eax, eax
je 0x66432f68
mov ebx, eax
test byte [0x66444a24], 8
jne 0x66432f00
mov eax, dword fs:[0x18]
movzx eax, word [eax + 0x112]
lea edi, [ebp - 0x24]
movzx esi, word [ebx + 0xc]
test ax, ax
cmove ax, word [0x66452612]
movzx eax, ax
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
sub esp, 4
test eax, eax
je 0x66432e08
mov edx, dword [eax + 0x2a]
lea edi, [ebp - 0x24]
test edx, edx
je 0x66432e08
mov word [ebp - 0x1c], si
mov dword [ebp - 0x20], 0x200000
movzx ecx, word [eax + 0x1c]
mov word [ebp - 0x22], cx
movzx eax, word [eax + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], edx
mov word [ebp - 0x24], ax
call sym.krnl386.exe16_K32WOWCallback16Ex
sub esp, 0x14
movzx eax, word [ebx + 0xc]
call fcn.66432520
movzx eax, word [0x66452616]
test ax, ax
jne 0x66432ed0
test byte [0x66444a24], 8
jne 0x66432f38
call fcn.664079f0
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edx, dword [0x66444a20]
sub esp, 8
xor ecx, ecx
movzx eax, word [ebx + 0xc]
mov word [ebx + 6], cx
cmp word [edx + 0x14], ax
jne 0x66432e6b
xor eax, eax
mov word [edx + 0x14], ax
movzx eax, word [ebx + 0xc]
call fcn.66432790
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x66432ebc
mov eax, dword [ebx + 4]
test eax, eax
je 0x66432e90
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esi + 0xc], 0
sub esp, 0xc
mov dword [esp], edi
call sym.krnl386.exe16_ReleaseThunkLock
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0x66444a20]
cmp ax, 1
jne 0x66432e51
movzx eax, word [0x66452614]
cmp word [edx + 0xe], ax
jne 0x66432e51
jmp 0x66432e21
movzx eax, word [eax + 0xc]
mov dword [esp + 0xc], str.Killing_task__04x_n
mov dword [esp + 8], str.TASK_ExitTask
mov dword [esp + 4], 0x66444a24
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.66432be0
jmp 0x66432d8b
mov dword [esp + 0xc], str.this_is_the_last_task__exiting_n
mov dword [esp + 8], str.TASK_ExitTask
mov dword [esp + 4], 0x66444a24
mov dword [esp], 3
call fcn.66432be0
jmp 0x66432e2e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.66432320
Function at 0x66432fc0
Capabilities:
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov esi, dword [ecx]
mov edi, dword fs:[0x18]
mov dword [esi + 0xb0], 0
movzx eax, word [edi + 0x112]
test ax, ax
cmove ax, word [0x66452612]
movzx eax, ax
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
sub esp, 4
test eax, eax
je 0x66433154
mov ebx, eax
mov eax, dword [edi + 0x10c]
mov dword [esp], eax
call sym.krnl386.exe16_MapSL
movzx eax, word [eax + 0x10]
sub esp, 4
shl eax, 0x10
mov dword [esp], eax
call sym.krnl386.exe16_MapSL
movzx edx, word [edi + 0x10c]
mov dword [ebp - 0x1c], eax
mov edi, eax
sub esp, 4
add edx, 0x30
mov word [eax + 0xc], dx
mov word [eax + 0xe], dx
mov ecx, dword [esi + 0xa4]
mov eax, 0x96
sub eax, ecx
add eax, edx
cmp dx, cx
mov edx, 0x96
cmovbe eax, edx
mov word [edi + 0xa], ax
mov edx, dword [esi + 0xac]
test dx, dx
jne 0x664331a0
movzx eax, word [ebx + 0x1e]
mov dword [esp], eax
call fcn.6642b030
movzx eax, word [ebx + 0x1e]
mov dword [esp], eax
call fcn.6642b0c0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x10c]
mov dword [ebp - 0x20], edx
mov dword [esp], eax
call sym.krnl386.exe16_MapSL
sub esp, 4
mov dword [esp + 4], eax
sub eax, 2
mov dword [esp + 8], 0x30
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov edx, dword [ebp - 0x20]
sub word [edx + 0x10c], 2
movzx eax, word [edx + 0x10c]
movzx edx, word [edx + 0x10e]
add eax, 0x30
shl edx, 0x10
movzx eax, ax
or eax, edx
mov dword [esp], eax
call sym.krnl386.exe16_MapSL
xor edx, edx
mov word [eax], dx
sub esp, 4
mov eax, pe_nt_image_headers32
sub dword [esi + 0xc4], 2
mov dword [esi + 0xb0], 1
cmp byte [ebx + 0x180], 0
jne 0x66433168
mov dword [esi + 0xa4], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xa]
mov dword [esi + 0xac], eax
movzx eax, word [ebx + 0xa8]
mov dword [esi + 0xa8], eax
movzx eax, word [ebx + 0xe]
mov dword [esi + 0xa0], eax
movzx eax, word [ebx + 0x1c]
mov dword [esi + 0x9c], eax
movzx eax, word [ebx + 0x60]
mov dword [esi + 0x94], eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
movzx edx, byte [ebx + 0x181]
lea eax, [ebx + 0x181]
cmp dl, 0x20
jne 0x6643318c
lea esi, [esi]
movzx edx, byte [eax + 1]
add eax, 1
cmp dl, 0x20
je 0x66433180
cmp dl, 9
je 0x66433180
sub eax, ebx
sub eax, 0x100
jmp 0x66433116
movzx eax, word [ebx + 0x1c]
mov dword [ebp - 0x20], edx
mov dword [esp], eax
call fcn.66409b70
mov edx, dword [ebp - 0x20]
sub esp, 4
movzx eax, ax
mov dword [esp + 4], 0
mov dword [esp], eax
movzx edx, dx
mov dword [esp + 8], edx
call sym.krnl386.exe16_LocalInit16
sub esp, 0xc
jmp 0x66433078
Function at 0x66434d70
Capabilities:
Query environment variable

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x18
movzx eax, word [0x66452610]
test ax, ax
je 0x66434db0
mov dword [esp], eax
call sym.krnl386.exe16_K32WOWGlobalLock16
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
cmp byte [eax], 0
mov esi, eax
mov ebx, eax
je 0x66434dd6
mov edi, dword [sym.imp.ucrtbase.dll_strlen]
lea esi, [esi]
mov dword [esp], ebx
call edi
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x66434dc8
add ebx, 1
mov dword [esp], 0
sub ebx, esi
lea eax, [ebx + 0x20]
mov dword [esp + 4], eax
call sym.krnl386.exe16_GlobalAlloc16
sub esp, 8
mov word [0x66452610], ax
test ax, ax
jne 0x66434e18
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
movzx eax, word [0x66452610]
sub esp, 4
jmp 0x66434d90
movzx eax, ax
mov dword [esp], eax
call sym.krnl386.exe16_GlobalLock16
sub esp, 4
mov edi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, 1
mov word [edi + ebx], ax
mov eax, dword [str.C:WINDOWSSYSTEMKRNL386.EXE]
mov dword [edi + ebx + 2], eax
mov eax, dword [0x6644f0c4]
mov dword [edi + ebx + 6], eax
mov eax, dword [0x6644f0c8]
mov dword [edi + ebx + 0xa], eax
mov eax, dword [0x6644f0cc]
mov dword [edi + ebx + 0xe], eax
mov eax, dword [0x6644f0d0]
mov dword [edi + ebx + 0x12], eax
mov eax, dword [0x6644f0d4]
mov dword [edi + ebx + 0x16], eax
mov eax, dword [0x6644f0d8]
mov dword [edi + ebx + 0x1a], eax
movzx eax, word [0x6644f0dc]
mov word [edi + ebx + 0x1e], ax
movzx eax, word [0x66452610]
mov dword [esp], eax
call sym.krnl386.exe16_GlobalUnlock16
sub esp, 4
jmp 0x66434dfc
Function at 0x66435500
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x4c]
sub esp, 0x64
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov edx, 1
sub esp, 4
test byte [ebp - 0x20], 1
je 0x66435525
movzx edx, word [ebp - 0x1c]
mov dword [esp], 0
xor ecx, ecx
xor eax, eax
call fcn.66434eb0
mov ebx, eax
test eax, eax
je 0x6643556d
or word [eax + 0x16], 0x10
xor eax, eax
xor edx, edx
mov word [ebx + 0x1c], ax
mov eax, dword fs:[0x18]
mov dword [ebx + 0x54], eax
movzx eax, word [ebx + 0xc]
mov word [ebx + 0xe], dx
call fcn.664324b0
movzx eax, word [ebx + 0xc]
mov ebx, dword [ebp - 4]
mov word [0x66452612], ax
leave
ret
test byte [0x66444a24], 2
jne 0x66435583
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.could_not_create_task_for_main_process_n
mov dword [esp + 8], str.TASK_CreateMainTask
mov dword [esp + 4], 0x66444a24
mov dword [esp], 1
call fcn.66432be0
jmp 0x66435576

Function at 0x664355b0
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
movzx eax, byte [ebp + 0x14]
movzx edx, word [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [ebp + 8]
call fcn.66434eb0
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x66435666
mov eax, ebx
call fcn.66432600
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, eax
test eax, eax
je 0x664356b1
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x66435670
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x66432580
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [ebp + 0x18]
sub esp, 0x18
mov dword [edx], eax
test eax, eax
je 0x66435670
movzx eax, word [ebx + 0xc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x66435683
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
sub esp, 4
mov dword [esp + 8], esi
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
movzx eax, word [ebx + 0xc]
sub esp, 0xc
call fcn.66432790
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x664370d0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x18
mov edi, dword [ecx + 4]
mov ebx, dword fs:[0x18]
mov dword [esp + 8], 0x20
mov esi, dword [ecx]
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, 0x5266
mov dword [eax + 4], esi
sub esp, 0xc
mov dword [eax + 0xb], edi
mov dword [eax], 0x68665a66
mov word [eax + 8], dx
mov byte [eax + 0xa], 0xea
mov edx, dword [ebx + 0x20]
mov dword [eax + 0x12], edx
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 0x20
mov dword [esp], eax
call fcn.66430010
lea esp, [ebp - 0x10]
pop ecx
shl eax, 0x10
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8

Function at 0x66438b80
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov esi, dword [ecx + 8]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
lea eax, [esi + esi]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x66438c58
mov edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x20]
sub esp, 0x18
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
Function at 0x66438ce0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov esi, dword [ecx + 8]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
lea eax, [esi + esi]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x66438db8
mov edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x20]
sub esp, 0x18
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc

Function at 0x66439c00
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x10
mov ebx, dword [ecx]
call dword [sym.imp.ntdll.dll_RtlAcquirePebLock]
mov edx, dword [0x66452828]
test edx, edx
je 0x66439cd0
mov eax, edx
jmp 0x66439c3a
mov eax, dword [eax]
test eax, eax
je 0x66439cd0
cmp ebx, dword [eax + 4]
jne 0x66439c30
movzx ebx, word [eax + 8]
cmp edx, eax
jne 0x66439c54
jmp 0x66439cb7
cmp eax, edx
je 0x66439cc0
mov ecx, edx
mov edx, dword [edx]
test edx, edx
jne 0x66439c50
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
test bx, bx
jne 0x66439ca0
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp], ebx
call sym.krnl386.exe16_FreeLibrary16
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov ecx, 0x66452828
lea esi, [esi]
mov edx, dword [eax]
mov dword [ecx], edx
jmp 0x66439c5c
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4