joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b89f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10021425
call fcn.1001c789
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x1002b900
call fcn.10027933
mov esi, eax
jmp 0x1002ba18
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x1002b91f
call fcn.10027933
jmp 0x1002ba0f
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x1002b915
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x1002b96b
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1002b961
lea ecx, [ebp - 0x418]
call fcn.1002917c
mov esi, 0x8007000e
jmp 0x1002ba31
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.10024ee3
cmp eax, 0x400
jbe 0x1002b992
push eax
lea ecx, [ebp - 0x418]
call fcn.100276be
mov eax, dword [ebp - 0x418]
jmp 0x1002b99e
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1002b9c8
test eax, eax
jne 0x1002b9d3
mov esi, 0x8007000e
jmp 0x1002ba11
push ebx
push eax
push ebx
push dword [ebp - 0x424]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1002b915
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.1002b748
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1002ba31
lea ecx, [ebp - 0x418]
call fcn.1002917c
lea ecx, [ebp - 0x428]
call fcn.1002589e
mov eax, esi
call fcn.1001c6db
ret 0x10
Function at 0x1002d289
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x1002d2a6
mov ecx, 0x80004005
call fcn.100279d4
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x1002d2b7
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1002d2af
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1002d2ed
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0x1002d308
mov ecx, 0x80004005
call fcn.100279d4
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002d30f
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1002f462
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0x10061c48
push 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [0x10062188], esi
mov dword [0x10062184], esi
mov dword [0x10062180], esi
mov dword [0x1006217c], esi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
jne 0x1002f4ac
inc esi
jmp 0x1002f52f
push edi
push ebx
call fcn.1001b614
mov edi, eax
pop ecx
test edi, edi
jne 0x1002f4c1
mov esi, 0x8007000e
jmp 0x1002f52e
push ebx
push esi
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push ebx
push esi
push 0x10061c48
push 3
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x1002f4e7
mov esi, 0x80004005
jmp 0x1002f527
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1000874c
push edi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x1002f527
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0xa]
mov dword [0x10062188], eax
movzx eax, word [ecx + 8]
mov dword [0x10062184], eax
movzx eax, word [ecx + 0xe]
mov dword [0x10062180], eax
movzx ecx, word [ecx + 0xc]
mov dword [0x1006217c], ecx
push edi
call fcn.1001b63d
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1002fa4d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1002fab8
cmp dword [ebp - 4], 1
je 0x1002fa8d
cmp dword [ebp - 4], 2
jne 0x1002faa8
mov ecx, dword [ebp - 8]
test esi, esi
je 0x1002fab2
test ecx, ecx
je 0x1002faad
test cl, 1
jne 0x1002faa8
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x1002fab2
push 0xd
pop eax
jmp 0x1002fab8
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10048d22
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push eax
mov dword [ebp - 0x1c], ebx
mov edi, 0x80004005
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, ebx
mov dword [ebp - 0x14], eax
xor ecx, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x10048d4a
sub esi, edx
sar esi, 1
mov dword [ebp - 0x18], esi
test esi, esi
jle 0x10048ea7
lea ebx, [esi + esi]
xor ecx, ecx
push 0x1c
pop edx
mov eax, ebx
mov dword [ebp - 0x20], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001b614
mov dword [ebp - 0x24], eax
pop ecx
test eax, eax
je 0x10048ea7
xor ecx, ecx
lea edi, [eax + 4]
mov edx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov dword [ebp - 0xc], edx
mov ebx, esi
mov dword [ebp - 8], edi
test ecx, ecx
je 0x10048e15
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
lea esi, [edi - 4]
push ecx
xor ecx, ecx
mov dword [esi], 1
push ecx
movzx eax, word [eax + edx*2]
push eax
mov word [edi], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov word [edi + 2], ax
xor eax, eax
mov dword [edi + 4], eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edx, dword [ebp - 0x10]
add eax, edx
add dword [ebp - 4], 2
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], eax
add edi, 0x18
mov eax, dword [ebp - 0xc]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
or dword [edi + 0x20], 2
inc eax
inc edx
mov dword [ebp - 0xc], eax
add edi, 0x38
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edi
mov edx, eax
cmp eax, ebx
jl 0x10048dac
jmp 0x10048e82
xor edx, edx
neg eax
mov ecx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
lea esi, [edi - 4]
push edx
mov dword [esi], 1
movzx eax, word [eax + ecx*2]
push eax
mov word [edi], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [edi + 2], ax
xor eax, eax
mov dword [edi + 4], eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edx, dword [ebp - 0x10]
add eax, edx
add dword [ebp - 4], 2
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], eax
add edi, 0x18
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
push eax
or dword [edi + 0x20], 2
inc ecx
inc edx
mov dword [ebp - 0x14], ecx
add edi, 0x38
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edi
pop edx
cmp ecx, ebx
jl 0x10048e21
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
push 0x1c
push esi
push ebx
call dword [sym.imp.USER32.dll_SendInput]
sub ebx, eax
neg ebx
push esi
sbb ebx, ebx
and ebx, 0x80004005
mov edi, ebx
call fcn.1001b63d
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005cf0d
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100626e0]
push esi
push edi
test eax, eax
jne 0x1005cf26
call fcn.1005cfe2
test eax, eax
je 0x1005cf72
mov eax, dword [0x100626e0]
cmp eax, 1
jne 0x1005cf42
push 0xd
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
test eax, eax
je 0x1005cf72
jmp 0x1005cfb8
push eax
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x1005cf5b
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1005cfb8
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005cf76
xor eax, eax
jmp 0x1005cfb8
mov eax, dword [esi]
push dword [0x100626e0]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x1005cf9c
push 0x8000
push 0
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov eax, edi
jmp 0x1005cfb8
lea edi, [esi + 0xff0]
push esi
push dword [0x100626e0]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1005cfa2
mov eax, esi
pop edi
pop esi
ret

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x441beb
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x447845
push ebx
push esi
call fcn.00447771
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00447705
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4477f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x447844
push edi
push eax
call fcn.0044610b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x447812
call fcn.00446159
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x447843
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00447705
add esp, 0x20
test eax, eax
jne 0x447831
push edi
call fcn.00446159
jmp 0x447839
push ebx
call fcn.00446159
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x448a54
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4510c8
push 0x4510c0
push str.FlsAlloc
push 0x1f
call fcn.00448913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448a88
push dword [ebp + 8]
mov ecx, esi
call dword [0x44f130]
call esi
jmp 0x448a8e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x448ad2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4510d8
push 0x4510d0
push str.FlsGetValue
push 0x21
call fcn.00448913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448b09
push dword [ebp + 8]
mov ecx, esi
call dword [0x44f130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x448b11
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4510e0
push 0x4510d8
push str.FlsSetValue
push 0x22
call fcn.00448913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448b4b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44f130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44df10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44df3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44df3d
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 0x109b0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.109b01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x109b007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109b006a
add dl, dl
jne 0x109b0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109b00dc
xor eax, eax
add dl, dl
jne 0x109b0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109b017d
add dl, dl
jne 0x109b00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109b00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109b00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109b00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x109b00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x109b0075
mov eax, 1
add dl, dl
jne 0x109b00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109b00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x109b00e1
sub eax, ebx
mov ebx, 1
jne 0x109b0128
mov ecx, 1
add dl, dl
jne 0x109b010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x109b0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x109b0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x109b0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x109b013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x109b014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x109b0136
cmp eax, 0x7d00
jae 0x109b016d
cmp eax, 0x500
jb 0x109b0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x109b0075
cmp eax, 0x7f
ja 0x109b0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x109b0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x109b019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x109b0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001a40
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
mov esi, eax
add eax, eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x10]
sub esp, 0xc
test eax, eax
je 0x10001b60
mov dword [esp + 0x10], eax
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
test byte [0x10003038], 1
jne 0x10001b28
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], str.__s___lx_:_stub_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.TraceRegisterExW
mov dword [esp + 4], 0x10003038
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001aef
mov dword [ecx + 0x34], 0xe
jmp 0x10001b13
Function at 0x100025c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x10002618
cmp byte [esi + ebx - 1], 0xa
je 0x100025ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x4012a4
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x34], eax
call fcn.0040129d
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5c8]
add edi, 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0xb6020c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132d
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0xb6020c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xb60208]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0xb60208], eax
mov eax, dword [0xb60160]
cmove eax, dword [ebp - 0x24]
mov dword [0xb60160], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0xb60204], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4012f5
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret