joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474f56
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 0x474f84
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474fa2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474ebc
jmp 0x474fa2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474fa2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474ebc
test edi, edi
mov eax, edi
jne 0x474f8c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x3ea3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03ea378f
jae 0x3ea370e
xor ecx, ecx
call fcn.03ea378f
jae 0x3ea373d
xor eax, eax
call fcn.03ea378f
jae 0x3ea374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03ea378f
adc al, al
jae 0x3ea372f
jne 0x3ea3779
stosb byte es:[edi], al
jmp 0x3ea3711
call fcn.03ea379b
sub ecx, ebx
jne 0x3ea3756
call fcn.03ea3799
jmp 0x3ea3775
lodsb al, byte [esi]
shr eax, 1
je 0x3ea3783
adc ecx, ecx
jmp 0x3ea3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03ea3799
cmp eax, 0x7d00
jae 0x3ea3772
cmp ah, 5
jae 0x3ea3773
cmp eax, 0x7f
ja 0x3ea3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3ea3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x3ec3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03ec378f
jae 0x3ec370e
xor ecx, ecx
call fcn.03ec378f
jae 0x3ec373d
xor eax, eax
call fcn.03ec378f
jae 0x3ec374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03ec378f
adc al, al
jae 0x3ec372f
jne 0x3ec3779
stosb byte es:[edi], al
jmp 0x3ec3711
call fcn.03ec379b
sub ecx, ebx
jne 0x3ec3756
call fcn.03ec3799
jmp 0x3ec3775
lodsb al, byte [esi]
shr eax, 1
je 0x3ec3783
adc ecx, ecx
jmp 0x3ec3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03ec3799
cmp eax, 0x7d00
jae 0x3ec3772
cmp ah, 5
jae 0x3ec3773
cmp eax, 0x7f
ja 0x3ec3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3ec3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401d60
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4144b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401df4
push 0x2253
lea ecx, [ebp - 0x24]
push 0x41293c
push ecx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004031ae
mov esp, ebp
pop ebp
ret
Function at 0x4031ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4144b0]
jne 0x4031b8
repz ret
jmp fcn.00406a44

Function at 0x40cb0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4144b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407567
and dword [ebp - 0x14], 0
cmp dword [0x4166c8], 0
mov dword [ebp - 0x18], eax
jne 0x40cbbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cc67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40cc67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4166c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4166cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4166d0], eax
call edi
push eax
call esi
mov dword [0x4166d8], eax
test eax, eax
je 0x40cbbf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4166d4], eax
mov eax, dword [0x4166d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cc18
cmp dword [0x4166d8], ecx
je 0x40cc18
push eax
call esi
push dword [0x4166d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cc18
test ebx, ebx
je 0x40cc18
call edi
test eax, eax
je 0x40cc0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cc0f
test byte [ebp - 8], 1
jne 0x40cc18
or dword [ebp + 0x10], 0x200000
jmp 0x40cc4b
mov eax, dword [0x4166cc]
cmp eax, dword [ebp - 0x18]
je 0x40cc4b
push eax
call esi
test eax, eax
je 0x40cc4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cc4b
mov eax, dword [0x4166d0]
cmp eax, dword [ebp - 0x18]
je 0x40cc4b
push eax
call esi
test eax, eax
je 0x40cc4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4166c8]
call esi
test eax, eax
je 0x40cc67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cc69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004031ae
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000b904
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10015820]
jne 0x1000b90e
repz ret
jmp fcn.1000c082

Function at 0x43c920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2b000]
push edi
or ebp, 0xffffffff
jmp 0x43c942
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43c949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43c938
mov eax, 1
add ebx, ebx
jne 0x43c95b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43c950
jne 0x43c96c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c950
xor ecx, ecx
sub eax, 3
jb 0x43c980
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43c9f2
mov ebp, eax
add ebx, ebx
jne 0x43c98b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43c998
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43c9bc
inc ecx
add ebx, ebx
jne 0x43c9a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43c99d
jne 0x43c9b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c99d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43c9dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43c9cd
jmp 0x43c93e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43c9dc
add edi, ecx
jmp 0x43c93e
pop esi
mov edi, esi
mov ecx, 0x189e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43c9fa
cmp byte [edi], 6
jne 0x43c9fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43c9ff
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43ca6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x42dd4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x42e10]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ca2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x42e14]
or eax, eax
je 0x43ca68
mov dword [ebx], eax
add ebx, 4
jmp 0x43ca49
call dword [esi + 0x42e24]
mov ebp, dword [esi + 0x42e18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43caa2
sub esp, 0xffffff80
jmp 0x4293bf
Function at 0x402160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d868
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0040b480
mov eax, dword [esp + 0x34]
cdq
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 2
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
push ecx
push esi
mov dword [esp + 0x34], 0
call fcn.0040b890
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.0040b480
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x402310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d868
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0040b480
mov al, byte [esp + 0x34]
mov byte [esp + 0xc], al
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
mov dword [esp + 0x34], 0
call fcn.0040b890
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.0040b480
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x4027f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d808
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.0040b480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 2
mov edi, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
mov eax, esi
mov dword [esp + 0x34], 0
call fcn.0040bb50
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x30], 0xffffffff
call fcn.0040b480
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402880
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d808
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.0040b480
fld qword [ebp + 8]
fstp qword [esp + 0x14]
mov dword [esp + 0x1c], 3
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, esi
mov dword [esp + 0x34], 0
call fcn.0040bb50
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x30], 0xffffffff
call fcn.0040b480
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402e60
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret
Function at 0x402e70
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x402eb0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
jne 0x402ebf
xor al, al
pop esi
ret 4
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov al, 1
pop esi
ret 4

Function at 0x403340
Capabilities:
Get file size

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 8
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40335f
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 8
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x403370
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x404300
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
neg eax
sbb eax, eax
inc eax
ret 4

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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call sub.WS2_32.dll_send
ret 0xc

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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call sub.WS2_32.dll_recv
ret 0xc

Function at 0x4043c0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_setsockopt
ret 0x10

Function at 0x404410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
mov eax, dword [ecx]
push edx
push eax
mov dword [esp + 0xc], 0x10
call sub.WS2_32.dll_getsockname
neg eax
sbb eax, eax
inc eax
pop ecx
ret 4

Function at 0x404440
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x44405c]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
push 0x202
mov dword [esi], 0xffffffff
call sub.WS2_32.dll_WSAStartup
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test byte [0x4492f0], al
jne 0x4044a4
or dword [0x4492f0], eax
call fcn.00408a60
mov dword [0x4492ec], eax
mov eax, dword [0x4492ec]
push 0xa
call fcn.0040dbf0
mov dword [esi + 0xc], eax
test eax, eax
je 0x4044c5
push 0
mov edx, 4
xor ecx, ecx
call fcn.00409570
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041e30c
mov esp, ebp
pop ebp
ret
Function at 0x404580
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x44405c]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
push 0x202
mov dword [esi], 0xffffffff
call sub.WS2_32.dll_WSAStartup
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test byte [0x4492f0], al
jne 0x4045e4
or dword [0x4492f0], eax
call fcn.00408a60
mov dword [0x4492ec], eax
mov eax, dword [0x4492ec]
push 0xa
call fcn.0040dbf0
mov dword [esi + 0xc], eax
test eax, eax
je 0x404605
push 0
mov edx, 0xc
xor ecx, ecx
call fcn.00409570
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041e30c
mov esp, ebp
pop ebp
ret

Function at 0x404880
Capabilities:
Clear file content
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push 0x430eec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404933
test ebx, ebx
je 0x404933
push 0
push 0x80
push 4
push 0
push 6
push 0x12019f
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40493d
lea esi, [esp + 0x18]
call fcn.0040c270
push ebp
push 0x430efc
mov eax, esi
call fcn.0040c410
mov eax, dword [0x4491b0]
mov esi, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x404922
push 0x10
push 0x430f14
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x404933
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00408b50
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret
Function at 0x404a00
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x42d7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0x18]
push eax
push 0x42f48c
xor ebx, ebx
push 1
push ebx
push 0x42f49c
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x404b4a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x42f4ac
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x404b4a
push ebp
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x40], bl
call fcn.0040c770
mov esi, dword [esp + 0x58]
lea edi, [esp + 0x30]
mov dword [esp + 0x4c], ebx
call fcn.00408350
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push ebp
push eax
call edx
mov eax, dword [esp + 0x60]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
call fcn.0040c770
mov esi, dword [esp + 0x5c]
lea edi, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.00408350
mov eax, edi
call fcn.00408250
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push esi
push eax
call edx
mov edi, eax
cmp esi, ebx
je 0x404b2d
mov eax, dword [esp + 0x2c]
push eax
call fcn.00408b50
add esp, 4
mov dword [esp + 0x4c], 0xffffffff
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x404b4a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00408b50
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404b5a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404b6a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x404b90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42da58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
call fcn.0040c270
push 1
mov ecx, 0x104
mov dword [esp + 0x2c], 0
call fcn.0040c550
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
push 0x10
push esi
push 0
call edi
test eax, eax
je 0x404c1d
test esi, esi
je 0x404c04
mov eax, esi
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404bf0
sub eax, esi
sar eax, 1
dec eax
mov dword [esp + 0x14], eax
push 0x430f28
push esi
push 0x430f28
push str.MeowPlayer.exe
push ebx
call fcn.00404a00
add esp, 0x14
push 1
push 2
push esi
push 0
call edi
test eax, eax
je 0x404c8f
test esi, esi
je 0x404c44
mov eax, esi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404c30
sub eax, esi
sar eax, 1
dec eax
mov dword [esp + 0x14], eax
mov esi, str.MeowPlayer
lea edi, [esp + 0x10]
call fcn.00408350
mov esi, dword [esp + 0x10]
mov eax, esi
call fcn.00407e00
push 0x430f28
push esi
push 0x430f28
push str.MeowPlayer.exe
push ebx
call fcn.00404a00
add esp, 0x14
push 0x430f74
push esi
push 0x430f84
push str.Uninstall.exe
push ebx
call fcn.00404a00
add esp, 0x14
test esi, esi
je 0x404ca0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00408b50
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret