joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498ab0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3608
push eax
mov al, byte [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x10
test al, al
push ebx
push esi
push edi
je 0x498b34
lea esi, [ecx + 0x2134]
mov ecx, esi
call fcn.00489f60
test al, al
je 0x498bcd
mov ebx, dword [esp + 0x30]
mov ecx, esi
push ebx
call fcn.00489fd0
mov edi, str._GMT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
call fcn.00489cd0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0
call fcn.00489d20
test al, al
je 0x498bbc
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ebx
call fcn.00489fd0
mov edi, str._GMT
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.00489d10
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00489d10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x49a8c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xc18
push ebp
mov ebp, ecx
call fcn.0049a850
mov ecx, ebp
call fcn.0049ad80
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x49a8ff
xor al, al
pop ebp
add esp, 0xc18
ret
push ebx
push esi
push edi
mov ecx, 0xf
mov esi, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x67]
mov esi, 0x3ff
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x427], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
sub esi, ecx
mov byte [esp + 0xc27], al
lea ebx, [esp + ecx + 0x28]
lea ecx, [esp + 0x20]
push ecx
push eax
push eax
push eax
push edx
push ebx
push eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x34], esi
mov edi, 1
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x49aa4d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49aa21
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x428]
push eax
push ecx
push str.NameServer
push edx
mov ecx, ebp
mov dword [esp + 0x20], 0x7ff
call fcn.0049ad30
test al, al
je 0x49a9d8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x428]
push eax
push ecx
mov ecx, ebp
call fcn.0049aa90
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x428]
push edx
push eax
push str.DhcpNameServer
push ecx
mov ecx, ebp
mov dword [esp + 0x20], 0x7ff
call fcn.0049ad30
test al, al
je 0x49aa16
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x428]
push edx
push eax
mov ecx, ebp
call fcn.0049aa90
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
mov eax, edi
push ecx
push ebx
push eax
push edx
mov dword [esp + 0x34], esi
inc edi
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
je 0x49a976
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x49aa74
xor ebp, ebp
xor ecx, ecx
cmp ecx, ebp
pop ebp
sbb eax, eax
neg eax
add esp, 0xc18
ret
mov ebp, dword [ebp + 0x1c]
xor ecx, ecx
sub ebp, eax
sar ebp, 2
cmp ecx, ebp
pop ebp
sbb eax, eax
neg eax
add esp, 0xc18
ret
Function at 0x49ad30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x49ad66
xor al, al
pop esi
pop ecx
ret 0x10
mov edx, dword [esi]
mov ecx, 1
cmp ecx, edx
pop esi
sbb eax, eax
neg eax
pop ecx
ret 0x10
Function at 0x49e8f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.gdi32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0047aff0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49e9bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
test eax, eax
je 0x49e9bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x49e96e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x49e979
or bh, 8
and edi, 0x8000000
je 0x49e994
mov eax, dword [0x4dbf1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.user32.dll_DrawTextA]
test edi, edi
je 0x49e9bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ed90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49edbb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x49eddf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49edfa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4a2c22
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4a2c44
cmp dword [edi + 0x3c], 0
jne 0x4a2c44
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004aa182
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004a2c71
pop edi
pop esi
pop ebx
ret 8

Function at 0x4a47bd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a47f5
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a38ad
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a3885
jmp 0x4a4801
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a4805
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4d84a0
mov ecx, edi
call fcn.004a371e
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4a4858
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4a486b
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004a38ad
push eax
push esi
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004a3885
jmp 0x4a486b
mov ecx, esi
call fcn.004a64b3
test eax, eax
je 0x4a486b
push edi
mov ecx, eax
call fcn.004a47bd
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4a5dac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a5dee
call fcn.004aa182
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4a5dee
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4a5de5
xor eax, eax
jmp 0x4a5df6
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a5dfc
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aa93c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4aa96a
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4aa988
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa8a2
jmp 0x4aa988
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa988
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa8a2
test edi, edi
mov eax, edi
jne 0x4aa972
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4ab058
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4ab108
mov ecx, 0x4da3f0
call fcn.004aaa29
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4ab0e6
push str.COMCTL32.DLL
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4ab0c4
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4ab0c4
push ebx
push edi
push eax
call fcn.004a6e76
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.004a371e
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x4e3fdc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x4e4048
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x4e4091
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00507490
add esp, 8
test eax, eax
jne 0x4e408f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4e4093
jmp 0x4e403f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4fa3ba
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4fa3ca
xor eax, eax
jmp 0x4fa593
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4fa54b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bcc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x4fa3d3
cmp dword [ebp + 0x10], 0
je 0x4fa58d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x521bcc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x4fa551
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x640c15b0
Capabilities:
Get graphical window text

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, 0x168
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
cmp eax, 0x110
je 0x640c1640
cmp eax, 0x111
jne 0x640c1648
mov dword [esp + 4], 8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov edi, eax
test eax, eax
je 0x640c1748
movzx eax, si
cmp eax, 0x410
je 0x640c1790
ja 0x640c1660
cmp eax, 1
je 0x640c1768
cmp eax, 2
jne 0x640c1648
mov dword [esp + 4], 0x4c7
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x640c164a
test edi, edi
jne 0x640c16c0
lea esi, [esi]
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x411
jne 0x640c1648
mov edx, edi
mov eax, ebx
call sym._SERIALUI_DialogInfoToDCB
mov dword [esp + 8], 0x34
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetDefaultCommConfigW]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x640c1648
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 0x640c164a
mov dword [esp + 8], edi
lea esi, [ebp - 0x168]
mov dword [esp], ebx
mov dword [esp + 4], 8
call dword [sym.imp.user32.dll_SetWindowLongW]
sub esp, 0xc
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 0x28
call dword [sym.imp.user32.dll_GetWindowTextW]
mov eax, dword [edi]
sub esp, 0xc
mov dword [esp + 8], esi
lea esi, [ebp - 0x118]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], pe_nt_image_headers32
call sym._swprintf
mov dword [esp + 4], esi
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, ebx
mov edx, edi
sub esp, 8
call sym._SERIALUI_DCBToDialogInfo
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x640c15fe
mov edx, edi
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 0x640c164a
mov dword [ebp - 0x118], 0x34
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDefaultCommConfigW]
sub esp, 0xc
test eax, eax
je 0x640c17d0
mov edx, edi
mov eax, ebx
call sym._SERIALUI_DCBToDialogInfo
jmp 0x640c1648
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 0x640c17bd
Function at 0x640c1ad0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
test eax, eax
jne 0x640c1b08
test byte [0x640c41a4], 8
jne 0x640c1b78
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x2c]
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 0x640c1bb0
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jne 0x640c1b3d
jmp 0x640c1afa
inc esi
cmp esi, dword [ebx]
jae 0x640c1afa
lea eax, [ebp - 0x2c]
lea edi, [esi*8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + edi + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpA]
sub esp, 8
test eax, eax
jne 0x640c1b38
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi]
mov eax, dword [ebp + 8]
mov dword [eax], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Couldnt_get_window_handle_for_item__lx_n
mov dword [esp + 8], str.SERIALUI_GetConfItems
mov dword [esp + 4], 0x640c41a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x640c41a4], 8
je 0x640c1afa
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Couldnt_get_window_text_for_item__lx_n
mov dword [esp + 8], str.SERIALUI_GetConfItems
mov dword [esp + 4], 0x640c41a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x640c1afa

Function at 0x640c1bf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test eax, eax
je 0x640c1ca0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x1c], 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 - 0x1c]
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