joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41712f
Capabilities:
Connect socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov eax, 0x424898
call fcn.00422230
sub esp, 0x30
mov eax, dword [0x430520]
push esi
mov esi, ecx
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x41715a
inc eax
jmp 0x41725c
mov word [ebp - 0x20], 2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ax, word [esi + 0x404]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x400]
call dword [sym.imp.WS2_32.dll_connect]
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
test eax, eax
jne 0x417252
push ebx
push edi
push 0x20090116
call fcn.004113a5
push 1
mov dword [ebp - 0x3c], eax
call fcn.004113a5
push 0x7d1
mov dword [ebp - 0x38], eax
call fcn.004113a5
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x410]
push dword [eax - 0xc]
call fcn.004113a5
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x410]
mov eax, dword [eax - 0xc]
add eax, 0x18
push eax
call fcn.004221dd
mov ebx, eax
push 0x18
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0x410]
push dword [eax - 0xc]
push eax
lea eax, [ebx + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0x410]
mov edi, dword [eax - 0xc]
add esp, 0x2c
add edi, 0x18
mov dword [ebp - 0x24], edi
je 0x417249
push 0
push dword [ebp - 0x24]
mov eax, edi
sub eax, dword [ebp - 0x24]
add eax, ebx
push eax
push dword [esi + 0x400]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x417243
sub dword [ebp - 0x24], eax
jne 0x41721e
jmp 0x417249
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.00422213
leave
ret
Function at 0x417d0b
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417d26
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x417d6c
push 0x3e8
push eax
mov dword [esi + 0x448], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x417d56
push 0xffffffffffffffff
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x444]
cmp eax, 0xffffffff
je 0x417d68
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x2c], 0xffffffff
pop esi
ret

Function at 0x417d6e
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0x7d0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x417d95
push 0xffffffffffffffff
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [esi + 0x2c], 0xffffffff
mov ecx, esi
call fcn.00417c96
xor eax, eax
pop esi
ret 0x10
Function at 0x418581
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.00417d0b
lea edi, [esi + 0x444]
cmp dword [edi], 0xffffffff
jne 0x4185a9
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x4185cb
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x418444
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x4185d2
mov eax, 0x80004005
jmp 0x4185d4
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x418afb
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x424b15
call fcn.00422230
sub esp, 0x1a8
mov eax, dword [0x430520]
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 4]
xor eax, ebp
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [esi + 0x448], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x418b81
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x1a4], esp
push edi
push closesocket
mov dword [eax], edi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1a4], esp
mov dword [eax], ecx
push edi
mov ecx, esi
call fcn.004181ca
cmp eax, edi
jne 0x418b81
mov eax, 0x80004005
jmp 0x418c49
xor ebx, ebx
inc ebx
cmp dword [esi + 0x38], edi
jne 0x418baa
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
je 0x418ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x418b77
mov dword [esi + 0x38], ebx
mov ecx, esi
call fcn.0041894c
mov eax, dword [esi + 0x34]
cmp dword [eax - 0xc], edi
jne 0x418bbe
mov dword [esi + 0x30], edi
jmp 0x418b77
cmp dword [esi + 0x3c], edi
jne 0x418c2f
lea ecx, [ebp - 0x1a4]
call fcn.00402f4c
lea eax, [ebp - 0x1a4]
push eax
mov dword [ebp - 4], edi
call fcn.00402b32
mov ecx, eax
call fcn.004027cb
push 0x400
lea eax, [esi + 0x44]
push eax
push dword [ebp - 0x1a4]
push 0x40a
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAAsyncGetHostByName]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x418c21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x1a4]
add ecx, 0xfffffff0
call fcn.004021e8
jmp 0x418b77
mov ecx, dword [ebp - 0x1a4]
add ecx, 0xfffffff0
call fcn.004021e8
cmp dword [esi + 0x3c], edi
mov dword [esi + 0x30], ebx
je 0x418c47
mov ecx, esi
call fcn.00418581
cmp eax, edi
je 0x418c49
mov dword [esi + 0x30], edi
jmp 0x418c49
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422213
leave
ret
Function at 0x41b406
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x425081
call fcn.00422230
sub esp, 0x440
mov eax, dword [0x430520]
push ebx
push esi
push edi
xor eax, ebp
mov esi, 0x104
push esi
mov dword [ebp - 0x10], eax
xor edi, edi
lea eax, [ebp - 0x420]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x42c], ebx
call sub.MSVCR71.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push str...xlupdatedownloadhistory.xml
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.0040c061
add ebx, 4
cmp dword [ebx], edi
jne 0x41b56e
push ebx
push 0x42750c
push 0x17
push edi
push 0x4275a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x41b5c2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x424]
jne 0x41b4fe
push str._DownloadHistory__
call fcn.00402150
mov eax, dword [eax]
mov ecx, dword [ebx]
mov edx, dword [ecx]
lea esi, [ebp - 0x428]
push esi
push eax
push ecx
mov dword [ebp - 4], edi
call dword [edx + 0x104]
push dword [ebp - 0x424]
or dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x41b56a
lea eax, [ebp - 0x218]
push eax
call fcn.00402150
push eax
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 1
mov word [ebp - 0x43c], di
call fcn.0040f6b1
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x43c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 2
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
mov esi, eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x424]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
cmp esi, edi
jl 0x41b5c2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x44c]
mov word [ebp - 0x44c], di
call fcn.0040443e
mov ebx, dword [ebx]
mov eax, dword [ebx]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x44c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
mov dword [ebp - 4], 3
movsd dword es:[edi], dword [esi]
call dword [eax + 0x108]
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x42c]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422213
leave
ret
Function at 0x41dd35
Capabilities:
Get file version info

Disassembly:
mov eax, 0x42538b
call fcn.00422230
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0xc], ebx
jne 0x41dd5f
mov ecx, dword [ebp + 8]
push 0x42771c
call fcn.00405488
jmp 0x41de28
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x41dd8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0x42771c
call fcn.00405488
jmp 0x41de27
push edi
push esi
call fcn.004221dd
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR71.dll_memset
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00402f4c
push edi
push esi
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41de08
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x427670
push edi
mov dword [ebp + 0xc], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41de08
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x41de08
cmp dword [ebp - 0x18], 0x34
jne 0x41de08
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x10]
push str._u._u._u._u
push eax
call fcn.00403da0
add esp, 0x18
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402536
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021e8
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e197
Capabilities:
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov eax, 0x4253e5
call fcn.00422230
sub esp, 0x81c
mov eax, dword [0x430520]
push ebx
xor eax, ebp
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x81c], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x810], si
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x820]
push eax
push 1
push esi
push str.http_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
jne 0x41e327
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push 0x42771c
push dword [ebp - 0x820]
mov dword [ebp - 0x828], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x820]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x41e327
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00405488
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], esi
call fcn.00411a94
push esi
push str..exe
lea ecx, [ebp - 0x814]
call fcn.0041d985
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41e319
lea ecx, [ebp - 0x818]
call fcn.00402f4c
push ebx
push 0x20
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 1
call fcn.00408eaf
cmp eax, 0xffffffff
je 0x41e2d1
push eax
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x814]
call fcn.0041d9be
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 2
call fcn.00403cb3
mov ecx, dword [ebp - 0x824]
add ecx, 0xfffffff0
call fcn.004021e8
jmp 0x41e2e3
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
call fcn.00403cb3
mov ebx, dword [ebp - 0x818]
push 1
push esi
push dword [ebp - 0x81c]
push ebx
push esi
push esi
call edi
cmp eax, 0x20
lea ecx, [ebx - 0x10]
jle 0x41e314
call fcn.004021e8
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff0
call fcn.004021e8
jmp 0x41e385
call fcn.004021e8
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff0
call fcn.004021e8
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push esi
push 0x26
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41e385
push 0x40
lea eax, [ebp - 0x810]
push str.Internet_Exploreriexplore.exe
push eax
call sub.MSVCR71.dll_wcsncat
add esp, 0xc
push 1
push esi
push dword [ebp - 0x81c]
lea eax, [ebp - 0x810]
push eax
push str.open
push esi
call edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00422213
leave
ret

Function at 0x41ed7e
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push 0x40
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
push eax
add ecx, 0x18
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
ret
Function at 0x41f803
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x430520]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
xor eax, ebp
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push closesocket
push eax
mov dword [ebp - 0x6c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x68], esi
jne 0x41f843
xor al, al
jmp 0x41f8cf
push edi
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x41f8c3
push ebx
push edi
push dword [ebp - 0x60]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x41f8c3
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x41f8ba
lea ecx, [ebp - 0x5c]
call fcn.0041ed7e
cmp dword [ebp - 0x60], ebx
jbe 0x41f89c
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x5c]
call fcn.0041f6ec
dec esi
inc ebx
cmp ebx, dword [ebp - 0x60]
jb 0x41f88a
push edi
push esi
lea ecx, [ebp - 0x5c]
call fcn.0041f6ec
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x5c]
call fcn.0041f78b
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00422213
leave
ret
Function at 0x4225ae
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x429438
call fcn.00422358
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x4225ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4225ee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x422606
cmp eax, 0x20b
je 0x4225f3
mov dword [ebp - 0x1c], edi
jmp 0x42261a
cmp dword [ecx + 0x84], 0xe
jbe 0x4225ee
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x422614
cmp dword [ecx + 0x74], 0xe
jbe 0x4225ee
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x431374], 0xffffffff
or dword [0x431378], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x43136c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x431368]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x431370], eax
call fcn.00422866
call fcn.0040efbf
cmp dword [0x430550], edi
jne 0x42267a
push fcn.0040efbf
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004228f4
push 0x430074
push 0x430070
call sub.MSVCR71.dll__initterm
push 0x4228aa
call fcn.00422332
mov eax, dword [0x431364]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x431360]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x4226ce
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x43006c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4226f8
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4227b2
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x422767
cmp ax, di
je 0x42270e
cmp dword [ebp - 0x20], edi
jne 0x422767
mov ax, word [esi]
cmp ax, di
je 0x422723
cmp ax, 0x20
ja 0x422723
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x42270e
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x42273f
movzx eax, word [ebp - 0x54]
jmp 0x422742
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0040654f
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x42275f
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4227ac
cmp ax, 0x22
jne 0x422778
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4226f8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00422393
ret
Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d9b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403dd2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403dce
jmp 0x403dc0
cmp esi, eax
jae 0x403dd2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403dc0
cmp esi, eax
jb 0x403dd9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404300
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, eax
test edi, edi
je 0x40434b
lea eax, [ebp - 4]
push eax
push 0x556228
push 1
push 0
push 0x556288
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40434b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x5562e8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
jns 0x404352
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x57f324]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push 0x27b
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x557344
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, 0x579a50
mov ecx, eax
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404393
sub eax, ecx
add edi, 0xfffffffe
push esi
mov esi, ecx
lea edx, [edi + 2]
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4043b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push 0x5801f8
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push 0x5801f8
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
test esi, esi
pop esi
setns al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404410
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529d78
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x577da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x55722c
lea ecx, [ebp - 0x10]
call fcn.00404070
push 0x100
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push 0x580610
push 5
push 4
call esi
push 0x580610
push 0x580610
push 0x580818
lea eax, [ebp - 0x10]
push str._c_ping__n_2_127.0.0.1__move__y___ls____ls_____ls_
push eax
call fcn.00401f70
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push 0
push 0
push ecx
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0x580610
push 5
push 2
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4044d0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x577da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.005069f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x579640
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404525
push edi
lea edi, [ebp - 0x20c]
sub eax, esi
add edi, 0xfffffffe
lea edx, [edi + 2]
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404540
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push 0x580a20
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 8]
push 0
push 0
push 0x580a20
push ecx
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x40459d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00505281
mov esp, ebp
pop ebp
ret