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

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push str.SoftwareAkruti
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0xf5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4033d0
push 0
push 0
push str.Reinstall_the_Akruti_Application
call fcn.004244f5
pop esi
add esp, 0x104
ret
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.Directory
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403408
push 0
push 0
push str.Reinstall_the_Akruti_Application
call fcn.004244f5
pop esi
add esp, 0x104
ret
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0xa0]
call fcn.0041adba
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x104
ret

Function at 0x404559
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42d26c
call fcn.0040fc48
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push 0xa
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
call fcn.00419c9e
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CDaoWorkspace.0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41319d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43e910
cmp edx, dword [eax]
je 0x4131bf
add eax, 8
inc ecx
cmp eax, 0x43e9a0
jl 0x4131b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43e910]
jne 0x4132ed
mov eax, dword [0x4413fc]
cmp eax, 1
je 0x4132c7
test eax, eax
jne 0x4131f0
cmp dword [0x43e20c], 1
je 0x4132c7
cmp edx, 0xfc
je 0x4132ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413227
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004132f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004133e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41326a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004133e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4332ac
push edi
call fcn.00415f90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004132f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413300
lea eax, [ebp - 0xa0]
push 0x43328c
push eax
call fcn.00413300
push dword [esi + 0x43e914]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415ef9
add esp, 0x2c
pop edi
jmp 0x4132ed
lea eax, [ebp + 8]
lea esi, [esi + 0x43e914]
push 0
push eax
push dword [esi]
call fcn.004133e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41a3db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42caec
call fcn.0040fc48
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00428d03
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41a41a
call fcn.00428d03
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a428
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41a436
or eax, 0xffffffff
jmp 0x41a51e
mov ecx, esi
call fcn.0041a351
mov dword [ebp - 0x14], eax
call fcn.0041ca16
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41a46d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a46d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041c9ca
push dword [ebp - 0x14]
call fcn.0041c518
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041a0de
cmp eax, edi
je 0x41a4e0
test byte [esi + 0x24], 0x10
je 0x41a4ae
push 4
mov ecx, esi
pop ebx
call fcn.0041bd45
test ah, 1
je 0x41a4a6
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041e7df
cmp dword [esi + 0x1c], edi
je 0x41a4e0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041be5c
jmp 0x41a4e0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41a4f4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41a50d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41a50d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041a38b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41e68d
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 0x41e6cf
call fcn.00428d03
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e6cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e6c6
xor eax, eax
jmp 0x41e6d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e6dd
pop edi
pop esi
pop ebx
ret 4
Function at 0x4295df
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 0x42960d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42962b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00429545
jmp 0x42962b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42962b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00429545
test edi, edi
mov eax, edi
jne 0x429615
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x409986
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409986
lcall 0x5de5, 0x8b10c483
jmp fcn.00781ad0
Function at 0x10001580
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x160
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 0x110
je 0x10001600
cmp eax, 0x111
jne 0x10001610
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 0x10001710
movzx eax, word [ebp + 0x10]
cmp eax, 0x410
je 0x10001760
ja 0x10001620
cmp eax, 1
je 0x10001730
cmp eax, 2
jne 0x10001610
mov dword [esp + 4], 0x4c7
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x10001612
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10001680
lea esi, cs:[esi]
nop
xor esi, esi
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 0x10
cmp eax, 0x411
jne 0x10001610
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 0x10001610
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 0x10001612
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
lea esi, [ebp - 0x158]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
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 [ebp + 0x14]
sub esp, 0xc
mov eax, dword [eax]
mov dword [esp + 8], esi
lea esi, [ebp - 0x108]
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 edx, dword [ebp + 0x14]
mov eax, ebx
sub esp, 8
call sym._SERIALUI_DCBToDialogInfo
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 0x10
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x100015bd
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 0x10001612
mov dword [ebp - 0x108], 0x34
lea eax, [ebp - 0x108]
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
je 0x100017a0
mov edx, esi
mov eax, ebx
call sym._SERIALUI_DCBToDialogInfo
jmp 0x10001610
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 0x1000178d
Function at 0x10001aa0
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, 0x28
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
test eax, eax
jne 0x10001ad8
test byte [0x100041a4], 8
jne 0x10001b48
lea esp, [ebp - 0xc]
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 0x10001b80
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jne 0x10001b0d
jmp 0x10001aca
inc esi
cmp esi, dword [ebx]
jae 0x10001aca
lea eax, [ebp - 0x20]
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 0x10001b08
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], 0x100041a4
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 [0x100041a4], 8
je 0x10001aca
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], 0x100041a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001aca

Function at 0x10001bc0
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 0x10001c70
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 0x10001dc0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
call sym._SERIALUI_strdup
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.serialui.dll_drvCommConfigDialogW
sub esp, 0xc
mov esi, eax
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 eax, esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x10001ec0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
call sym._SERIALUI_strdup
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.serialui.dll_drvGetDefaultCommConfigW
sub esp, 0xc
mov esi, eax
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 eax, esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x10002420
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
call sym._SERIALUI_strdup
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.serialui.dll_drvSetDefaultCommConfigW
sub esp, 0xc
mov esi, eax
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 eax, esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x10002480
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
test byte [0x100041a4], 8
jne 0x100024f0
cmp ebx, 0x33
jbe 0x100024de
test esi, esi
je 0x100024de
lea eax, [ebp - 0xdc]
mov dword [esp + 4], 0x80000002
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_RegConnectRegistryW]
sub esp, 0xc
test eax, eax
je 0x10002528
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p__p__lx_n
mov dword [esp + 8], str.drvSetDefaultCommConfigW
mov dword [esp + 4], 0x100041a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100024af
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0xd4]
mov dword [esp + 0xc], str.SystemCurrentControlSetServicesClassPorts
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x64
call sym._swprintf
lea eax, [ebp - 0xd8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x100025a0
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
call edi
xor eax, eax
sub esp, 4
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp - 0xd8]
add esi, 8
mov dword [esp + 0x14], 0x1c
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 0x100060d8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, eax
test byte [0x100041a4], 8
jne 0x10002600
mov eax, dword [ebp - 0xd8]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x10002581
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.write_key_r_ld_n
mov dword [esp + 8], str.drvSetDefaultCommConfigW
mov dword [esp + 4], 0x100041a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100025e4
Function at 0x10002e90
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 0x10002ee8
cmp byte [esi + ebx - 1], 0xa
je 0x10002ebc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004298], 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 0x403a40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x563910]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x403aa2
push 0
push str.error1
push str.error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004dc2d2
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x58]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x18]
push eax
call fcn.00435750
add esp, 4
lea ecx, [esp + 0x18]
push 0xc
push str.downloader_
call fcn.00402f70
lea eax, [esp + 0x18]
push eax
call fcn.00435510
add esp, 4
test al, al
jne 0x403aed
lea eax, [esp + 0x18]
push eax
call fcn.00435530
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [esp + 0x20]
call fcn.00402f70
call fcn.0043af70
sub esp, 0x18
lea esi, [esp + 0x30]
mov edi, esp
lea edx, [esp + 0x30]
xor eax, eax
mov ecx, edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x40]
cmovae esi, dword [esp + 0x30]
cmovae edx, dword [esp + 0x30]
lea eax, [esi + eax*2]
push eax
push edx
call fcn.00403c90
call fcn.0043af90
push str._r_n_r_n_start_run
push 0x3f
push str.wWinMain
call fcn.0043aed0
mov eax, dword [0x56dc34]
add esp, 0x24
test eax, eax
jne 0x403b96
push 0x550
call fcn.004dc2f5
mov esi, eax
add esp, 4
test esi, esi
je 0x403b8f
push 0x550
push 0
push esi
call fcn.004e7190
add esp, 0xc
mov ecx, esi
call fcn.00414200
jmp 0x403b91
xor eax, eax
mov dword [0x56dc34], eax
push dword [esp + 0xc]
mov ecx, eax
call fcn.00414e50
mov eax, dword [0x56dc34]
test eax, eax
jne 0x403bdd
push 0x550
call fcn.004dc2f5
mov esi, eax
add esp, 4
test esi, esi
je 0x403bd6
push 0x550
push 0
push esi
call fcn.004e7190
add esp, 0xc
mov ecx, esi
call fcn.00414200
jmp 0x403bd8
xor eax, eax
mov dword [0x56dc34], eax
mov esi, dword [esp + 0x10]
push 0x543d1c
push str.downloader_start._version_is_:__s_
push 0x44
push str.wWinMain
mov dword [eax + 0x548], esi
call fcn.0043aed0
add esp, 0xc
mov ecx, esi
call fcn.00403980
add esp, 4
push str.duilibInit2_end
push 0x46
push str.wWinMain
call fcn.0043aed0
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x38]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], vtable.DNDownloaderImpl.0
call fcn.0043f7c0
sub esp, 8
lea ecx, [esp + 0x38]
call fcn.00405a00
test al, al
je 0x403c55
call fcn.0045a000
call fcn.00405c70
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 8
jb 0x403c73
push dword [esp + 0x18]
call fcn.004dc2f0
add esp, 4
mov ecx, dword [esp + 0x1ec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004dc2d2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404e90
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x56dc30], 0
push 1
mov ecx, dword [esi + 4]
call fcn.0042e0f0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 4]
call fcn.0042e0f0
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [esi + 4]
push 5
call fcn.0042e0f0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret