joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42095f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call fcn.00420902
test al, al
je 0x420acc
mov ecx, esi
call fcn.0042056e
test eax, eax
je 0x420acc
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x420acc
mov byte [ebp - 0x10], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
inc ebx
push ebx
call fcn.0041fb49
push 3
mov dword [ebp - 0x1c], eax
call fcn.0041fb49
push 2
mov dword [ebp - 0x20], eax
call fcn.0041fb49
and dword [ebp - 0x18], 0
add esp, 0xc
cmp dword [ebp - 0xc], 0
mov ecx, eax
mov dword [ebp - 8], ecx
jbe 0x420a96
xor esi, esi
push edi
mov edi, dword [ebp - 0x14]
cmp dword [esi + edi + 4], ebx
je 0x4209f5
cmp dword [esi + edi + 4], 2
jne 0x420a82
cmp dword [esi + edi + 0x14], 0
jne 0x420a82
test ecx, ecx
je 0x420a27
mov eax, dword [esi + edi]
and eax, 0x20031
cmp eax, 0x20031
jne 0x420a27
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x420a27
mov byte [ebp - 1], bl
jmp 0x420a7f
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x420a51
mov eax, dword [esi + edi]
and eax, 0x20031
cmp eax, 0x20031
jne 0x420a51
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x420a51
mov byte [ebp - 2], bl
jmp 0x420a7f
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x420a7f
mov eax, dword [esi + edi]
mov edx, 0x30031
and eax, edx
cmp eax, edx
jne 0x420a7f
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 0x10]
test eax, eax
movzx ecx, cl
cmovne ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
add esi, 0x20
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0xc]
jb 0x4209e1
pop edi
lea eax, [ebp - 0x1c]
push eax
call fcn.0042106f
lea eax, [ebp - 0x20]
push eax
call fcn.0042106f
lea eax, [ebp - 8]
push eax
call fcn.0042106f
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x420ac6
cmp byte [ebp - 2], 0
je 0x420ac6
cmp byte [ebp - 0x10], 0
jne 0x420ac8
xor bl, bl
mov al, bl
jmp 0x420ace
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x42262f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb al, al
xor ecx, ebp
inc al
call fcn.00540aaa
leave
ret
Function at 0x423425
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x423437
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x42347c
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x4234f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4234f9
pop esi
ret

Function at 0x423873
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x42388a
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x42391b
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax + 0x14], 0x10
mov ebx, 0x811c9dc5
mov esi, eax
jb 0x423933
mov esi, dword [eax]
mov ecx, eax
jb 0x423939
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
and dword [ebp + 8], 0
add eax, ecx
mov edi, eax
xor ecx, ecx
sub edi, esi
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x42397c
mov cl, byte [esi]
lea edx, [ecx - 0x41]
lea eax, [ecx + 0x20]
cmp dl, 0x19
movzx eax, al
movzx ecx, cl
cmovbe ecx, eax
movsx eax, cl
xor eax, ebx
imul ebx, eax, 0x1000193
inc esi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x423951
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x423a13
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004238aa
Function at 0x4255ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.00540f20
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x280c], eax
add eax, 0x2844
push ebx
xor ebx, ebx
push esi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x2808], ebx
jb 0x425625
mov eax, dword [eax]
push 0x59b968
push eax
call fcn.00568600
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4256ad
push esi
call fcn.00568419
pop ecx
test eax, eax
jne 0x4256a6
push edi
push esi
push 0x2800
lea eax, [ebp - 0x2804]
push 1
push eax
call fcn.0056327a
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x42569a
mov ebx, edi
mov ecx, dword [ebp - 0x280c]
lea edx, [ebp - 0x2804]
mov eax, edi
sub eax, ebx
add eax, edx
push dword [ecx + 0x2800]
push ebx
push eax
push dword [ecx + 0x2804]
call dword [ecx + 0x2978]
add esp, 0x10
test eax, eax
js 0x4256bd
sub ebx, eax
jne 0x425663
mov ebx, dword [ebp - 0x2808]
push esi
call fcn.00568419
pop ecx
test eax, eax
je 0x425644
pop edi
push esi
call fcn.005629be
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00540aaa
leave
ret
push 0
mov ebx, eax
push 2
push esi
mov dword [ebp - 0x2808], ebx
call fcn.00563713
add esp, 0xc
jmp 0x42569a
Function at 0x434946
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push 0xbc
mov eax, 0x58a7b7
call fcn.00540b26
mov esi, ecx
push esi
push 0x59ce28
push 1
xor ebx, ebx
push ebx
push 0x59ce18
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x434977
cmp dword [esi], ebx
jne 0x4349cb
call fcn.0040c312
push 2
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bc1a
push edi
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], ebx
push str.Failed_to_connect_Windows_Firewall_policy_due_to
push eax
call fcn.004014b9
pop ecx
pop ecx
mov ecx, eax
call fcn.00434244
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
call fcn.0040be01
push 0xb
push str.init_policy
lea ecx, [esi + 0xc]
mov dword [esi + 0x24], edi
call fcn.0040677e
cmp dword [esi], ebx
setne al
call fcn.00540ad0
ret

Function at 0x43b3a7
Capabilities:
Delete registry key

Disassembly:
push 0x34
mov eax, 0x5912e2
call fcn.00540b26
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x43b3c5
xor al, al
jmp 0x43b451
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041eaa8
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], ebx
jne 0x43b426
cmp dword [esi + 0x14], ebx
je 0x43b447
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041eaa8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0043420d
lea ecx, [ebp - 0x40]
call fcn.00406537
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x1c]
call fcn.0043b01e
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, esi
mov edi, eax
call fcn.0043b009
jmp 0x43b43c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edi, eax
test edi, edi
je 0x43b445
cmp edi, 2
jne 0x43b447
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406537
mov al, bl
call fcn.00540ad0
ret 4
Function at 0x43b648
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00540f20
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1020], esi
mov ebx, dword [ecx]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x43b74f
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.00559fa0
xor ecx, ecx
mov dword [ebp - 0x1028], 0x1000
add esp, 0xc
mov dword [ebp - 0x1020], ecx
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x1024], eax
cmp dword [edi + 0x10], ecx
jne 0x43b6b5
mov edi, ecx
jmp 0x43b6bd
cmp dword [edi + 0x14], 8
jb 0x43b6bd
mov edi, dword [edi]
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1020]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43b74f
cmp dword [ebp - 0x1020], 3
jne 0x43b74f
lea eax, [ebp - 0x1030]
push eax
push 5
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, 1
jne 0x43b74f
push dword [ebp - 0x1030]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x102c]
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.0040677e
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00403659
lea ecx, [ebp - 0x1c]
call fcn.00406511
jmp 0x43b75d
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00540aaa
leave
ret 8
Function at 0x43b8e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
push edi
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov dword [esi + 0x10], ecx
lea edi, [esi + 0x1c]
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
mov dword [esi + 0x18], ecx
push ebx
push eax
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
call fcn.0041ea15
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004042de
lea ecx, [ebp - 0x1c]
call fcn.00406511
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0
je 0x43b9a3
and dword [ebp - 0x20], 0
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x43b952
mov ecx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [esi + 0x18]
push eax
push 0
push ecx
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x43b974
cmp dword [ebp - 0x20], 0
je 0x43b9a3
push edi
push dword [ebp - 0x20]
mov ecx, edi
call fcn.004125eb
cmp dword [ebx + 0x14], 8
jb 0x43b987
mov ebx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
push dword [edi]
lea eax, [esi + 0x18]
push eax
mov eax, dword [ebp - 0x24]
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43b9bc
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
mov dword [esi + 0x18], ecx
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00540aaa
leave
ret 8

Function at 0x43bb85
Capabilities:
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x5913f4
call fcn.00540b26
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x43bba3
xor al, al
jmp 0x43bc56
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041eaa8
pop ecx
pop ecx
test byte [esi + 0x20], 2
mov dword [ebp - 4], ebx
jne 0x43bc2d
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043c47b
test al, al
je 0x43bc2d
push dword [esi + 0x1c]
call fcn.0043b01e
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
movzx eax, byte [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
or eax, 2
mov byte [ebp - 4], 1
push eax
call fcn.0043b82a
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0043ba23
add esp, 0x20
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00406511
test bl, bl
je 0x43bc2b
mov ecx, esi
call fcn.0043b009
mov eax, dword [ebp - 0x48]
or dword [esi + 0x20], 2
mov dword [esi], eax
xor ebx, ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x43bc4a
cmp eax, 2
jne 0x43bc4c
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406537
mov al, bl
call fcn.00540ad0
ret 4
Function at 0x43bde2
Capabilities:
Set registry value

Disassembly:
push 0x4c
mov eax, 0x591429
call fcn.00540b26
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x43be00
xor al, al
jmp 0x43bed7
test byte [esi + 0x20], 2
jne 0x43beb7
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.0043b8e5
cmp dword [ebp - 0x38], 4
mov dword [ebp - 4], ebx
jne 0x43be41
lea ecx, [ebp - 0x50]
call fcn.0043c291
cmp eax, dword [ebp + 0xc]
jne 0x43be41
lea ecx, [ebp - 0x34]
call fcn.004064bc
lea ecx, [ebp - 0x50]
call fcn.00406511
mov al, 1
jmp 0x43bed7
push dword [esi + 0x1c]
call fcn.0043b01e
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
movzx eax, byte [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
or eax, 2
mov byte [ebp - 4], 1
push eax
call fcn.0043b82a
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043ba23
add esp, 0x20
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00406511
test bl, bl
je 0x43bea5
mov ecx, esi
call fcn.0043b009
mov eax, dword [ebp - 0x58]
or dword [esi + 0x20], 2
mov dword [esi], eax
lea ecx, [ebp - 0x34]
call fcn.004064bc
lea ecx, [ebp - 0x50]
call fcn.00406511
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x43bebf
mov edi, dword [edi]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
call fcn.00540ad0
ret 8
Function at 0x43bf75
Capabilities:
Set registry value

Disassembly:
push 0x50
mov eax, 0x59145e
call fcn.00540b26
mov esi, ecx
cmp dword [esi], 0
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c], ebx
jne 0x43bf98
xor al, al
jmp 0x43c0aa
cmp dword [ebx + 0x10], 0
jne 0x43bfab
cmp byte [ebp + 0x10], 0
jne 0x43bfab
mov al, 1
jmp 0x43c0aa
test byte [esi + 0x20], 2
jne 0x43c076
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.0043b8e5
and dword [ebp - 4], 0
cmp dword [ebp - 0x38], 1
jne 0x43bffd
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043c3ae
push ebx
mov ecx, eax
call fcn.0043c4a2
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00406537
test bl, bl
je 0x43bffd
lea ecx, [ebp - 0x34]
call fcn.004064bc
lea ecx, [ebp - 0x50]
call fcn.00406511
jmp 0x43bfa4
push dword [esi + 0x1c]
call fcn.0043b01e
and dword [ebp - 0x18], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
movzx eax, byte [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
or eax, 2
mov byte [ebp - 4], 1
push eax
call fcn.0043b82a
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043ba23
add esp, 0x20
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00406511
test bl, bl
je 0x43c063
mov ecx, esi
call fcn.0043b009
mov eax, dword [ebp - 0x58]
or dword [esi + 0x20], 2
mov dword [esi], eax
lea ecx, [ebp - 0x34]
call fcn.004064bc
lea ecx, [ebp - 0x50]
call fcn.00406511
mov ebx, dword [ebp - 0x5c]
cmp dword [edi + 0x10], 0
jne 0x43c080
xor edi, edi
jmp 0x43c088
cmp dword [edi + 0x14], 8
jb 0x43c088
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x43c093
mov ebx, dword [ebx]
add eax, eax
push eax
push ebx
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
call fcn.00540ad0
ret 0xc

Function at 0x43c47b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x43c489
mov eax, dword [eax]
xor edx, edx
push edx
push edx
push edx
push edx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
setne al
pop ebp
ret 4
Function at 0x43c946
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43c96d
mov eax, dword [ebp + 8]
or dword [eax + 4], esi
mov byte [eax], 0
jmp 0x43ca22
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, 0x4000
push 4
pop ebx
cmp eax, 0xffffffff
je 0x43c9cd
test eax, eax
mov dword [ebp - 4], 4
mov ebx, edi
cmovne ebx, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1002
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
push 4
cmp dword [ebp - 8], ebx
je 0x43c9cc
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
pop ebx
push ebx
push eax
push 0x1002
push 0xffff
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x43c9cd
pop ebx
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x43ca17
test eax, eax
mov dword [ebp - 4], ebx
cmovne edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 8], edi
je 0x43ca17
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x1001
push 0xffff
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov byte [eax], 1
mov dword [eax + 4], esi
pop esi
leave
ret

Function at 0x43ccbd
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [ebp - 4]
push esi
push edi
xor esi, esi
push esi
push 5
push 2
push esi
push eax
push esi
mov dword [ebp - 4], esi
call ebx
or dword [ebp - 8], 0xffffffff
mov edi, esi
jmp 0x43cd04
push edi
call fcn.0055cb2b
push dword [ebp - 4]
call fcn.00568622
pop ecx
pop ecx
push esi
push 5
push 2
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
push edi
call ebx
cmp eax, 0x7a
je 0x43cce5
test eax, eax
jne 0x43cd64
lea ebx, [edi + 0x10]
cmp esi, dword [edi]
jae 0x43cd64
push dword [ebx - 8]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x7f000001
jne 0x43cd52
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x7f000001
jne 0x43cd52
mov eax, dword [ebp + 8]
movzx eax, word [eax + 2]
cmp dword [ebx - 4], eax
jne 0x43cd52
movzx eax, word [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [ebp + 0xc]
je 0x43cd58
inc esi
add ebx, 0x18
jmp 0x43cd10
lea eax, [esi + 1]
imul eax, eax, 0x18
mov eax, dword [eax + edi]
mov dword [ebp - 8], eax
push edi
call fcn.0055cb2b
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451d81
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, esi
push edi
mov edi, dword [ebp + 8]
movzx edx, al
add edi, esi
and edx, 1
test esi, esi
je 0x451dba
dec ebx
movzx eax, al
movzx ecx, byte [ebx]
xor ecx, eax
mov al, byte [ebp + 0x14]
add edx, ecx
dec edi
mov byte [edi], dl
shr edx, 8
sub esi, 1
jne 0x451da1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45a088
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
cmp edx, ebx
je 0x45a110
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
push esi
push edi
lea esi, [eax - 1]
xor edi, edi
not eax
shr esi, 0x1f
shr eax, 0x1f
and esi, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec esi
and eax, esi
mov dword [ebp + 0x10], esi
xor ecx, eax
mov dword [edx + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
and eax, esi
xor ecx, eax
mov dword [edx + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, esi
and eax, 4
xor ecx, eax
mov dword [edx + 0x10], ecx
xor dword [ebx + 0x10], eax
cmp dword [ebp + 0x14], edi
jle 0x45a10e
mov esi, dword [edx]
mov eax, dword [ebx]
mov ecx, dword [esi + edi*4]
mov edx, dword [eax + edi*4]
xor edx, ecx
and edx, dword [ebp + 0x10]
xor ecx, edx
mov dword [esi + edi*4], ecx
mov eax, dword [ebx]
xor dword [eax + edi*4], edx
inc edi
mov edx, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
jl 0x45a0ec
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4608bd
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x60
push 0
push esi
call fcn.00559fa0
add esp, 0xc
mov dword [esi], 0x67452301
xor eax, eax
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
inc eax
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x461c88
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.00559fa0
add esp, 0xc
mov dword [esi], 0xc1059ed8
xor eax, eax
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
inc eax
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
pop esi
pop ebp
ret

Function at 0x461e26
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.00559fa0
add esp, 0xc
mov dword [esi], 0x6a09e667
xor eax, eax
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
inc eax
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret