joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a478b
Capabilities:
Query environment variable

Disassembly:
jmp 0x57e915
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57e929
xor edi, edi
jmp 0x57e96d
push ebx
push esi
call fcn.0057e80b
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.004a51ae
mov edi, eax
add esp, 0x14
test edi, edi
je 0x57e95a
push ebx
push esi
push edi
call fcn.004a4952
add esp, 0xc
push 2
push 0
call fcn.004a5b09
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x4c3800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
lea edi, [ebp - 0xc0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x64c163
call fcn.004a3eee
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ecx + 0x647288]
test edx, edx
jne 0x4c385a
mov esi, esp
push str.config.ini
call fcn.004a0a28
push eax
push 0x647288
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp esi, esp
call fcn.004a40ab
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4c388e
mov esi, esp
push 0x647288
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, esp
call fcn.004a40ab
test eax, eax
jne 0x4c388e
push 0x20a
push 0
push 0x647288
call fcn.004a1a09
add esp, 0xc
mov eax, 0x647288
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.004a40ab
mov esp, ebp
pop ebp
ret

Function at 0x4ef930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x778
push ebx
push esi
push edi
lea edi, [ebp - 0x778]
mov ecx, 0x1de
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x63f0b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4ef964
cmp dword [ebp + 0xc], 0
jne 0x4ef98e
push str.lpBuffer__cbSize
push 0x5fe1d0
push 0
mov eax, dword [0x63f050]
add eax, 1
push eax
push str.d:work360basenew_trunk360midmidgen.cpp
push 2
call fcn.004a134c
add esp, 0x18
cmp eax, 1
jne 0x4ef98e
int3
cmp dword [ebp + 8], 0
je 0x4ef99a
cmp dword [ebp + 0xc], 0x20
jae 0x4ef9a1
xor eax, eax
jmp 0x4efad4
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x420], 0x400
push 0x400
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004a1a09
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x5fec18
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp esi, esp
call fcn.004a40ab
test eax, eax
jne 0x4efad2
lea eax, [ebp - 0x414]
push eax
call fcn.004a0a82
add esp, 4
cmp eax, 0x40
jne 0x4efad2
push 0x20
lea eax, [ebp - 0x414]
push eax
push 0x80
lea ecx, [ebp - 0x4a8]
push ecx
call fcn.004a279c
lea eax, [ebp - 0x3f4]
push eax
push 0x80
lea ecx, [ebp - 0x530]
push ecx
call fcn.004a1220
push 0x400
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004a1a09
add esp, 0xc
push 0x400
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x4a8]
push ecx
call fcn.004efc10
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp esi, esp
call fcn.004a40ab
test eax, eax
jne 0x4efad2
lea eax, [ebp - 0x4a8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a1220
test eax, eax
jne 0x4efac0
mov dword [ebp - 0x778], 1
jmp 0x4efaca
mov dword [ebp - 0x778], 0
mov eax, dword [ebp - 0x778]
jmp 0x4efad4
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4efb04]
call fcn.004a43a3
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a3895
add esp, 0x778
cmp ebp, esp
call fcn.004a40ab
mov esp, ebp
pop ebp
ret
Function at 0x4f1ad0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
lea edi, [ebp - 0x444]
mov ecx, 0x111
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x63f0b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4f1b0f
mov eax, dword [ebp + 8]
push eax
call fcn.004a0a82
add esp, 4
cmp eax, 0x20
je 0x4f1b3a
push str.lpMID__strlen_lpMID___32
push 0x5fe1d0
push 0
mov ecx, dword [0x63f054]
add ecx, 1
push ecx
push str.d:work360basenew_trunk360midmidgen.cpp
push 2
call fcn.004a134c
add esp, 0x18
cmp eax, 1
jne 0x4f1b3a
int3
push 0x80
push 0
lea eax, [ebp - 0x194]
push eax
call fcn.004a1a09
add esp, 0xc
push 0x80
lea eax, [ebp - 0x194]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004efc10
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004a1220
lea eax, [ebp - 0x194]
push eax
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004a4768
mov dword [ebp - 0x1a0], 1
push 0x100
push 0
lea eax, [ebp - 0x2a8]
push eax
call fcn.004a1a09
add esp, 0xc
mov dword [ebp - 0x2b4], 0x100
mov esi, esp
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x1a0]
push edx
push 0x5fec18
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp esi, esp
call fcn.004a40ab
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
jne 0x4f1c4f
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.004a42e0
add esp, 8
test eax, eax
je 0x4f1c4f
lea eax, [ebp - 0x2a8]
push eax
call fcn.004a0a82
add esp, 4
mov esi, esp
push eax
lea ecx, [ebp - 0x2a8]
push ecx
push 1
push str.mid_old
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp esi, esp
call fcn.004a40ab
lea eax, [ebp - 0x10c]
push eax
call fcn.004a0a82
add esp, 4
mov esi, esp
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 1
push 0x5fec18
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp esi, esp
call fcn.004a40ab
push edx
mov ecx, ebp
push eax
lea edx, [0x4f1cb8]
call fcn.004a43a3
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a3895
add esp, 0x444
cmp ebp, esp
call fcn.004a40ab
mov esp, ebp
pop ebp
ret
Function at 0x407391
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, 0x80
test edi, edi
je 0x40740d
push 9
call esi
test bl, al
je 0x40740d
push 0x11
call esi
test bl, al
jne 0x40740d
push 0x10
call esi
test bl, al
jne 0x40740d
push 0x12
call esi
test bl, al
jne 0x40740d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40740d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40740d
xor eax, eax
jmp 0x40748f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x407436
push 0x11
call esi
test bl, al
jne 0x40742e
push 0x10
call esi
test bl, al
jne 0x40742e
push 0x12
call esi
test bl, al
je 0x407436
push 1
push ebp
call fcn.0040734a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40744c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40748c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40748c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40748c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40748c
dec esi
push esi
push dword [0x40e820]
call fcn.0040a1aa
test eax, eax
je 0x40748c
mov eax, dword [eax + 8]
jmp 0x40748e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x407551
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x40e734], eax
cmp eax, edi
je 0x407584
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40e738], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40e730], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4075c2
cmp dword [ebp - 0xc], 1
je 0x4075d3
cmp dword [ebp - 0xc], 2
jne 0x4075c2
cmp dword [ebp - 0x18], 5
jb 0x4075d3
jne 0x4075c2
cmp dword [ebp - 0x14], edi
jne 0x4075c2
mov dword [0x40e730], edi
cmp dword [0x40e730], edi
je 0x4075d9
call fcn.00407498
test eax, eax
jne 0x4075d9
mov dword [0x40e730], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40817e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4081a7
test byte [esp + 8], 2
je 0x40819b
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4081a9
xor eax, eax
ret 8
Function at 0x4095a0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x4097ae
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x4097ad
mov eax, dword [0x40e3d8]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4097a5
cmp dword [esp + 0x30], ebx
jl 0x409621
mov eax, dword [esp + 0x2c]
jg 0x409612
test eax, eax
je 0x409621
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x409635
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40966d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40966d
jg 0x409665
cmp eax, dword [esp + 0x34]
jbe 0x40966d
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40976c
mov edi, ebx
shr edi, 3
jmp 0x4096a0
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x4096a0
mov edi, dword [esp + 0x20]
test edx, edx
je 0x409789
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40c228]
inc eax
dec edx
jne 0x409770
cmp ebx, 0x80000
je 0x409631
mov edx, dword [0x40e3d8]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x4097e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4019e4
Capabilities:
Encode data using xor

Disassembly:
call fcn.004018c6
mov ecx, 0x207
call 0x4019e4
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x4019e7
mov eax, 0x50402f7
out dx, al
clc
div esi
cmc
retf 0x3d52

Function at 0x4056f0
Capabilities:
Allocate thread local storage

Disassembly:
mov dword [edx + 0x3c], eax
mov bl, byte es:[ebx + 0x5d]
cmp ebp, dword [edx - 0x6f107000]
nop
push esp
nop
nop
nop
nop
nop
nop
inc edx
nop
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp - 0x2a]
mov eax, dword [esi]
test eax, eax
je 0x4056a9
or ecx, dword [eax]
and dword [esi], ecx
mov edx, dword [ebp + 4]
push edx
je 0x405757
or dl, al
push es
add esp, 4
test eax, eax
jne 0x40572d
mov ebx, dword [ebp + 0x3d]
nop
nop
nop
int 0x90
nop
nop
nop
nop
nop
nop
nop
xor eax, eax
ret
rcl dword [eax - 0x2b74aa70]
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
test ebx, ebx
shld ecx, edi, 0xee
add byte [eax], al
push esi
mov esi, ebx
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffff93
add byte [edx - 0x6d], ch
push eax
aam 0xd
dec ebp
add byte [eax], al
cmp eax, 0x11176
jbe 0x40576a
add dword [eax], eax
je 0x405764
inc ebp
inc esi
add al, 0
add byte [eax], al
add byte [ebx - 0x97af78a], cl
mov esi, dword [esi + 8]
test esi, esi
jne 0x405748
invalid
stosb byte es:[edi], al
mov eax, dword [esi + 4]
mov eax, dword [esi + 4]
test dword [esp + esi*2 - 0x766a74ee], esp
add dword [eax], eax
add byte [eax], al
push 9
push ecx
dec edi
jle 0x405785
call fcn.0040a3d0
mov esi, dword [esi + 8]
test esi, esi
add byte [ebx - 0x97af78a], cl
jne 0x40576d
test dword [ebp + 0x74], eax
jne 0x40574d
sbb ebp, esp
add byte [eax], al
push esi
push ebx
mov dword [ebp - 4], esi
jl 0x40575d
adc eax, 0x758b0000
or byte [ebx], dh
inc dword [ebx + 0x7557437e]
and ecx, dword [ebx + 0x6a2c6a16]
add byte [edx], ch
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x43], 0x57
jne 0x4057ce
mov edx, dword [esi]
push 0x2c
push 0
push 0
push edx
call 0x4116b0
cmp eax, 0x14cbf
jne 0x4057c7
mov edi, 1
jmp 0x4057ce
mov dword [esi - 5], 0
mov esi, dword [esi + 8]
test dword [eax + 0x75], ebp
rol byte [ebp - 0x74d58b01], 1
jne 0x4057d8
sub cl, byte [ebx - 0x9a8038b]
push edi
push edi
not byte [edi + 0x23]
jl 0x4057ea
and edi, dword [eax + ecx + 0x71]
sti
jno 0x4057df
sar byte [esp + eax*8], 0xb1
sbb dword [esi + 0x53], edx
push esi
push ebx
call sym.imp.KERNEL32.dll_TlsAlloc
push 0
add eax, dword [edx]
push esi
push ebx
adc dword [ebp + ebx*2 + 0x24], eax
add byte [ebx - 0x3aa2528], cl
jmp 0x4057a0
Function at 0x406a00
Capabilities:
Read file on windows

Disassembly:
adc byte [ebx + 0x8ec83ec], cl
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
mov ecx, dword [ebx - 8]
pushfd
div byte [ebx]
leave
or edx, esi
push esi
or ecx, eax
push 0xa
push edx
push ecx
call fcn.0040b590
sub eax, 0x489f403d
pop esi
or esp, 0x295e96
mov esp, ebp
pop ebp
xchg edi, eax
nop
nop
nop
nop
nop
scasd eax, dword es:[edi]
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
xor esi, esi
mov word [ebx + 0xc8d0e48], cs
mov dword [esp + ecx], eax
mov eax, ecx
adc al, 0xa1
mov ecx, dword [ebp + 0x1b]
loop 0x406a61
mov dword [ecx], edx
cwde
shl byte [esi - 0x75], cl
push eax
or al, 0x89
push ecx
add al, 0x33
mov ax, word es:[ebx + 0xa]
mov esp, ecx
or byte [ebx], dh
sub eax, 0x8508b66
mov dword [ecx + 0xc], edx
xor edx, edx
mov dx, word [eax + 6]
invalid
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0xd1d2ac2
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x75c81dc7
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x664c1800
Capabilities:
Contain obfuscated stackstrings
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, 0x48
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x664c3028], 8
jne 0x664c1950
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x664c1939
lea eax, [eax + 4]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x30], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], esi
call sym._EnumMonitorsW_24
sub esp, 0x18
test eax, eax
jne 0x664c1930
cmp dword [ebx + 0x34], 0x7a
je 0x664c18d8
mov dword [esp + 8], edi
xor edi, edi
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_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [edi], eax
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov dword [esp], esi
call sym._EnumMonitorsW_24
sub esp, 0x18
test eax, eax
je 0x664c189f
nop
test byte [0x664c3028], 8
jne 0x664c1990
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__ld___s__n
mov dword [esp + 8], str.PSetupCreateMonitorInfo
mov dword [esp + 4], 0x664c3028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x664c1826
mov eax, dword [edi + 4]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.___p___lu_monitors_installed__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.PSetupCreateMonitorInfo
mov dword [esp + 4], 0x664c3028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
Function at 0x664c19d0
Capabilities:
Contain obfuscated stackstrings
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov ebx, dword [ecx]
test byte [0x664c3028], 8
jne 0x664c1a58
test ebx, ebx
je 0x664c1a1f
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x664c1a30
mov dword [esp + 8], ebx
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 esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
mov edx, dword [ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x664c19ff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.PSetupDestroyMonitorInfo
mov dword [esp + 4], 0x664c3028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x664c19ee

Function at 0x664c1a90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
test byte [0x664c3028], 8
je 0x664c1af1
xor eax, eax
test esi, esi
je 0x664c1ab6
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p___lu___p___p_____ld_n
mov dword [esp + 8], str.PSetupEnumMonitor
mov dword [esp + 4], 0x664c3028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
cmp dword [edi + 4], ebx
jbe 0x664c1b48
mov edx, dword [edi]
lea eax, [ebx + ebx*2]
lea eax, [edx + eax*4]
mov edx, dword [eax]
cmp word [edx], 0
je 0x664c1b68
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x664c1b10
sub eax, edx
mov ecx, eax
sar ecx, 1
inc ecx
cmp dword [esi], ecx
jae 0x664c1b78
mov dword [esi], ecx
xor esi, esi
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x103
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
xor eax, eax
mov ecx, 1
jmp 0x664c1b20
add eax, 2
mov dword [esp + 4], edx
mov esi, 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._memcpy
test byte [0x664c3028], 8
je 0x664c1b57
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._lu:__s_n
mov dword [esp + 8], str.PSetupEnumMonitor
mov dword [esp + 4], 0x664c3028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x664c1b57
Function at 0x664c25c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x664c261b
cmp byte [esi + ebx - 1], 0xa
je 0x664c25ef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x664c3118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret