joyce8/EMBER2024-capa huggingface dataset:
Function at 0x552460
Capabilities:
Connect socket

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x18]
push ecx
push edx
push esi
call sub.WS2_32.dll_connect
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5524bf
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
jne 0x5524b6
cmp eax, 0x2733
jne 0x5524b6
mov eax, dword [esp + 0x1c]
push 3
push esi
call fcn.00551ff0
add esp, 8
xor edx, edx
test eax, eax
setge dl
pop edi
pop esi
pop ebx
dec edx
mov eax, edx
ret
push eax
call fcn.00550b20
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
neg esi
push edi
sbb esi, esi
and esi, 2
push esi
push ebp
push edx
push ebx
call sub.WS2_32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
jne 0x552557
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x55254e
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 0
jne 0x55254e
mov eax, dword [esp + 0x24]
push 1
push ebx
call fcn.00551ff0
add esp, 8
test eax, eax
jl 0x552546
mov eax, dword [esp + 0x18]
push esi
push ebp
push eax
push ebx
call sub.WS2_32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
je 0x552501
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push eax
call fcn.00550aa0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test edi, edi
jle 0x55261c
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
jmp 0x552590
push 0
push edi
push ebx
push esi
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x5525d9
nop
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x55260a
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
cmp dword [ecx + 4], 0
jne 0x55260a
push 2
push esi
mov eax, ebp
call fcn.00551ff0
add esp, 8
test eax, eax
jl 0x552613
push 0
push edi
push ebx
push esi
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x5525a0
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
cmp dword [eax + 4], 0
jne 0x55261c
cmp dword [esp + 0x10], edi
jge 0x55261c
push 2
push esi
mov eax, ebp
call fcn.00551ff0
add esp, 8
test eax, eax
jge 0x552590
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
push eax
call fcn.00550ab0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x552630
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test edi, edi
jle 0x5526fb
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
jmp 0x552660
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push 0
push edi
push edx
push esi
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
jne 0x5526b6
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5526e9
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 0
jne 0x5526e9
mov eax, dword [esp + 0x30]
push 2
push esi
call fcn.00551ff0
add esp, 8
test eax, eax
jl 0x5526f2
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push 0
push edi
push eax
push esi
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x552675
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
add dword [esp + 0x10], eax
cmp dword [edx + 4], 0
jne 0x5526fb
cmp dword [esp + 0x10], edi
jge 0x5526fb
mov eax, dword [esp + 0x30]
push 2
push esi
call fcn.00551ff0
add esp, 8
test eax, eax
jge 0x552660
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
push eax
call fcn.00550ab0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [ecx + 0x18]
push ebx
push ebp
push 0
push edx
push eax
push edi
call sub.WS2_32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
jne 0x55279e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x552795
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 0
jne 0x552795
mov eax, dword [esp + 0x2c]
push 1
push edi
call fcn.00551ff0
add esp, 8
test eax, eax
jl 0x55278d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push 0
push eax
push ecx
push edi
call sub.WS2_32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
je 0x552741
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push eax
call fcn.00550aa0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x559586
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5595b7
call fcn.0040c5a0
mov dword [eax], esi
call fcn.0040c58d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040c525
add esp, 0x14
or eax, 0xffffffff
jmp 0x5595f2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5595d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c5b3
pop ecx
jmp 0x5595b2
test byte [ebp + 0xc], 0x80
je 0x5595df
and eax, 0xfffffffe
jmp 0x5595e2
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x5595c5
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401770
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov ebx, edx
lea eax, [ebp - 0x20a]
mov esi, ecx
push eax
call fcn.0040be80
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00409abd
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0
push eax
call esi
push 0x422700
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00409a51
push 0x4226fc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00409a51
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00409a51
push str..lnk
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00409a51
add esp, 0x18
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x41d260
push 1
push 0
push 0x41d280
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4018e9
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0x422700
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x41d270
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4018e9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4018d4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4018fc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x40190c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409978
mov esp, ebp
pop ebp
ret

Function at 0x401920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
xor eax, eax
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x26], ax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
push edx
push 0
mov dword [ebp - 0x50], 0x422700
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401995
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4019a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x422700
mov eax, edi
nop
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4019e6
test cx, cx
je 0x4019e2
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4019e6
add eax, 4
add edx, 4
test cx, cx
jne 0x4019c0
xor eax, eax
jmp 0x4019eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401a02
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409978
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0040be80
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push eax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040be80
add esp, 0xc
lea eax, [ebp - 0x418]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x418]
push 0x42282c
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x668]
push eax
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
je 0x4019ef
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [ebp - 0x668], 0x10
lea eax, [ebp - 0x63c]
push 0x422830
push eax
jne 0x401b1d
call esi
test eax, eax
je 0x401b82
push 0x422834
lea eax, [ebp - 0x63c]
push eax
call esi
test eax, eax
je 0x401b82
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040be80
add esp, 0xc
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401b82
push 4
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x401b82
call esi
test eax, eax
je 0x401b82
push 0x422834
lea eax, [ebp - 0x63c]
push eax
call esi
test eax, eax
je 0x401b82
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040be80
add esp, 0xc
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
push 0x4226fc
lea eax, [ebp - 0x210]
push eax
call ebx
lea ecx, [ebp - 0x210]
call fcn.004019a0
lea eax, [ebp - 0x668]
push eax
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401a91
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
cmp eax, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00409978
mov esp, ebp
pop ebp
ret
Function at 0x401bd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x7aeac8
push 0x104
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push 0x422700
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], si
jne 0x401c26
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409978
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x41d2a0
push 1
push 0
push 0x41d2c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401c76
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov ecx, 1
cmovns esi, ecx
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409978
mov esp, ebp
pop ebp
ret

Function at 0x401c90
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040be80
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x1a
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4226fc
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00409a51
add esp, 0xc
lea eax, [ebp - 0x210]
push str.7k7kLegend_
push 0x104
push eax
call fcn.00409a51
add esp, 0xc
lea eax, [ebp - 0x210]
push str.WeiDuanN_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x7aecd0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x401d50
push 0x7aeac8
push 0x104
push 0x7aecd0
push 0x422700
push str.StartMenuPath
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x7aecd0
call fcn.004019a0
call fcn.00401bd0
lea ecx, [ebp - 0x210]
call fcn.004019a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409978
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
mov ebx, 1
push 2
mov dword [ebp - 0x710], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x401dc6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409978
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x708]
mov dword [ebp - 0x708], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401db3
lea eax, [ebp - 0x70c]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401e70
lea eax, [ebp - 0x718]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401e5a
mov eax, dword [ebp - 0x718]
push 0
push 0
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x714]
push 0
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x70c]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x70c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401e70
push 0x2b4
lea eax, [ebp - 0x4d8]
push 0
push eax
call fcn.0040be80
add esp, 0xc
lea eax, [ebp - 0x4d8]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401efd
push dword [ebp - 0x700]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0x710]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x708]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401e70
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409978
mov esp, ebp
pop ebp
ret
Function at 0x401f30
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.0040be80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push 0x4226fc
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push str..lnk
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x41d260
push 1
push 0
push 0x41d280
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40205e
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0x422700
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x41d270
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40205e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402049
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x402071
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x402081
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409978
mov esp, ebp
pop ebp
ret
Function at 0x404c20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x404c2b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x404cf5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
dec edi
jne 0x404c40
pop edi
test esi, esi
je 0x404d1a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422d00]
dec esi
jne 0x404d00
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x405440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x405483
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405475
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x405494
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0040e360
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4054c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4054fb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4054f6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x405528
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x40550c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0040e360
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x40553c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x405533
cmp byte [esi + 8], 0
je 0x405533
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret