joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d840
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x536014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x14]
call fcn.004148c0
mov ebx, dword [ebp + 0xc]
mov edx, esi
push ecx
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0045cea0
add esp, 8
test eax, eax
je 0x45d8c2
push 0
push ebx
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.0045c8a0
add esp, 8
push dword [edi]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x80000000
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0045e2a0
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45d8f8
push eax
call edi
mov dword [ebp - 0x24], 0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push str.FileAssociations
mov dword [ebp - 0x20], 0
call fcn.0045dcd0
add esp, 4
lea ecx, [ebp - 0x24]
push 0x2001f
push dword [eax]
push 0x80000002
call fcn.0041bbb0
mov edx, dword [ebp - 0x18]
test eax, eax
sete byte [ebp - 0xd]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45d962
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45d960
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45d962
call esi
cmp byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x24]
je 0x45d975
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45d9ac
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45d9a8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45d9ac
mov ecx, edx
call ebx
test esi, esi
je 0x45d9b3
push esi
call edi
mov eax, 1
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 0x45e410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45e481
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x45e44f
cmp eax, 2
jne 0x45e46b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x45e47b
test ecx, ecx
je 0x45e476
test cl, 1
jne 0x45e46b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x45e47b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45e5a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x45e5b5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e5c0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x45ed50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f50b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x13c], eax
call fcn.0045e8e0
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.00409d10
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x130]
cmp dword [ebp - 0x144], 0x10
mov edx, 0x100
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
mov dword [ebp - 0x134], eax
xor eax, eax
nop word [eax + eax]
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x45ee00
xor dl, dl
mov word [ebp - 0x30], 0
xor ebx, ebx
lea esi, [ebp - 0x130]
mov edi, 0x100
mov eax, dword [ebp - 0x134]
lea esi, [esi + 1]
mov cl, byte [esi - 1]
movzx edx, dl
mov al, byte [edx + eax]
add al, bl
add al, cl
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x130]
mov byte [esi - 1], al
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x138]
mov byte [ebp + ebx - 0x130], cl
sub edi, 1
jne 0x45ee20
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
jle 0x45eeba
movzx edx, byte [ebp - 0x30]
movzx ebx, byte [ebp - 0x2f]
nop dword [eax + eax]
inc dl
movzx edx, dl
mov cl, byte [ebp + edx - 0x130]
add bl, cl
movzx ebx, bl
movzx eax, byte [ebp + ebx - 0x130]
mov byte [ebp + edx - 0x130], al
mov byte [ebp + ebx - 0x130], cl
movzx eax, byte [ebp + edx - 0x130]
add al, cl
mov ecx, dword [ebp - 0x13c]
movzx eax, al
movzx eax, byte [ebp + eax - 0x130]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x45ee70
mov eax, dword [ebp - 0x144]
cmp eax, 0x10
jb 0x45eed8
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.00407610
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x45eeed
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407610
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret 8
Function at 0x45efd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5107
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x536014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x516f50
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov dword [ebp - 0x10], 1
push esi
call fcn.004609a0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00452180
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x53c8e4]
mov dword [esi + 0x40], eax
mov eax, dword [0x53c8e8]
mov dword [esi + 0x44], eax
mov eax, edi
mov dword [esi + 0x4c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45f1f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5157
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x536014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x516f40
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], 1
push esi
call fcn.004520d0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00452180
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x53c8e4]
mov dword [esi + 0x40], eax
mov eax, dword [0x53c8e8]
mov dword [esi + 0x44], eax
mov eax, edi
mov dword [esi + 0x4c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x460590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f53b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4606e0
cmp byte [edi + 0x3d], 0
je 0x4606e0
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4605e9
xor al, al
jmp 0x4606e2
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x28]
cmp ecx, 0x10
lea esi, [ebp - 0x28]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x460645
mov dword [ebp - 0x2c], esi
xor eax, eax
jmp 0x460666
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [ebp - 0x30]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub eax, 0
je 0x460679
sub eax, 1
je 0x46067d
sub eax, 2
je 0x4606ca
xor bl, bl
jmp 0x4606cc
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x4606ac
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004b028d
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x28]
cmp esi, eax
jne 0x460675
cmp byte [edi + 0x3d], 0
je 0x4606ca
test esi, esi
jne 0x460620
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00426d00
jmp 0x460619
mov bl, 1
cmp ecx, 0x10
jb 0x4606dc
inc ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407610
mov al, bl
jmp 0x4606e2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x461f00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f563b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
call fcn.00461b40
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x134]
mov dword [ebp - 0x12c], 0
push eax
push 0
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], 0
push eax
push 0
push 0
push 0
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x46207f
xor esi, esi
mov dword [ebp - 0x130], 0x100
cmp dword [ebp - 0x12c], esi
jbe 0x46207f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [edi + 0x1c]
call ebx
test eax, eax
jne 0x462068
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x128], al
cmp byte [ebp - 0x110], al
je 0x461ff9
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x461ff0
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.00409e40
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 4], 0
call fcn.004623a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x462068
mov ecx, dword [ebp - 0x128]
inc eax
cmp eax, 0x1000
jb 0x46205f
test cl, 0x1f
jne 0x46209d
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46209d
sub ecx, eax
cmp ecx, 4
jb 0x46209d
cmp ecx, 0x23
ja 0x46209d
mov ecx, eax
push ecx
call fcn.00466902
add esp, 4
inc esi
mov dword [ebp - 0x130], 0x100
cmp esi, dword [ebp - 0x12c]
jb 0x461fa1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret 4
call fcn.004ab969
int3

Function at 0x46a44b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4bb0c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004baccb

Function at 0x4becdb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004be4b5

Function at 0x4bece6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004be6f0

Function at 0x4bf239
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004befc0
Function at 0x92ad70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x66600d
lea edi, [esi - 0x26500d]
push edi
or ebp, 0xffffffff
jmp 0x92ad92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x92ad99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x92ad88
mov eax, 1
add ebx, ebx
jne 0x92adab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x92ada0
jne 0x92adbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92ada0
xor ecx, ecx
sub eax, 3
jb 0x92add0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x92ae42
mov ebp, eax
add ebx, ebx
jne 0x92addb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x92ade8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x92ae0c
inc ecx
add ebx, ebx
jne 0x92adf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x92aded
jne 0x92ae09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92aded
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x92ae2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x92ae1d
jmp 0x92ad8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x92ae2c
add edi, ecx
jmp 0x92ad8e
pop esi
mov edi, esi
mov ecx, 0x173e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x92ae4a
cmp byte [edi], 0x11
jne 0x92ae4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x92ae4f
lea edi, [esi + 0x526000]
mov eax, dword [edi]
or eax, eax
je 0x92aebe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5330d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x53312c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x92ae7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x533134]
or eax, eax
je 0x92aeb8
mov dword [ebx], eax
add ebx, 4
jmp 0x92ae99
call dword [esi + 0x533130]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x92aeef
cmp al, 0xef
ja 0x92aee2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x92aec4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x92aed1
mov ebp, dword [esi + 0x533138]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x92af23
sub esp, 0xffffff80
jmp 0x40c41c
Function at 0x10001190
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
test eax, eax
je 0x10001240
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
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]
mov edx, dword [ebp - 0x10]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov eax, esi
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10001490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x2c
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
test eax, eax
jne 0x100014d0
test byte [0x10003178], 8
jne 0x10001550
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x20]
mov dword [esp + 8], 0x14
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextA]
sub esp, 0xc
test eax, eax
je 0x10001588
mov eax, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [eax]
test eax, eax
jne 0x1000150a
jmp 0x100014c2
mov eax, dword [ebp - 0x24]
add ebx, 1
cmp ebx, dword [eax]
jae 0x100014c2
lea eax, [ebp - 0x20]
lea esi, [ebx*8]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpA]
sub esp, 8
test eax, eax
jne 0x10001500
mov eax, dword [edi]
mov edx, dword [eax + esi]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 0xc]
mov edx, 1
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Couldnt_get_window_handle_for_item__lx_n
mov dword [esp + 8], str.SERIALUI_GetConfItems
mov dword [esp + 4], 0x10003178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
test byte [0x10003178], 8
je 0x100014c2
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Couldnt_get_window_text_for_item__lx_n
mov dword [esp + 8], str.SERIALUI_GetConfItems
mov dword [esp + 4], 0x10003178
mov dword [esp], 3
mov dword [ebp - 0x24], eax
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x24]
jmp 0x100014c4
Function at 0x100017a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x160
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
cmp eax, 0x110
je 0x10001900
cmp eax, 0x111
jne 0x10001890
mov dword [esp + 4], 8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov esi, eax
test eax, eax
je 0x100019b0
movzx eax, word [ebp + 0x10]
cmp eax, 0x410
je 0x10001830
ja 0x100018a0
cmp eax, 1
je 0x10001988
cmp eax, 2
jne 0x10001890
mov dword [esp + 4], 0x4c7
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x10001892
mov dword [ebp - 0x10c], 0x34
lea eax, [ebp - 0x10c]
mov dword [esp + 8], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDefaultCommConfigW]
sub esp, 0xc
test eax, eax
jne 0x10001881
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.GetDefaultCommConfig
mov dword [esp + 4], str.Failed
mov dword [esp], ebx
call dword [sym.imp.user32.dll_MessageBoxA]
sub esp, 0x10
mov edx, esi
mov eax, ebx
call sym._SERIALUI_DCBToDialogInfo
lea esi, [esi]
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp eax, 0x411
jne 0x10001890
mov edx, esi
mov eax, ebx
call sym._SERIALUI_DialogInfoToDCB
mov dword [esp + 8], 0x34
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetDefaultCommConfigW]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x10001890
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.GetDefaultCommConfig
mov dword [esp + 4], str.Failed
mov dword [esp], ebx
call dword [sym.imp.user32.dll_MessageBoxA]
sub esp, 0x10
jmp 0x10001892
test esi, esi
je 0x10001890
mov dword [esp + 8], esi
lea edi, [ebp - 0x15c]
mov dword [esp], ebx
mov dword [esp + 4], 8
call dword [sym.imp.user32.dll_SetWindowLongW]
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], 0x28
call dword [sym.imp.user32.dll_GetWindowTextW]
mov eax, dword [esi]
sub esp, 0xc
mov dword [esp + 8], edi
lea edi, [ebp - 0x10c]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], pe_nt_image_headers32
call sym._swprintf
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, ebx
mov edx, esi
mov esi, 1
sub esp, 8
call sym._SERIALUI_DCBToDialogInfo
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edx, esi
mov eax, ebx
mov esi, 1
call sym._SERIALUI_DialogInfoToDCB
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x10001892
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x100017e9