joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406a57
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406a46
cmp dword [ebp + 8], 1
je 0x406a48
mov byte [esi], bl
push dword [ebp + 0x14]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x406b2d
Capabilities:
Check if file exists
Get common file path
Get file attributes
Persist via run registry key

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x42b760
mov esi, edi
jmp 0x406cb7
mov ebx, esi
mov ecx, 0x400
sub ebx, edi
cmp ebx, ecx
jge 0x406cc5
movzx ebx, al
inc edx
cmp ebx, 0xdb
mov dword [esp + 0x14], edx
jge 0x406b66
mov byte [esi], bl
inc esi
jmp 0x406cbb
cmp ebx, 0xff
jne 0x406b79
mov al, byte [edx]
mov byte [esi], al
inc esi
inc edx
jmp 0x406cbb
lea eax, [ebx - 0xdb]
cmp eax, 0x23
ja case.default.0x406b8f
movzx eax, byte [eax + 0x406cf1]
jmp dword [eax*4 + 0x406cd1]
push dword [0x42cbc8]
push esi
call fcn.00406a7f
jmp case.default.0x406b8f
lea eax, [ebx - 0xdc]
shl eax, 0xa
add eax, 0x425360
push eax
jmp 0x406c96
and byte [0x4092d1], 0
push esi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call fcn.004069f9
cmp byte [esi], 0
jne case.default.0x406b8f
push str.C:Program_Files
jmp 0x406c96
mov ebp, dword [ebx*4 + 0x408f14]
push ebp
push 0x409307
call sub.KERNEL32.dll_lstrcpyA
xor eax, eax
cmp ebx, 0xfa
setne al
and eax, dword [0x42cbe4]
mov edi, eax
test edi, edi
mov byte [0x4092d1], 0x5c
mov eax, str.Common
jne 0x406c21
mov eax, ebp
push esi
push eax
xor eax, eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
test edi, edi
setne al
add eax, 0x80000001
push eax
call fcn.004069f9
cmp byte [esi], 0
jne 0x406c52
test edi, edi
je 0x406c47
xor edi, edi
jmp 0x406c0f
push 0x42bf60
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp ebx, 0xfa
jne case.default.0x406b8f
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je case.0x406b8f.251
test al, 0x10
jne 0x406ca4
push 0x42bf60
jmp 0x406c96
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.default.0x406b8f
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp case.default.0x406b8f
push 0x40c060
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp ebx, 0xf0
jle 0x406caa
push esi
call fcn.00406d15
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
mov edi, 0x42b760
mov edx, dword [esp + 0x14]
mov al, byte [edx]
test al, al
jne 0x406b3d
and byte [esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x401fc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 0x80]
movzx esi, word [edi]
xor eax, 0x811c9dc5
imul ebx, eax, 0x1000193
mov edx, esi
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
imul eax, ecx, 0x1000193
mov dword [ebp - 4], eax
cmp si, 2
jne 0x40205e
mov edx, dword [edi + 4]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp + 8], edx
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 2]
xor eax, 0x811c9dc5
imul edx, ecx, 0x1000193
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 3]
xor ecx, eax
imul eax, ecx, 0x1000193
add eax, eax
xor eax, edx
add eax, eax
xor eax, dword [ebp - 4]
pop edi
add eax, eax
pop esi
xor eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4c90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4dc04c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x90]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x94]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x18]
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x10], vtable.scope_timer.0
call fcn.00405130
lea eax, [ebx + 0x28]
mov dword [ebp - 4], 0
push eax
mov dword [ebx + 0x20], vtable.scope_timer.0
call fcn.00405130
add esp, 8
mov al, byte [ebp + 0x88]
lea edi, [ebx + 0x30]
mov byte [edi + 0x80], al
lea esi, [ebp + 8]
mov eax, dword [ebp + 0x98]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x138], 0
lea esi, [ebx + 0x150]
mov byte [ebx + 0x13c], 0
lea edi, [ebx + 0x13c]
push 0
mov dword [ebx + 0x144], eax
mov ecx, esi
push 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00402140
mov dword [esi], eax
lea esi, [ebx + 0x158]
mov byte [ebp - 4], 2
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00402140
mov dword [esi], eax
lea esi, [ebx + 0x160]
mov byte [esi + 0x18], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
setne al
mov byte [esi + 0x18], al
mov eax, dword [ebp + 0xa0]
push 0x80
mov dword [ebx + 0x17c], eax
lea eax, [ebx + 0xb8]
push 0
push eax
mov byte [ebp - 4], 4
call fcn.00449530
mov ecx, dword [ebp + 0x9c]
push 0x2000
push 0
mov eax, dword [ecx]
mov dword [ebx + 0x148], eax
mov ax, word [ecx + 4]
mov word [ebx + 0x14c], ax
lea eax, [ebx + 0x180]
push eax
call fcn.00449530
add esp, 0x18
mov ecx, ebx
call fcn.00405be0
test eax, eax
je 0x403e5f
mov cl, 1
xchg byte [edi], cl
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x9c
Function at 0x404a30
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov cl, byte [ebx + 0xb0]
movzx eax, cl
push eax
xor eax, eax
mov byte [ebp - 0xa5], cl
cmp cl, 0x11
setne al
add eax, 2
push eax
movsx eax, word [ebx + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x404b86
cmp byte [ebp - 0xa5], 0x11
mov dword [ebp - 0x18], 0
jne 0x404ab3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0x2003
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x404b86
push 0x80
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.00449530
movzx eax, word [ebx + 0x30]
add esp, 0xc
mov edi, dword [sym.imp.WS2_32.dll_bind]
mov word [ebp - 0xa4], ax
movzx eax, word [ebx + 0x32]
mov word [ebp - 0xa2], ax
lea eax, [ebp - 0xa4]
push 0x80
push eax
push esi
call edi
cmp eax, 0xffffffff
jne 0x404b23
cmp byte [ebx + 0xb0], 0x11
jne 0x404b86
xor eax, eax
mov word [ebp - 0xa2], ax
lea eax, [ebp - 0xa4]
push 0x80
push eax
push esi
call edi
cmp eax, 0xffffffff
je 0x404b86
push 0x80
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.00449530
add esp, 0xc
mov dword [ebp - 0x20], 0x80
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x404b86
cmp word [ebx + 0x30], 2
jne 0x404b6a
mov eax, dword [ebx + 0x144]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x404bc9
push 0x10
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
lea eax, [ebx + 0xbc]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.0041b010
mov eax, dword [ebx]
add esp, 0xc
cmp eax, 0xffffffff
je 0x404bb6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
lea edi, [ebx + 0xb8]
mov dword [ebx + 4], eax
mov ecx, 0x20
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebx], esi
push eax
lea eax, [ebx + 0xbc]
xorps xmm0, xmm0
lea esi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.0041b010
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x4055f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x80
push 0
mov al, byte [edi + 0xb0]
lea ebx, [edi + 0x180]
cmp al, 1
cmove esi, dword [0x4dc018]
cmp al, 0x11
lea eax, [ebp - 0x98]
cmove esi, dword [0x4dc01c]
push eax
add ebx, esi
call fcn.00449530
add esp, 0xc
mov dword [ebp - 0x18], 0x80
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x98]
push eax
push 0
mov eax, 0x2000
sub eax, esi
push eax
push ebx
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4056b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x405709
cmp eax, 0x2714
je 0x405709
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
push 0x10
movups xmmword [ebp - 0x14], xmm0
push eax
lea eax, [edi + 0xbc]
push eax
call fcn.0041b010
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push 0x10
movups xmmword [ebp - 0x14], xmm0
push eax
test esi, esi
je 0x405695
lea eax, [ebp - 0x94]
push eax
call fcn.0041b010
add esp, 0xc
cmp byte [edi + 0xb0], 1
jne 0x4056f0
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00404ea0
cmp byte [edi + 0xb0], 0x11
jne 0x405709
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00405dd0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x405aa0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00404a30
test al, al
jne 0x405ada
mov dl, 1
lea eax, [esi + 0x13c]
xchg byte [eax], dl
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x1c], xmm0
lea edi, [esi + 0x13c]
mov al, byte [edi]
test al, al
jne 0x405b72
mov ecx, esi
call fcn.004048d0
test al, al
je 0x405b0a
cmp dword [esi + 0x154], 0
je 0x405b72
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x11c], eax
push ecx
inc eax
mov dword [ebp - 0x120], 1
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xa
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x405b9d
call ebx
cmp eax, 0x2733
je 0x405af0
cmp eax, 0x2714
je 0x405af0
push 0x10
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
lea eax, [esi + 0xbc]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.0041b010
add esp, 0xc
mov al, 1
xchg byte [edi], al
mov eax, dword [esi]
pop edi
pop ebx
cmp eax, 0xffffffff
je 0x405b8c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00428705
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x405bba
mov ecx, esi
call fcn.004055f0
test al, al
je 0x405b72
mov ecx, esi
call fcn.00405980
test al, al
jne 0x405af0
jmp 0x405b72
Function at 0x405be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
mov esi, ecx
push esi
push 0x405bd0
push 0
push 0
call fcn.00465d2c
add esp, 0x18
mov dword [esi + 0x138], eax
test eax, eax
jne 0x405ca9
push 0x100
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00449530
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404d90
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x405c4d
mov eax, dword [eax]
push eax
call edi
push eax
lea eax, [ebp - 0x11c]
push str.__ld___s_Failed:datagram_session_thread_creation
push eax
call fcn.00405ff0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, 0x10
jb 0x405c7a
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00404c20
push 0x10
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
lea eax, [esi + 0xbc]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.0041b010
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4dfa78]
test ecx, ecx
je 0x405d2d
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test eax, eax
jne 0x405d2d
push 0x100
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00449530
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404d90
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x405cf1
mov eax, dword [eax]
push eax
call edi
push eax
lea eax, [ebp - 0x11c]
push str.__ld___s_Failed:datagram_session_thread_set_thread_affinity_mask
push eax
call fcn.00405ff0
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.00403f90
push 0x10
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
lea eax, [esi + 0xbc]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.0041b010
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x407bd0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x407c53
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x407c53
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x407c53
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x407c53
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
test eax, eax
jne 0x407c53
push esi
mov ecx, ebx
call fcn.00409a40
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x408490
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x8003
mov dword [esi], 0
xor bl, bl
push dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x408511
push 0
push dword [edi + 0x10]
mov ecx, edi
call fcn.00408560
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408511
mov eax, dword [ebp - 0xc]
push esi
push 0
push dword [ebp - 8]
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x408525
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
neg eax
sbb al, al
and bl, al
mov dword [ebp - 8], 0
test bl, bl
jne 0x408543
mov eax, dword [esi]
test eax, eax
je 0x40853d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [esi], 0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408720
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 8
push ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x40886d
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x40877a
mov ecx, 1
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 0x10]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0x10], ebx
div ecx
push esi
mov esi, eax
test edx, edx
je 0x40878e
inc esi
mov edx, dword [edi + 0x14]
cmp edx, 0x10
jb 0x40879a
mov eax, dword [edi]
jmp 0x40879c
mov eax, edi
imul esi, ecx
add eax, ebx
sub esi, ebx
cmp edx, 0x10
jb 0x4087ac
mov ecx, dword [edi]
jmp 0x4087ae
mov ecx, edi
push 0
sub eax, ecx
mov ecx, edi
push esi
push eax
call fcn.00409930
mov ecx, 0x3e8
xor edx, edx
mov eax, ecx
xor ebx, ebx
div dword [ebp - 8]
sub ecx, edx
xor esi, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x10]
sub eax, esi
cmp eax, ecx
jg 0x4087e1
mov dword [ebp - 0xc], eax
mov ebx, 1
cmp byte [ebp + 0x10], 0
mov ecx, edi
je 0x40880b
mov eax, dword [edi + 0x10]
sub eax, esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408560
add eax, esi
push eax
push 0
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x408825
lea eax, [ebp - 0xc]
push eax
call fcn.00408560
add eax, esi
push eax
push 0
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x408834
mov ecx, dword [ebp - 0xc]
add esi, ecx
test ebx, ebx
je 0x4087d0
jmp 0x408839
xor al, al
mov byte [ebp - 0x11], al
mov eax, dword [edi + 0x10]
cmp esi, eax
ja 0x408858
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x40884b
mov edi, dword [edi]
mov ebx, dword [ebp + 8]
mov al, byte [ebp - 0x11]
mov byte [edi + esi], 0
pop esi
jmp 0x408872
push 0
sub esi, eax
mov ecx, edi
push esi
call fcn.00407db0
mov ebx, dword [ebp + 8]
mov al, byte [ebp - 0x11]
pop esi
jmp 0x408872
xor al, al
mov byte [ebp - 0x11], al
test ebx, ebx
je 0x408880
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x408890
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jb 0x4088bd
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x4088d9
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4088c8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x40890f
cmp dword [ecx], edi
jne 0x408907
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x408917
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x408917
cmp dword [ecx], edi
jne 0x40891a
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.00406de0
push edi
call fcn.00428749
mov eax, dword [ebp - 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
mov dword [eax], esi
pop esi
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret 8
Function at 0x40b6d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b537b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xf4], esi
mov di, word [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
movups xmmword [ebp - 0x54], xmm0
movzx ecx, di
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 1
push ecx
push eax
push edx
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0xf0], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x40b769
push 0x10
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
mov eax, dword [esi + 0xc]
add eax, 4
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.0041b010
add esp, 0xc
jmp 0x40b8cb
mov esi, dword [ebp - 0xf0]
test esi, esi
jne 0x40b7a0
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x20]
push 0x10
push eax
xorps xmm0, xmm0
mov eax, dword [ecx + 0xc]
add eax, 4
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.0041b010
add esp, 0xc
jmp 0x40b8cb
test di, di
je 0x40b7b1
movzx eax, di
cmp dword [esi + 4], eax
jne 0x40b8b4
push 0x80
lea eax, [ebp - 0xec]
mov dword [ebp - 0x58], 0xf
push 0
push eax
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
call fcn.00449530
add esp, 0xc
mov edx, dword [esi + 0x14]
mov dword [ebp - 4], 0
test edx, edx
je 0x40b80c
cmp byte [edx], 0
jne 0x40b7f0
xor eax, eax
jmp 0x40b802
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7f5
sub eax, edi
mov di, word [ebp + 0x10]
push eax
push edx
lea ecx, [ebp - 0x6c]
call fcn.00407f90
push dword [esi + 0x10]
lea eax, [ebp - 0xec]
push dword [esi + 0x18]
push eax
call fcn.00449690
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0xec]
add esp, 0xc
add ecx, 0x2c
push eax
call fcn.0040cfc0
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
push 0x10
movups xmmword [ebp - 0x20], xmm0
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041b010
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0x30]
push 0x10
push ecx
xorps xmm0, xmm0
mov eax, dword [eax + 0xc]
add eax, 4
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.0041b010
mov eax, dword [ebp - 0x58]
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x40b8b4
mov ecx, dword [ebp - 0x6c]
inc eax
cmp eax, 0x1000
jb 0x40b8ab
test cl, 0x1f
jne 0x40b8e8
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b8e8
sub ecx, eax
cmp ecx, 4
jb 0x40b8e8
cmp ecx, 0x23
ja 0x40b8e8
mov ecx, eax
push ecx
call fcn.00428749
add esp, 4
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x40b7a0
push dword [ebp - 0xf0]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret 0xc
call fcn.00454301
int3