joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esp + 0x230]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x228]
lea ecx, [esi + 4]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s
push edx
mov dword [esp + 0x1c], ebx
call fcn.00404394
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403fab
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x230]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
mov esi, 4
push eax
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x18], esi
jne 0x403f9c
cmp dword [esp + 0x10], esi
je 0x403fa0
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x218
ret 0xc

Function at 0x403fc0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
xor eax, eax
lea edx, [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, 0x82
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
lea ecx, [esi + 4]
push eax
push ecx
push str._s_s
push edx
call fcn.00404394
add esp, 0x10
mov edx, dword [esi]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x40404c
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 8]
lea eax, [esp + 0x220]
push 4
push eax
push 4
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
and eax, 0xff
pop esi
add esp, 0x20c
ret 0xc

Function at 0x404080
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x20c
xor eax, eax
lea edx, [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, 0x82
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
lea ecx, [esi + 4]
push eax
push ecx
push str._s_s
push edx
call fcn.00404394
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4040f7
mov eax, dword [esp + 0x21c]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
and eax, 0xff
pop esi
add esp, 0x20c
ret 8
Function at 0x404110
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
xor eax, eax
lea edx, [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, 0x82
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
lea ecx, [esi + 4]
push eax
push ecx
push str._s_s
push edx
call fcn.00404394
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404187
mov eax, dword [esp + 0x21c]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
and eax, 0xff
pop esi
add esp, 0x20c
ret 8

Function at 0x4041e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
xor eax, eax
lea edx, [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, 0x82
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
lea ecx, [esi + 4]
push eax
push ecx
push str._s_s
push edx
call fcn.00404394
add esp, 0x10
mov edx, dword [esi]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x404274
mov edx, dword [esp + 0x220]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
mov eax, dword [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
and eax, 0xff
pop esi
add esp, 0x20c
ret 0xc

Function at 0x404350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404370
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004054ce
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x404391
test byte [esp + 8], 2
je 0x404391
mov dword [0x4111c0], 0xd
mov dword [0x4111c4], 5
jmp 0x40436c
xor eax, eax
ret
Function at 0x70d81e00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [ebx + 4]
sub esp, 4
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
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]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret
Function at 0x70d8d920
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
test eax, eax
je 0x70d8dad2
mov ecx, dword [ebp + 8]
lock sub dword [ecx], 1
jne 0x70d8dad2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x70d8d957
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword fs:[0x18]
mov eax, dword [eax + 0x220]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x70d8da4a
nop
lea esi, [esi]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x10c]
mov dword [edx + 0x220], eax
mov edi, dword [ecx + 0x104]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x20], eax
test edi, edi
jne 0x70d8d9d0
jmp 0x70d8da0d
mov edx, dword [eax + 0x14]
mov dword [edi + 8], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov eax, dword [edi + 8]
test eax, eax
jne 0x70d8d9b0
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x104], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov edi, dword [ecx + 0x104]
test edi, edi
jne 0x70d8d9d0
mov ecx, dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
mov dword [ecx], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [eax + 0x220]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x70d8d980
mov eax, dword [ebp + 8]
mov esi, dword fs:[0x18]
mov edi, dword [eax + 0x228]
test edi, edi
je 0x70d8daaf
mov eax, esi
mov esi, edi
mov edi, eax
lea esi, [esi]
mov eax, dword [esi + 0x210]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x228], eax
mov eax, dword [esi + 0x208]
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
sub esp, 0xc
mov esi, dword [eax + 0x228]
test esi, esi
jne 0x70d8da68
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x70d91310
Capabilities:
Enumerate gui resources

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, 0x1c
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test ebx, ebx
je 0x70d91378
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._PostMessageW_16
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], sym._UXTHEME_broadcast_msg_enumchild_8
mov dword [esp], ebx
call sym._EnumChildWindows_12
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 4], esi
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call sym._EnumWindows_8
sub esp, 8
jmp 0x70d91362
Function at 0x70d91850
Capabilities:
Set registry value

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0xb8]
push ebx
sub esp, 0xec
mov dword [ebp - 0xbc], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov dword [esp], 0x80000001
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
jne 0x70d91956
mov edi, eax
lea ebx, [ebp - 0xb2]
mov eax, dword [esi + edi*4]
mov dword [esp + 8], str._d__d__d
mov dword [esp + 4], 0xd
mov ecx, eax
mov dword [esp], ebx
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x14], ecx
movzx ecx, ah
movzx eax, al
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
call sym._swprintf.constprop.0
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [edi*4 + 0x70daf2a0]
add edi, 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp edi, 0x1f
jne 0x70d918d0
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x70d919bf
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x28]
movdqu xmm0, xmmword [0x70daf390]
movdqu xmm2, xmmword [0x70daf3a0]
mov eax, ecx
nop
lea esi, [esi]
movdqu xmm1, xmm0
add eax, 0x10
paddd xmm0, xmm2
movups xmmword [eax - 0x10], xmm1
cmp edx, eax
jne 0x70d91980
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], 0x1f
mov dword [ebp - 0x28], 0x1c
mov dword [ebp - 0x24], 0x1d
mov dword [ebp - 0x20], 0x1e
call sym._SetSysColors_12
sub esp, 0xc
mov dword [esp], 0xffffffff
call sym._SetThreadDpiAwarenessContext_4
sub esp, 4
mov ebx, eax
lea eax, [esi + 0x7c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1f8
mov dword [esp], 0x2a
call sym._SystemParametersInfoW_16
lea eax, [esi + 0x274]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c
mov dword [esp], 0x22
call sym._SystemParametersInfoW_16
mov eax, dword [esi + 0x2d0]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1009
call sym._SystemParametersInfoW_16
mov eax, dword [esi + 0x2d4]
sub esp, 0x10
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1023
call sym._SystemParametersInfoW_16
sub esp, 0x10
mov dword [esp], ebx
call sym._SetThreadDpiAwarenessContext_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
Function at 0x70d93a60
Capabilities:
Enumerate gui resources
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x30
mov ebx, dword [ecx]
test byte [0x70d9808c], 8
jne 0x70d93aa0
mov eax, dword [0x70db3348]
test eax, eax
je 0x70d93a8a
test ebx, ebx
je 0x70d93ad0
lea esp, [ebp - 8]
xor eax, eax
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__d__n
mov dword [esp + 8], str.EnableTheming
mov dword [esp + 4], 0x70d9808c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d93a7d
lea eax, [ebp - 0xc]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
mov dword [0x70db3348], 0
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x70d93b28
mov dword [esp + 4], 0x31a
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call sym._EnumWindows_8
xor eax, eax
sub esp, 8
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x70daebaa
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ThemeActive
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp - 0xc]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x70d93afc

Function at 0x70d944aa
Capabilities:
Enumerate gui resources

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
test byte [0x70d9808c], 8
jne 0x70d944f8
mov dword [esp], ebx
call sym._UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x31a
mov dword [esp], sym._UXTHEME_broadcast_msg_8
mov ebx, eax
call sym._EnumWindows_8
mov eax, ebx
sub esp, 8
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__s__p__n
mov dword [esp + 8], str.ApplyTheme
mov dword [esp + 4], 0x70d9808c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d944c3
Function at 0x70d95e60
Capabilities:
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
test byte [0x70d9809c], 8
jne 0x70d95f10
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.TEXTFILE
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x70d95f48
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x70d95f50
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov edi, eax
mov dword [esp + 8], 0xc
and edi, 0xfffffffe
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]
mov dword [eax], ebx
sub esp, 0xc
mov esi, eax
mov dword [eax + 4], ebx
add ebx, edi
mov dword [eax + 8], ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Loading_resource_INI__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x70daf42c
mov dword [esp + 4], 0x70d9809c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x70d95e79
xor ebx, ebx
jmp 0x70d95eb8
xor esi, esi
test byte [0x70d9809c], 8
je 0x70d95f01
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str._s_resource_not_found_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x70daf42c
mov dword [esp + 4], 0x70d9809c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x70d95f01

Function at 0x70d95f90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
leave
ret

Function at 0x70d967d0
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 0x70d9682b
cmp byte [esi + ebx - 1], 0xa
je 0x70d967ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x70db33e4], 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
Function at 0x70d96e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x70d97008
mov edi, dword [0x70db33e4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x70d96f28
test byte [0x70d980d8], 8
jne 0x70d96fb0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x70d980e8], 8
jne 0x70d96f78
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x70d96eca
cmp esi, 3
jbe 0x70d96f30
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x70d96edb
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x70daf4f4]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x70d96eca
mov dword [esp], 0x70d980e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x70d96ea1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x70d96ea1
mov dword [esp], 0x70d980d8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x70d96e8e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x70d96e94
mov eax, 0xffffffff
jmp 0x70d96f28
Function at 0x431890
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bde4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004b17ca
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x431912
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004ae5f1
mov eax, dword [eax]
push 0x4e7214
push eax
call fcn.004a0254
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b1a55
test bl, bl
je 0x431912
push 0x4e7214
lea ecx, [esp + 0xc]
call fcn.004b1de5
push 0x4ead8c
lea ecx, [esp + 0xc]
call fcn.004b1de5
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43194e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b1a55
jmp 0x431a19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4319d2
lea edx, [esp + 0x7c]
push 0x4ead88
push edx
call fcn.004a0254
add esp, 8
test eax, eax
je 0x4319d2
lea eax, [esp + 0x7c]
push 0x4ead84
push eax
call fcn.004a0254
add esp, 8
test eax, eax
je 0x4319d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x431962
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004b1a55
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x432210
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x432272
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x432280
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bdecb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4f2bc4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4323b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4322e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b1a55
xor eax, eax
jmp 0x43242f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004b1b92
push esi
lea ecx, [esp + 0xc]
call fcn.004b1e21
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43240d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00432210
test eax, eax
jne 0x43240d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00432210
test eax, eax
jne 0x43240d
lea eax, [esp + 0x14]
push 0x4eada0
push eax
call fcn.004a1360
mov esi, eax
add esp, 8
test esi, esi
jne 0x4323ec
lea ecx, [esp + 0x14]
push 0x4ead9c
push ecx
call fcn.004a12e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4323ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4323ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004b1b42
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4322fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b1a55
xor eax, eax
jmp 0x43242f
mov byte [esi], 0
push 0x4ead98
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004b1a55
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4