joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072bc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bd38
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4072d3
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 8], 0
push 0
push 1
push 2
mov dword [esp + 0x14], 0x1388
call sub.WSOCK32.dll_socket
or ebp, 0xffffffff
mov dword [esi + 8], eax
cmp eax, ebp
je 0x407350
lea ecx, [esp + 8]
push 4
push ecx
push 0x1006
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, ebp
je 0x407350
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push 4
push edx
push 0x1005
push 0xffff
push eax
mov dword [esp + 0x1c], 0x1388
call sub.WSOCK32.dll_setsockopt
cmp eax, ebp
je 0x407350
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], 1
call sub.WSOCK32.dll_ioctlsocket
cmp eax, ebp
jne 0x40736a
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], ebp
call fcn.00423b42
xor al, al
jmp 0x4073f8
mov cx, word [esi + 4]
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 1
mov word [esp + 0x1c], 2
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0x13c]
mov word [esp + 0x1a], ax
push edx
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_connect
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push 0
push eax
push 0
push 0
call sub.WSOCK32.dll_select
cmp eax, 1
mov dword [esp + 0x134], ebp
lea ecx, [esp + 0x13c]
je 0x4073f1
call fcn.00423b42
xor al, al
jmp 0x4073f8
call fcn.00423b42
mov al, 1
mov ecx, dword [esp + 0x12c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x130
ret 4
Function at 0x407420
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x124
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40743d
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 8], 0
push 0
push 1
push 2
mov dword [esp + 0x10], 0x1388
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x40746b
mov dword [esi + 8], 0
xor al, al
pop esi
add esp, 0x124
ret 4
lea ecx, [esp + 4]
push 4
push ecx
push 0x1006
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x407493
xor al, al
pop esi
add esp, 0x124
ret 4
mov eax, dword [esi + 8]
lea edx, [esp + 4]
push 4
push edx
push 0x1005
push 0xffff
push eax
mov dword [esp + 0x18], 0x1388
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4074c6
xor al, al
pop esi
add esp, 0x124
ret 4
mov edx, dword [esi + 8]
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x14], 1
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x4074f2
xor al, al
pop esi
add esp, 0x124
ret 4
mov cx, word [esi + 4]
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
mov word [esp + 0x18], 2
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0x12c]
mov word [esp + 0x16], ax
push edx
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_connect
lea edx, [esp + 0xc]
lea eax, [esp + 0x24]
push edx
push 0
push eax
push 0
push 0
call sub.WSOCK32.dll_select
cmp eax, 1
pop esi
sete al
add esp, 0x124
ret 4

Function at 0x407570
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bd58
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
push 0
push esi
push eax
push ecx
call sub.WSOCK32.dll_send
cmp esi, eax
mov dword [esp + 0xc], 0xffffffff
lea ecx, [esp + 0x14]
jne 0x4075c4
call fcn.00423b42
mov al, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
call fcn.00423b42
mov ecx, dword [esp + 4]
xor al, al
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8

Function at 0x4075e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push edi
mov esi, ecx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 8]
push 0
mov eax, dword [edi]
push eax
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x40760f
pop edi
xor al, al
pop esi
ret 8
mov dword [edi], eax
pop edi
mov al, 1
pop esi
ret 8
Function at 0x408030
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bde8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.00423e24
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov dword [esp + 0xc], 0xffffffff
lea ecx, [esp + 0x14]
je 0x40809a
call fcn.00423b42
mov al, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
call fcn.00423b42
mov ecx, dword [esp + 4]
xor al, al
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x41e910
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.00410430
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41e9db
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 0x41e9db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41e98e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41e999
or bh, 8
and edi, 0x8000000
je 0x41e9b4
mov eax, dword [0x44091c]
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 0x41e9db
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 0x41edb0
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 0x41eddb
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 0x41edff
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 0x41ee1a
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 0x4229bd
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 0x4229ff
call fcn.004280ed
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 0x4229ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4229f6
xor eax, eax
jmp 0x422a07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422a0d
pop edi
pop esi
pop ebx
ret 4

Function at 0x428e0b
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 0x428e39
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428e57
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428d71
jmp 0x428e57
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428e57
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428d71
test edi, edi
mov eax, edi
jne 0x428e41
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x423d20]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x40103c
push str.Error:_unable_to_initialize_COM._n
call fcn.0040b6e6
add eax, 0x40
push eax
call fcn.0040b5ca
add esp, 8
mov eax, 1
jmp 0x401097
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.Ctl2D.dll_CtlInitializePvdraw]
add esp, 8
call dword [sym.imp.Ctl2D.dll_ctl_main_loop]
push 0x94
push 0
lea edx, [ebp - 0xa0]
push edx
call fcn.0040b550
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
jae 0x40108f
call dword [sym.imp.Ctl2D.dll_CtlStopPDF]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b89b
mov esp, ebp
pop ebp
ret

Function at 0x40b89b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423d20]
jne 0x40b8a5
repz ret
jmp fcn.004105b5

Function at 0x417359
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.00410f77
and dword [ebp - 4], 0
cmp dword [0x427688], 0
mov ebx, eax
jne 0x41740a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4174bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e9b0
push edi
call esi
test eax, eax
je 0x4174bb
push eax
call fcn.00410f05
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427688], eax
call esi
push eax
call fcn.00410f05
mov dword [esp], 0x41e98c
push edi
mov dword [0x42768c], eax
call esi
push eax
call fcn.00410f05
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427690], eax
call esi
push eax
call fcn.00410f05
pop ecx
mov dword [0x427698], eax
test eax, eax
je 0x41740a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410f05
pop ecx
mov dword [0x427694], eax
mov eax, dword [0x427694]
cmp eax, ebx
je 0x417462
cmp dword [0x427698], ebx
je 0x417462
push eax
call fcn.00410f80
push dword [0x427698]
mov esi, eax
call fcn.00410f80
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417462
test edi, edi
je 0x417462
call esi
test eax, eax
je 0x417459
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417459
test byte [ebp - 0xc], 1
jne 0x417462
or dword [ebp + 0x10], 0x200000
jmp 0x41749b
mov eax, dword [0x42768c]
cmp eax, ebx
je 0x41749b
push eax
call fcn.00410f80
pop ecx
test eax, eax
je 0x41749b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41749b
mov eax, dword [0x427690]
cmp eax, ebx
je 0x41749b
push eax
call fcn.00410f80
pop ecx
test eax, eax
je 0x41749b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427688]
call fcn.00410f80
pop ecx
test eax, eax
je 0x4174bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4174bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x20490db6
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x57ff140b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4031a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2777
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4fe7ec
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x438], esp
call fcn.00405b10
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.http:__apps.corel.com_redirect__redirectcommandappcuhversion2.0functiontestonline
mov dword [ebp - 4], 0xffffffff
call fcn.00431fd0
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x430], 0
jne 0x4032b5
mov dword [ebp - 0x424], 1
jmp 0x4032bf
mov dword [ebp - 0x424], 0
mov al, byte [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret
Function at 0x406a30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406a5f
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
je 0x406a5d
mov byte [ebp - 1], 1
jmp 0x406a76
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x80
je 0x406a76
mov byte [ebp - 1], 1
movzx edx, byte [ebp - 1]
test edx, edx
je 0x406a92
push 0
push 0xf012
push 0x112
mov ecx, dword [ebp - 8]
call fcn.00409730
mov esp, ebp
pop ebp
ret

Function at 0x408670
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e82
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
push 0
push str.CUH:_CheckCuhMutex_called
call fcn.00436110
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push str.corel.cuh.msg
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb7
jne 0x40872a
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x78], 0
je 0x40871f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 0x14]
call fcn.00408670
mov dword [ebp - 0x18], eax
jmp 0x408732
mov dword [ebp - 4], 0xffffffff
jmp 0x408742
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2f9b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004153a0
mov dword [ebp - 4], 0
push 3
mov ecx, dword [ebp + 0x10]
push ecx
push 0x500330
lea ecx, [ebp - 0x18]
call fcn.004157f0
push eax
push 0x500334
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00415310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x409f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2fc1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0
push 0x500370
lea ecx, [ebp - 0x238]
call fcn.004153a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40a036
push 0x50038c
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x40a029
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [ebp - 0x228]
test eax, eax
jl 0x40a029
mov dword [ebp - 0x220], 1
mov byte [ebp - 0x219], 0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x219]
test eax, eax
je 0x40a092
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Common_Application_Data
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00415310
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 4
Function at 0x40a8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a94e
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a944
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a960
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a9c6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a9bc
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret