joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477e1c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [ebx], 0
mov edi, ecx
mov dword [ebx + 4], eax
mov ecx, 0x3e8
mov eax, esi
inc dword [ebx]
cdq
idiv ecx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
cmp byte [ebp + 0x14], al
je 0x477e65
push ebx
push eax
jmp 0x477e67
push eax
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jne 0x477e81
cmp byte [ebp + 0x14], al
je 0x477ead
push eax
push 0x274c
jmp 0x477ea1
jle 0x477e98
push ebx
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x477ead
push 0xfffffffffffffffe
pop esi
push eax
push esi
jmp 0x477ea1
push 0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call 0x45652d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x480fa5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0xff
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
mov ebx, edx
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0xc], ebx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4810a4
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4810bb
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.00480fa5
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4810bb
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00480de7
test al, al
lea eax, [ebp - 0x228]
je 0x481056
push ebx
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ebx
push eax
push esi
call fcn.0047fcf9
call eax
jmp 0x481061
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x4810ac
cmp dword [ebp - 0x18], eax
je 0x481073
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ecx, ecx
mov dword [ebp - 4], 0xff
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x1c]
jne 0x480fef
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0
je 0x4810bb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4810a6
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48b004]
jne 0x40100a
repz ret
jmp fcn.004017db

Function at 0x406b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402504
and dword [ebp - 4], 0
cmp dword [0x48cffc], 0
mov ebx, eax
jne 0x406c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406ce0
push eax
call fcn.00402492
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48cffc], eax
call esi
push eax
call fcn.00402492
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48d000], eax
call esi
push eax
call fcn.00402492
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48d004], eax
call esi
push eax
call fcn.00402492
pop ecx
mov dword [0x48d00c], eax
test eax, eax
je 0x406c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402492
pop ecx
mov dword [0x48d008], eax
mov eax, dword [0x48d008]
cmp eax, ebx
je 0x406c87
cmp dword [0x48d00c], ebx
je 0x406c87
push eax
call fcn.0040250d
push dword [0x48d00c]
mov esi, eax
call fcn.0040250d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c87
test edi, edi
je 0x406c87
call esi
test eax, eax
je 0x406c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406c7e
test byte [ebp - 0xc], 1
jne 0x406c87
or dword [ebp + 0x10], 0x200000
jmp 0x406cc0
mov eax, dword [0x48d000]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.0040250d
pop ecx
test eax, eax
je 0x406cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406cc0
mov eax, dword [0x48d004]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.0040250d
pop ecx
test eax, eax
je 0x406cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48cffc]
call fcn.0040250d
pop ecx
test eax, eax
je 0x406ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x483f20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
cmp ebp, 0x19f
jne 0x483f41
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edi, edi
test ebp, ebp
jle 0x483f96
push esi
jmp 0x483f50
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
call fcn.00483f10
mov eax, dword [esp + 0x10]
add eax, 0x46
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 0x46
movsx eax, byte [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x18], eax
mov cl, byte [esp + 0x18]
mov byte [edi + ebx], cl
inc edi
cmp edi, ebp
jl 0x483f50
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x483fb1
mov dword [0x2b8b218], 0xa62e7790
mov dword [0x2b8b21c], 0xffffffff
add esp, 8
ret
Function at 0x404900
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x144
mov esi, dword [eax + 0x20]
mov dword [ebp - 0x138], 0
test byte [section..data], 8
jne 0x404aa0
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
je 0x404a38
lea edi, [ebp - 0x134]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x134], 0x128
call sym._Process32First_8
sub esp, 8
test eax, eax
jne 0x404997
jmp 0x404a68
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x404a68
cmp esi, dword [ebp - 0x12c]
jne 0x404980
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [ebp - 0x138], eax
sub esp, 0xc
test eax, eax
je 0x404b18
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], 0x1cff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [sym.imp.user32.dll_MsgWaitForMultipleObjects]
sub esp, 0x14
test eax, eax
jne 0x404ad0
lea esi, [esi]
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x404a26
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
jne 0x404a4f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x404b68
mov eax, dword [ebp - 0x138]
test eax, eax
jne 0x404a1a
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 4
je 0x404a10
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Unable_to_find_current_process_id__ld_when_listing_processes_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x404a10
mov dword [esp + 0xc], str.Waiting_for_parent_process_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40492c
test byte [section..data], 2
je 0x404a10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Unable_to_wait_for_parent_process__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404a10
test byte [section..data], 4
je 0x404a26
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.OpenProcess_failed_pid_ld__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], 0x40c000
mov dword [esp + 0x10], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x404a10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateToolhelp32Snapshot_failed__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404a45
Function at 0x405360
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
push ebx
mov ebx, ecx
sub esp, 0x28
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.shlwapi.dll_AssocQueryStringW]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
sub esp, 0x18
test eax, eax
js 0x4053f8
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x405415
mov dword [esp + 0x10], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
js 0x405408
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
xor edx, edx
jmp 0x4053eb
test byte [section..data], 2
jne 0x40542b
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40541e

Function at 0x405df0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathSkipRootW]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x405e1b
jmp 0x405e50
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x405e50
cmp ax, 0x5c
jne 0x405e18
xor eax, eax
mov word [ebx], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, 0x5c
mov word [ebx], dx
sub esp, 8
jmp 0x405e18
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, eax
sub esp, 8
mov eax, 1
test edx, edx
jne 0x405e7e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405e90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
movzx ebx, word [eax]
test bx, bx
je 0x405f88
mov esi, eax
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405eb0
sub eax, esi
sar eax, 1
lea eax, [eax*8 + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x405f9b
add esi, 2
xor eax, eax
lea esi, [esi]
lea ecx, [eax + eax]
lea edx, [edi + ecx]
mov dword [ebp - 0x10], edx
lea edx, [edi + ecx + 2]
mov dword [ebp - 0x14], edx
lea edx, [ebx - 9]
cmp dx, 0x75
ja case.0x405efc.2
movzx edx, dx
jmp dword [edx*4 + 0x40d0f8]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5c
add eax, 2
mov word [ecx], dx
mov ecx, dword [ebp - 0x14]
mov edx, 0x5c
mov word [ecx], dx
mov word [edi + eax*2], bx
inc eax
movzx ebx, word [esi]
add esi, 2
test bx, bx
jne 0x405ee0
lea eax, [edi + eax*2]
xor edx, edx
mov word [eax], dx
mov eax, edi
call sym._wchars_to_utf8_chars
mov dword [esp], edi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov edx, 0x5c
add eax, 4
mov word [ebx], dx
lea ebx, [edi + ecx + 2]
mov edx, 0x5c
mov word [ebx], dx
mov ebx, 0x5c
mov edx, 0x5c
mov word [edi + ecx + 4], bx
mov word [edi + ecx + 6], dx
jmp 0x405f26
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
jne 0x405f34
test byte [section..data], 2
jne 0x405fb1
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x405fa4
Function at 0x407310
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 0x407368
cmp byte [esi + ebx - 1], 0xa
je 0x40733c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40c0f8], 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 0x4080c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 0x1000
sub esp, 0x1c
jmp 0x4080e0
cmp ebx, eax
jg 0x408130
lea ebx, [eax + 1]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esi, [ebx + ebx]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x40813a
lea eax, [ebp + 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp], 4
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
test eax, eax
jns 0x4080d0
mov ebx, esi
jmp 0x4080d7
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x408150
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x408143
Function at 0x4082b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, esi
mov eax, ebx
call sym._open_module_icon
test eax, eax
js 0x4082f0
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov eax, esi
call sym._validate_ico
test eax, eax
js 0x40831e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x8007007e
jne 0x408302
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x408447
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_SHCreateStreamOnFileW]
sub esp, 0xc
test eax, eax
jns 0x4082d7
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x2e
call ebx
mov edx, eax
test eax, eax
je 0x40843b
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov eax, 0xf
call sym._assoc_query
mov edx, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x408418
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call ebx
xor edx, edx
test eax, eax
je 0x40838f
xor ebx, ebx
add eax, 2
mov word [eax - 2], bx
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
xor ebx, ebx
call sym._open_module_icon
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x18]
mov dword [esp], ebx
call edx
mov eax, dword [ebp - 0x1c]
mov edx, 1
test eax, eax
js 0x4083d6
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov eax, esi
call sym._validate_ico
mov ebx, eax
shr ebx, 0x1f
mov edx, ebx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4082e7
test dl, dl
je 0x4082e7
mov ecx, esi
mov edx, 0xffff80fb
mov eax, str.user32
call sym._open_module_icon
test eax, eax
js 0x4082e7
mov edx, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
mov ecx, edi
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp sym._validate_ico
mov ecx, str.open
mov eax, 2
call sym._assoc_query
mov ebx, eax
test eax, eax
je 0x40843b
mov ecx, esi
xor edx, edx
call sym._open_module_icon
jmp 0x40839b
mov edx, 1
mov eax, 0x80070490
jmp 0x4083d6
test byte [section..data], 4
je 0x4082e7
mov eax, ebx
shr eax, 0x10
je 0x4084ab
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push esi
push esi
test eax, eax
jne 0x4084c0
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Cant_find_file:__s__give_a_chance_to_parent_process_to_create_it_n
mov dword [esp + 8], str.open_icon
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov eax, 0x8007007e
jmp 0x4082e7
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x408479
mov eax, str._invalid_
jmp 0x408479
Function at 0x409870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x18]
push ebx
mov ebx, edx
sub esp, 0x30
mov esi, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0
mov eax, dword [esi]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x12]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 6
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
js 0x4098b4
cmp dword [ebp - 0x18], 6
je 0x4098f0
test byte [section..data], 4
jne 0x409970
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebx], 0
mov eax, 0x80004005
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x12], 0
jne 0x4098b4
cmp word [ebp - 0x10], 1
jne 0x4098b4
movzx eax, word [ebp - 0xe]
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
shl eax, 4
mov dword [esp], eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x24]
test eax, eax
mov ecx, eax
je 0x4099a4
mov dword [ebx], eax
mov eax, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
js 0x4098c1
movzx edx, word [ebp - 0xe]
shl edx, 4
cmp edx, dword [ebp - 0x18]
jne 0x4098c1
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi]
test edx, edx
jne 0x4098e7
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx], 0
jmp 0x4098cc
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_ico_file_format__hr0x_08lX__bytesRead_ld__n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.read_ico_direntries
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4098c1
test byte [section..data], 2
jne 0x4099ba
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4099ad
Function at 0x40a070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x24
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [ebp - 0x10], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
sub esp, 0x20
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x40a11a
mov ebx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, ebx
sub esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x40a130
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40a123

Function at 0x40a450
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40a4db
cmp ax, 9
je 0x40a4c8
cmp ax, 0x20
je 0x40a4c8
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40a530
cmp ax, 0x22
je 0x40a540
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40a4db
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40a480
test edi, 1
jne 0x40a480
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40a4c8
cmp ax, 0x20
je 0x40a4c8
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40a558
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x40a49b
and dword [ebp - 0x54], 1
jne 0x40a494
xor edi, 1
jmp 0x40a49b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40a4f4
Function at 0x40a570
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x679370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x67938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x6a2074
push ecx
mov edi, eax
call fcn.0068d198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6793cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0068d02e
push esi
call fcn.0068cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret