joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52bb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x52bb4e
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 4
jge 0x52bb72
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov eax, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0x5c9ac0]
mov dword [ebp - 8], eax
jmp 0x52bb45
mov ecx, dword [ebp - 8]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov byte [edx + 3], cl
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 2], al
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], dl
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov byte [edx], cl
xor eax, eax
jne 0x52bb72
mov esp, ebp
pop ebp
ret

Function at 0x52e1b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x5f5618]
xor eax, ebp
mov dword [ebp - 0x18c], eax
mov dword [ebp - 4], 0
jmp 0x52e1d8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jae 0x52e1f2
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [ecx]
mov byte [ebp + edx - 0x1ac], al
jmp 0x52e1cf
movzx ecx, byte [ebp - 0x1ac]
and ecx, 0xf8
mov byte [ebp - 0x1ac], cl
movzx edx, byte [ebp - 0x18d]
and edx, 0x7f
mov byte [ebp - 0x18d], dl
movzx eax, byte [ebp - 0x18d]
or eax, 0x40
mov byte [ebp - 0x18d], al
mov dword [ebp - 4], 0
jmp 0x52e237
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x20
jae 0x52e252
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x188], eax
jmp 0x52e22e
lea edx, [ebp - 0x1ac]
push edx
lea eax, [ebp - 0x188]
push eax
call fcn.0052e5f0
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0052ecb0
add esp, 8
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.0052e440
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.0052e2f0
add esp, 4
mov dword [ebp - 4], 0
jmp 0x52e2bc
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x20
jae 0x52e2d6
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [ebp + eax*4 - 0x88]
mov byte [edx], cl
jmp 0x52e2b3
xor eax, eax
mov ecx, dword [ebp - 0x18c]
xor ecx, ebp
call fcn.00541cc8
mov esp, ebp
pop ebp
ret
Function at 0x530da0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
movsx eax, byte [ebp + 8]
cmp eax, 0x41
jne 0x530dc3
mov ecx, dword [ebp + 0xc]
and ecx, 1
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x42
jne 0x530ddf
mov eax, dword [ebp + 0xc]
and eax, 2
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x43
jne 0x530dfb
mov edx, dword [ebp + 0xc]
and edx, 4
setne al
jmp 0x531053
movsx eax, byte [ebp + 8]
cmp eax, 0x44
jne 0x530e17
mov ecx, dword [ebp + 0xc]
and ecx, 0x10
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x45
jne 0x530e33
mov eax, dword [ebp + 0xc]
and eax, 0x20
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x46
jne 0x530e4f
mov edx, dword [ebp + 0xc]
and edx, 0x40
setne al
jmp 0x531053
movsx eax, byte [ebp + 8]
cmp eax, 0x47
jne 0x530e6e
mov ecx, dword [ebp + 0xc]
and ecx, 0x80
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x48
jne 0x530e8c
mov eax, dword [ebp + 0xc]
and eax, 0x200
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x49
jne 0x530eab
mov edx, dword [ebp + 0xc]
and edx, 0x400
setne al
jmp 0x531053
movsx eax, byte [ebp + 8]
cmp eax, 0x4a
jne 0x530eca
mov ecx, dword [ebp + 0xc]
and ecx, 0x800
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x4b
jne 0x530ee8
mov eax, dword [ebp + 0xc]
and eax, 0x1000
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x4c
jne 0x530f07
mov edx, dword [ebp + 0xc]
and edx, 0x2000
setne al
jmp 0x531053
movsx eax, byte [ebp + 8]
cmp eax, 0x4d
jne 0x530f26
mov ecx, dword [ebp + 0xc]
and ecx, 0x8000
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x4e
jne 0x530f44
mov eax, dword [ebp + 0xc]
and eax, 0x10000
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x4f
jne 0x530f63
mov edx, dword [ebp + 0xc]
and edx, 0x20000
setne al
jmp 0x531053
movsx eax, byte [ebp + 8]
cmp eax, 0x50
jne 0x530f82
mov ecx, dword [ebp + 0xc]
and ecx, 0x40000
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x51
jne 0x530fa0
mov eax, dword [ebp + 0xc]
and eax, 0x80000
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x52
jne 0x530fbf
mov edx, dword [ebp + 0xc]
and edx, 0x100000
setne al
jmp 0x531053
movsx eax, byte [ebp + 8]
cmp eax, 0x53
jne 0x530fd8
mov ecx, dword [ebp + 0xc]
and ecx, 0x400000
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x54
jne 0x530ff0
mov eax, dword [ebp + 0xc]
and eax, 0x800000
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x55
jne 0x531009
mov edx, dword [ebp + 0xc]
and edx, 0x2000000
setne al
jmp 0x531053
movsx eax, byte [ebp + 8]
cmp eax, 0x56
jne 0x531022
mov ecx, dword [ebp + 0xc]
and ecx, 0x20000000
setne al
jmp 0x531053
movsx edx, byte [ebp + 8]
cmp edx, 0x57
jne 0x53103a
mov eax, dword [ebp + 0xc]
and eax, 0x40000000
setne al
jmp 0x531053
movsx ecx, byte [ebp + 8]
cmp ecx, 0x58
jne 0x531051
mov edx, dword [ebp + 0xc]
and edx, 0x80000000
setne al
jmp 0x531053
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x541cc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5f5618]
jne 0x541cd2
repz ret
jmp fcn.005425d8

Function at 0x40302f
Capabilities:
Terminate process

Disassembly:
push 0x60
push 0x40fde8
call fcn.00407554
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x40e0a4]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [0x40e0a0]
call ebx
push eax
call dword [0x40e09c]
mov esi, eax
test esi, esi
jne 0x402e9a
push 0x12
call fcn.00402dea
pop ecx
jmp 0x403024
mov dword [esi], edi
push esi
call dword [0x40e098]
push esi
push 0
test eax, eax
jne 0x402eb8
call ebx
push eax
call dword [0x40e094]
jmp 0x403024
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [0x40e094]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x402eea
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
push ecx
pop eax
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x434280], esi
mov dword [0x434288], eax
mov dword [0x43428c], ecx
mov dword [0x434290], edx
mov dword [0x434284], edi
call fcn.00402e0e
mov dword [ebp - 0x20], eax
sub ebx, ebx
inc ebx
push ebx
call fcn.004074f8
pop ecx
or eax, eax
jne 0x402f32
push 0x1c
call fcn.00402dea
pop ecx
call fcn.00404531
test eax, eax
jne 0x402f43
push 0x10
call fcn.00402dea
pop ecx
call fcn.00407455
mov dword [ebp - 4], ebx
call fcn.00407215
test eax, eax
jge 0x402f5c
push 0x1b
call fcn.00406706
pop ecx
call dword [0x40e090]
mov dword [0x435a58], eax
call fcn.004070e0
mov dword [0x433e30], eax
call fcn.00407027
test eax, eax
jge 0x402f82
push 8
call fcn.00406706
pop ecx
call fcn.00406db4
test eax, eax
jge 0x402f93
push 9
call fcn.00406706
pop ecx
push ebx
call fcn.00406822
pop ecx
or eax, eax
je 0x402fa5
push eax
call fcn.00406706
pop ecx
call fcn.00406d57
test byte [ebp - 0x44], bl
je 0x402fb5
movzx ecx, word [ebp - 0x40]
jmp 0x402fb8
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x402fd5
push eax
call fcn.00406982
call fcn.004069a4
jmp 0x40300a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x403029
mov eax, 0xff
call fcn.00407599
ret
call fcn.00407746
jmp 0x402e4f

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x407e63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x124], 0x14
push 0x100
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00417510
add esp, 0xc
push 0x425a1c
lea ecx, [ebp - 0x120]
push ecx
call fcn.004179d0
add esp, 8
mov dword [ebp - 4], 0x20019
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0x120]
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push str.Protocol
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
call fcn.00422bb0
add esp, 4
push 0x425a58
lea ecx, [ebp - 0x18]
push ecx
call fcn.00422270
add esp, 8
test eax, eax
jne 0x407f1d
mov eax, 1
jmp 0x407f1f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40bb3e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
push edi
mov al, byte [0x42aafc]
mov byte [ebp - 0x208], al
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x3a0], 0x200
mov dword [ebp - 0x20c], 1
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov byte [ebp - 0x208], 0
push str.softwareRainbow_TechnologiesSentinelSuperPro
push 0x426504
lea edx, [ebp - 0x314]
push edx
call fcn.004178a0
add esp, 0xc
push 0x426508
lea eax, [ebp - 0x394]
push eax
call fcn.004179d0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417490
add esp, 4
test eax, eax
jne 0x40bbd1
mov dword [ebp - 8], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00417490
add esp, 4
test eax, eax
jne 0x40bbe8
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 1
jne 0x40bc12
cmp dword [ebp - 4], 1
jne 0x40bc12
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._l___s___f___s_
lea edx, [ebp - 0x208]
push edx
call fcn.004178a0
add esp, 0x10
jmp 0x40bc65
cmp dword [ebp - 8], 1
jne 0x40bc38
cmp dword [ebp - 4], 0
jne 0x40bc38
mov eax, dword [ebp + 8]
push eax
push str._l___s_
lea ecx, [ebp - 0x208]
push ecx
call fcn.004178a0
add esp, 0xc
jmp 0x40bc65
cmp dword [ebp - 8], 0
jne 0x40bc5e
cmp dword [ebp - 4], 1
jne 0x40bc5e
mov edx, dword [ebp + 0xc]
push edx
push str._f___s_
lea eax, [ebp - 0x208]
push eax
call fcn.004178a0
add esp, 0xc
jmp 0x40bc65
xor eax, eax
jmp 0x40bd0d
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x39c]
push edx
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x314]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
jne 0x40bcf6
lea ecx, [ebp - 0x208]
push ecx
call fcn.00417490
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x208]
push edx
push 1
push 0
lea eax, [ebp - 0x394]
push eax
mov ecx, dword [ebp - 0x39c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x40bcf4
mov edx, dword [ebp - 0x39c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x398]
jmp 0x40bd0d
jmp 0x40bcfe
mov eax, dword [ebp - 0x398]
jmp 0x40bd0d
mov eax, dword [ebp - 0x39c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40c6d0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push ebp
call fcn.0040d2a0
test eax, eax
mov eax, dword [esp + 0x14]
push eax
jne 0x40c700
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
mov ebx, eax
jne 0x40c71a
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x40c71a
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push ebx
call edi
test eax, eax
je 0x40c74d
cmp eax, 0x102
jne 0x40c75a
inc esi
cmp esi, dword [esp + 0x24]
jle 0x40c724
push ebx
call fcn.0040c7d0
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
ret
mov eax, 0x73
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c770
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.0040d2a0
test eax, eax
mov eax, dword [esp + 8]
push eax
push 0
jne 0x40c799
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40c7ae
mov eax, 1
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40c7ae
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40c7c5
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x40cac0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
mov al, byte [0x426cc8]
mov ecx, 0x40
push esi
mov byte [esp + 4], al
push edi
lea edi, [esp + 9]
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x426cc8]
lea edi, [esp + 0x10d]
mov ecx, 0x40
mov byte [esp + 0x10c], al
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x214]
cmp esi, 1
jne 0x40cb5e
lea eax, [esp + 8]
push str.spnserv.dat
lea ecx, [esp + 0x110]
push eax
push str._s_s
push ecx
call fcn.004178a0
add esp, 0x10
cmp dword [0x4362e0], 0
je 0x40cb51
push 0x4362e0
call fcn.0040ca60
add esp, 4
push 0x4362e0
call fcn.0040ca90
add esp, 4
cmp esi, 2
jne 0x40cba5
lea eax, [esp + 8]
push str.spserv.dat
lea ecx, [esp + 0x110]
push eax
push str._s_s
push ecx
call fcn.004178a0
add esp, 0x10
cmp dword [0x436300], 0
je 0x40cb98
push 0x436300
call fcn.0040ca60
add esp, 4
push 0x436300
call fcn.0040ca90
add esp, 4
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
add esp, 0x208
ret

Function at 0x40ccf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3cc
mov dword [esp + 8], 1
push esi
mov ecx, 0xb
push edi
mov esi, str.SoftwareRainbow_TechnologiesSentinelSuperPro
mov dword [esp + 0xc], 0x20f
mov byte [esp + 0xc0], 0
lea edi, [esp + 0x2d0]
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [str.NSPOPTS]
mov eax, str.NSPOPTS
mov dword [edx], ecx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2d0]
mov dword [edx + 4], eax
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ce2d
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
test esi, esi
je 0x40cda1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x3cc
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xc0], 0
jne 0x40cdbc
mov eax, esi
pop edi
pop esi
add esp, 0x3cc
ret
lea eax, [esp + 0x18]
push 0xa
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0xc8]
push ecx
mov dword [esp + 0x24], str.spnsrvxx.exe
push edx
call fcn.00410d20
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x10
push str.:l:f:d
push ecx
push edx
call fcn.00410a50
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x40ce0b
mov eax, 0xffffffff
pop edi
pop esi
add esp, 0x3cc
ret
mov eax, dword [esi]
push eax
call fcn.0040ce40
add esp, 4
mov eax, dword [esi + 4]
push eax
call fcn.0040d1b0
add esp, 4
push esi
call fcn.00417150
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x3cc
ret
Function at 0x40d320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, 0x65
mov ecx, 0x72
push ebx
xor ebx, ebx
mov byte [esp + 5], al
mov byte [esp + 4], 0x54
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 6], cl
mov byte [esp + 0xe], al
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], bl
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0x10], 0x76
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x40d3aa
cmp al, 4
lea eax, [esp + 4]
push eax
jbe 0x40d3a0
call fcn.0040d3c0
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret
call fcn.0040d3c0
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x40d3c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [esp + 0x1c], ebx
push str.SystemCurrentControlSetControlProductOptions
mov dword [esp + 0x1c], ebx
push reloc.WSOCK32.dll_bind
call ebp
test eax, eax
jne 0x40d484
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ebx
push str.ProductSuite
push edx
call edi
test eax, eax
jne 0x40d484
cmp dword [esp + 0x14], ebx
je 0x40d484
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0x40
call ebp
mov esi, eax
test esi, esi
je 0x40d48f
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push ebx
push str.ProductSuite
push edx
call edi
test eax, eax
jne 0x40d484
cmp dword [esp + 0x18], 7
jne 0x40d484
mov ebp, esi
cmp byte [esi], bl
je 0x40d484
mov edi, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40d47f
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x40d460
jmp 0x40d484
mov ebx, 1
test esi, esi
je 0x40d48f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
je 0x40d4a3
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x40d4b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x10], 4
mov byte [esp + 8], 0
push 0x20019
push 0
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
lea eax, [esp + 4]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40d517
mov eax, dword [esp + 0x1c]
movsx ecx, byte [esp + 4]
mov dword [eax], ecx
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x40dd10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov dword [esp], 0x10
push esi
push edi
push 0x4e8
push 5
push 6
call fcn.0040fab0
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
je 0x40dda7
mov edx, dword [esp + 8]
lea edi, [esp + 0xc]
xor eax, eax
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov word [esp + 0xc], 6
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x40dda7
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x40dda7
lea eax, [esp + 0xc]
push eax
call fcn.0040dc90
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004178a0
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push eax
call fcn.004178a0
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x14
ret

Function at 0x411630
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
jne 0x411641
mov ax, 2
pop esi
ret 0x14
push eax
call fcn.00411b20
cmp word [eax], 0x7242
mov esi, eax
je 0x411658
mov ax, 2
pop esi
ret 0x14
test byte [esi + 0x12], 4
jne 0x41166c
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x14
mov word [esi + 0x30], 0xf
mov ax, word [esp + 0x18]
mov cx, word [esp + 0xc]
push esi
mov dx, word [esp + 0x14]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x18]
mov word [esi + 0x3a], cx
mov word [esi + 0x3c], dx
mov word [esi + 0x3e], ax
call fcn.00411980
mov cx, word [esi + 6]
push ecx
call fcn.00410dc0
cmp ax, 0xc
jne 0x4116b4
mov ax, 3
pop esi
ret 0x14
mov ax, word [esi + 6]
push eax
call fcn.00410dc0
pop esi
ret 0x14