joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5180
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406bcc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x18]
push eax
push 0x4c509c
call sub.user32.dll_EnumWindows
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c7b40
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, 0x5af914
xor eax, eax
push ebp
push 0x4c7cb5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 4]
xor ecx, ecx
mov edx, 4
call fcn.00404858
mov esi, 4
mov dword [ebx], esi
push esi
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x4c58e4]
call fcn.00408574
add esp, 4
mov eax, dword [ebx + 4]
mov esi, eax
mov eax, esi
xor edx, edx
call fcn.00406b40
mov byte [esi + 4], 0
mov eax, dword [ebx + 4]
lea esi, [eax + 0x24]
lea edx, [ebp - 4]
mov eax, 0x4c7cd0
call fcn.004c6a5c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406b40
mov byte [esi + 4], 0
mov eax, dword [ebx + 4]
lea esi, [eax + 0x48]
lea edx, [ebp - 8]
mov eax, 0x4c7d08
call fcn.004c6a5c
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00406b40
mov byte [esi + 4], 0
mov eax, dword [ebx + 4]
lea esi, [eax + 0x6c]
mov eax, esi
xor edx, edx
call fcn.00406b40
mov byte [esi + 4], 0
lea edx, [ebp - 0xc]
mov eax, 0x4c7d48
call fcn.004c6a5c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00406b40
lea edx, [ebp - 0x10]
mov eax, 0x4c7dbc
call fcn.004c6a5c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 8]
call fcn.00406b40
lea edx, [ebp - 0x14]
mov eax, 0x4c7e38
call fcn.004c6a5c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00406b40
lea eax, [ebx + 0x14]
mov edx, 0x4c7e9c
call fcn.00406b40
lea eax, [ebx + 0x18]
mov edx, 0x4c7eb0
call fcn.00406b40
lea eax, [ebx + 0x1c]
mov edx, 0x4c7eb0
call fcn.00406b40
lea eax, [ebx + 0x20]
mov edx, dword [ebx + 8]
call fcn.00406b40
lea edx, [ebp - 0x18]
mov eax, 0x4c7ec0
call fcn.004c6a5c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x24]
call fcn.00406b40
lea eax, [ebx + 0x28]
xor edx, edx
call fcn.00406b40
lea eax, [ebx + 0x30]
xor edx, edx
call fcn.00406b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7cbc
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00406b38
ret
Function at 0x4c9fc8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b28
mov eax, dword [ebp - 8]
call fcn.00406b28
xor eax, eax
push ebp
push 0x4ca068
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.004144c0
test al, al
je 0x4ca02e
mov eax, dword [ebp - 8]
call fcn.004c7ab8
test al, al
je 0x4ca04d
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00406bcc
push eax
mov eax, dword [ebp - 4]
call fcn.00406bcc
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4ca04d
push 0
mov eax, dword [ebp - 8]
call fcn.00406bcc
push eax
mov eax, dword [ebp - 4]
call fcn.00406bcc
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca06f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b38
ret
Function at 0x4cd97c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4cd9aa
mov eax, ebx
call fcn.004ce430
cmp dword [ebx + 0x40], 0
je 0x4cd9a3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4cda1b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4cda0d
cmp dword [ebx + 8], 0
je 0x4cd9cc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4cd9de
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4cda0d
cmp dword [ebx + 8], 0
je 0x4cd9bf
cmp eax, 3
je 0x4cd9f1
dec eax
jne 0x4cd9bf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4cd9bf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4cd9bf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4cda39
cmp dword [ebx + 0x14], 0xcc
je 0x4cda39
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004cda44
pop ebx
ret

Function at 0x4e1fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4e1ff8
add esp, 0xfffffff0
call fcn.004053c8
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4e2112
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.0040422c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4e20fc
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004b6ba8
xor eax, eax
push ebp
push 0x4e20e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004b6ba8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00406d90
jmp 0x4e20ba
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407338
mov eax, dword [ebx + 4]
call fcn.00406e98
dec eax
jle 0x4e20ce
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4e20a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e20f0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2119
lea eax, [ebp - 4]
call fcn.0040675c
ret
Function at 0x4eacd8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 0x214], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4ead52
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x20e]
call fcn.00414d78
mov edx, dword [ebp - 0x214]
mov eax, ebx
mov ecx, 0x4ead6c
call fcn.00406ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ead59
lea eax, [ebp - 0x214]
call fcn.00406b30
ret
Function at 0x4eb788
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov esi, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0xfffffffb
test esi, esi
je 0x4eb94d
cmp dword [ebp - 0x10], 0
je 0x4eb94d
cmp dword [ebp + 0x10], 0
je 0x4eb94d
mov word [ebp - 0x1a], 0
mov word [ebp - 0x18], 1
mov word [ebp - 0x16], 1
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x10
call fcn.00404858
mov edi, esi
mov eax, edi
movzx edx, byte [eax + 4]
mov byte [ebp - 0x2a], dl
movzx edx, byte [eax + 8]
mov byte [ebp - 0x29], dl
movzx edx, word [eax + 0xe]
mov word [ebp - 0x28], dx
mov dword [ebp - 0x1e], 0x16
mov edx, dword [eax + 0x14]
add edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov dword [ebp - 0x22], edx
movzx edx, byte [ebp - 0x29]
add edx, edx
mov dword [eax + 8], edx
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4eb843
mov dword [ebp - 4], 0xfffffffa
jmp 0x4eb94d
xor eax, eax
push ebp
push 0x4eb946
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
push 6
lea eax, [ebp - 0x1a]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4eb87b
push ebp
call fcn.004eb760
pop ecx
call fcn.00405b24
jmp 0x4eb94d
mov ebx, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10
lea eax, [ebp - 0x2a]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4eb8a8
push ebp
call fcn.004eb760
pop ecx
call fcn.00405b24
jmp 0x4eb94d
add ebx, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4eb8d1
push ebp
call fcn.004eb760
pop ecx
call fcn.00405b24
jmp 0x4eb94d
add ebx, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi + 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4eb8fd
push ebp
call fcn.004eb760
pop ecx
call fcn.00405b24
jmp 0x4eb94d
add ebx, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4eb929
push ebp
call fcn.004eb760
pop ecx
call fcn.00405b24
jmp 0x4eb94d
add ebx, dword [ebp - 0x14]
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb94d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ecb68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x4ecbcc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xe
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.00406d28
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00413fb8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecbd3
lea eax, [ebp - 0x14]
call fcn.00406b30
ret
Function at 0x4f1b64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f1c76
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x4f1c56
push ebx
push esi
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x18], eax
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f1c4f
xor edx, edx
push ebp
push 0x4f1c48
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
test edi, 0xffff0000
jne 0x4f1be6
mov ebx, edi
jmp 0x4f1bfa
lea eax, [ebp - 4]
mov edx, edi
call fcn.00406cec
mov eax, dword [ebp - 4]
call fcn.00406bcc
mov ebx, eax
test dword [ebp + 0xc], 0xffff0000
jne 0x4f1c08
mov eax, dword [ebp + 0xc]
jmp 0x4f1c1b
lea eax, [ebp - 8]
mov edx, dword [ebp + 0xc]
call fcn.00406cec
mov eax, dword [ebp - 8]
call fcn.00406bcc
mov edx, dword [ebp - 0x18]
push edx
push esi
movzx edx, word [ebp + 8]
push edx
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004f19f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1c5b
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeResource
ret
call fcn.0041b930
jmp 0x4f1c5b
call fcn.0041b930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1c7d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b38
ret

Function at 0x4f1c8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push 0
mov eax, esi
call fcn.00406bcc
push eax
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f1d48
xor eax, eax
push ebp
push 0x4f1d41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x10]
mov edx, esi
call fcn.00406b40
mov eax, dword [ebx + 8]
mov edx, dword [eax]
call dword [edx + 8]
test edi, edi
jne 0x4f1cec
push ebx
push 0x4f1998
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceTypesW
jmp 0x4f1d2a
cmp edi, 0xe
jne 0x4f1d04
push ebx
push 0x4f1968
push 3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceNamesW
jmp 0x4f1d1a
cmp edi, 0xc
jne 0x4f1d1a
push ebx
push 0x4f1968
push 1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceNamesW
push ebx
push 0x4f1968
push edi
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceNamesW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1d4d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
call fcn.0041b930
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f4dc0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b28
mov eax, dword [ebp - 8]
call fcn.00406b28
xor eax, eax
push ebp
push 0x4f4e39
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00406bcc
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00406bcc
push eax
mov eax, dword [ebp - 4]
call fcn.00406bcc
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileW
test eax, eax
jne 0x4f4e1e
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4e40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b38
ret

Function at 0x4f4e48
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4f4e79
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00406d28
jmp 0x4f4e82
mov eax, ebx
xor edx, edx
call fcn.00406b40
add esp, 0x204
pop ebx
ret

Function at 0x4f4e8c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f4f03
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406ea4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00406bcc
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4f4ee4
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00407268
jmp 0x4f4eed
mov eax, ebx
xor edx, edx
call fcn.00406b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4f0a
lea eax, [ebp - 4]
call fcn.00406b30
ret

Function at 0x514910
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp byte [0x5afa8c], 0
jne 0x51493a
push 0
mov eax, dword [0x52bc40]
push eax
mov eax, 0x514958
push eax
push 0xd
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5afa88], eax
mov byte [0x5afa8c], 1
ret
Function at 0x515da0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x448], edx
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x444], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b28
xor eax, eax
push ebp
push 0x515f08
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.004baa10
mov esi, eax
cmp esi, 0xffffffff
je 0x515edc
mov dword [ebp - 0x230], 0x22c
lea edx, [ebp - 0x230]
mov eax, esi
call fcn.004baa30
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0x20c
lea ecx, [ebp - 0x43c]
xor edx, edx
mov eax, ebx
call fcn.004ba61c
push 0x515f24
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.0041310c
push dword [ebp - 0x444]
push 0x515f24
lea eax, [ebp - 0x440]
mov edx, 3
call fcn.004070e0
mov eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x44c]
lea edx, [ebp - 0x43c]
mov ecx, 0x106
call fcn.00406d28
mov eax, dword [ebp - 0x44c]
lea edx, [ebp - 0x448]
call fcn.0041310c
mov eax, dword [ebp - 0x448]
pop edx
call fcn.00407580
test eax, eax
jle 0x515ebb
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x230]
mov eax, esi
call fcn.004baa50
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x515e0c
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515f0f
lea eax, [ebp - 0x44c]
mov edx, 4
call fcn.00406b38
lea eax, [ebp - 4]
call fcn.00406b30
ret
Function at 0x516030
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x516186
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x14]
mov eax, dword [0x527f74]
mov eax, dword [eax + 0x20]
call fcn.004c78e4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x516071
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x1400
jle 0x516156
call fcn.00416ec0
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 0x5161a4
call fcn.00417b80
mov eax, dword [0x527f74]
push dword [eax + 0x4c]
push 0x5161c8
mov eax, dword [0x527f74]
push dword [eax + 0x6c]
push 0x5161d8
push dword [ebp - 8]
mov eax, 0x1869f
call fcn.004046a0
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [0x5161dc]
add esp, 0xfffffff8
fistp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x5161ec
call fcn.004c6a5c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004168e4
push dword [ebp - 0x1c]
push 0x516218
mov eax, dword [0x527f74]
push dword [eax + 0x58]
lea eax, [ebp - 4]
mov edx, 8
call fcn.004070e0
mov eax, dword [ebp - 4]
call fcn.004c7ab8
mov esi, dword [0x527f74]
mov esi, dword [esi + 0x20]
mov eax, dword [ebp - 4]
call fcn.00406bcc
push eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
call fcn.00406bcc
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x516156
mov edx, 0x27
mov eax, dword [ebp - 4]
call fcn.0041452c
mov eax, dword [0x527f74]
mov eax, dword [eax + 0x20]
call fcn.004c7ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51618d
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406b38
lea eax, [ebp - 0x14]
call fcn.00406b30
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b38
ret
Function at 0x100145e7
Capabilities:
Encode data using xor

Disassembly:
xor ebx, dword [eax - 0x59]
sar byte [ebx], 1
wait
sbb ah, byte [ebx - 0x14]
test dword es:[edx], edx
cdq
mov eax, dword ds:[edx - 7]
xor byte [ebx + 0x7445a30c], cl
arpl word [eax], bp
salc
lea esi, [eax - 0x38]
add eax, 0x24648d06
lea esp, [esp + 8]
ja 0x10017973
sbb al, 0x95
lea esp, [esp + 8]
ja 0x10017973
sbb al, 0x95
call fcn.1001748e
movsb byte es:[edi], byte [esi]
jg 0x100145c8
retf
Function at 0x401d80
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.0040add0
mov eax, dword [0x411030]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10a4], ecx
mov dword [ebp - 0x109c], 1
mov dword [ebp - 0x1098], 0
push 0x3c
push 0
lea eax, [ebp - 0x1094]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x1094], 0x3c
mov dword [ebp - 0x1080], 0x100
push 0x101
mov ecx, dword [ebp - 0x10a4]
add ecx, 8
call fcn.004013d0
mov dword [ebp - 0x1084], eax
mov dword [ebp - 0x1064], 0x800
push 0x801
mov ecx, dword [ebp - 0x10a4]
add ecx, 0xc
call fcn.004013d0
mov dword [ebp - 0x1068], eax
mov dword [ebp - 0x1074], 0x80
push 0x81
mov ecx, dword [ebp - 0x10a4]
add ecx, 0x10
call fcn.004013d0
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x106c], 0x80
push 0x81
mov ecx, dword [ebp - 0x10a4]
add ecx, 0x14
call fcn.004013d0
mov dword [ebp - 0x1070], eax
mov dword [ebp - 4], 0x824
mov ecx, dword [ebp - 0x1098]
and ecx, 0x2e000000
mov dword [ebp - 0x10a0], ecx
mov edx, dword [ebp - 0x10a0]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1058]
push ecx
mov ecx, dword [ebp - 0x10a4]
add ecx, 4
call fcn.00402850
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
jne 0x401eaa
mov dword [ebp - 0x109c], 0
jmp 0x401ee8
lea edx, [ebp - 0x1058]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x1094]
push eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x401ed8
mov dword [ebp - 0x109c], 0
jmp 0x401ee8
mov edx, dword [ebp - 0x10a4]
mov ax, word [ebp - 0x107c]
mov word [edx], ax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10a4]
add ecx, 8
call fcn.004020f0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10a4]
add ecx, 0xc
call fcn.004020f0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10a4]
add ecx, 0x10
call fcn.004020f0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10a4]
add ecx, 0x14
call fcn.004020f0
mov eax, dword [ebp - 0x109c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00406942
mov esp, ebp
pop ebp
ret

Function at 0x4060d0
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push section..data
push eax
call sub.MSVCR90.dll_strstr
add esp, 8
test eax, eax
je 0x406117
push edi
lea edi, [eax + 3]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x406942
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411030]
jne 0x40694c
repz ret
jmp fcn.00406dde

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esp, ebp
pop ebp
ret 8
Function at 0x409560
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409580
xor eax, eax
jmp 0x409590
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov esp, ebp
pop ebp
ret 4