joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422eb6
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 0x422ec8
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 0x422f0d
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 0x422f81
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 0x422f8a
pop esi
ret

Function at 0x423304
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 0x42331b
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x4233ac
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 0x4233c4
mov esi, dword [eax]
mov ecx, eax
jb 0x4233ca
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 0x42340d
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 0x4233e2
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042333b
Function at 0x425080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.00546aa0
mov eax, dword [0x639034]
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 0x4250b6
mov eax, dword [eax]
push 0x5a28a4
push eax
call fcn.0056e180
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42513e
push esi
call fcn.0056df99
pop ecx
test eax, eax
jne 0x425137
push edi
push esi
push 0x2800
lea eax, [ebp - 0x2804]
push 1
push eax
call fcn.00568dfa
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x42512b
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 0x42514e
sub ebx, eax
jne 0x4250f4
mov ebx, dword [ebp - 0x2808]
push esi
call fcn.0056df99
pop ecx
test eax, eax
je 0x4250d5
pop edi
push esi
call fcn.0056853e
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00546623
leave
ret
push 0
mov ebx, eax
push 2
push esi
mov dword [ebp - 0x2808], ebx
call fcn.00569293
add esp, 0xc
jmp 0x42512b
Function at 0x4347c2
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push 0xbc
mov eax, 0x590314
call fcn.0054669f
mov esi, ecx
push esi
push 0x5a3db0
push 1
xor ebx, ebx
push ebx
push 0x5a3da0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x4347f3
cmp dword [esi], ebx
jne 0x434847
call fcn.0040c461
push 2
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bd69
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.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004340c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
call fcn.0040bf50
push 0xb
push str.init_policy
lea ecx, [esi + 0xc]
mov dword [esi + 0x24], edi
call fcn.004068ce
cmp dword [esi], ebx
setne al
call fcn.00546649
ret

Function at 0x43f305
Capabilities:
Delete registry key

Disassembly:
push 0x34
mov eax, 0x597ac6
call fcn.0054669f
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x43f323
xor al, al
jmp 0x43f3af
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041efad
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], ebx
jne 0x43f384
cmp dword [esi + 0x14], ebx
je 0x43f3a5
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041efad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00434089
lea ecx, [ebp - 0x40]
call fcn.00406687
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x1c]
call fcn.0043ee9c
pop ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov ecx, esi
mov edi, eax
call fcn.0043edf8
jmp 0x43f39a
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_RegDeleteTreeW]
mov edi, eax
test edi, edi
je 0x43f3a3
cmp edi, 2
jne 0x43f3a5
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406687
mov al, bl
call fcn.00546649
ret 4
Function at 0x43f64a
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00546aa0
mov eax, dword [0x639034]
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 0x43f751
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.0055fb20
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 0x43f6b7
mov edi, ecx
jmp 0x43f6bf
cmp dword [edi + 0x14], 8
jb 0x43f6bf
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 0x43f751
cmp dword [ebp - 0x1020], 3
jne 0x43f751
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 0x43f751
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.004068ce
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004037a9
lea ecx, [ebp - 0x1c]
call fcn.00406661
jmp 0x43f75f
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.00546623
leave
ret 8
Function at 0x43faa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x639034]
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.0041ef1a
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0040442e
lea ecx, [ebp - 0x1c]
call fcn.00406661
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0
je 0x43fb66
and dword [ebp - 0x20], 0
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x43fb15
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 0x43fb37
cmp dword [ebp - 0x20], 0
je 0x43fb66
push edi
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00412a43
cmp dword [ebx + 0x14], 8
jb 0x43fb4a
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 0x43fb7f
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.00546623
leave
ret 8

Function at 0x44005d
Capabilities:
Delete registry value

Disassembly:
push 0x1c
mov eax, 0x592e77
call fcn.0054669f
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x440078
xor al, al
jmp 0x4400d7
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041efad
pop ecx
pop ecx
test byte [esi + 0x20], 2
mov dword [ebp - 4], ebx
jne 0x4400ae
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00440976
test al, al
je 0x4400ae
mov eax, dword [esi + 0x20]
mov ecx, esi
or eax, 2
push eax
call fcn.0044016a
test al, al
je 0x4400cd
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 0x4400cb
cmp eax, 2
jne 0x4400cd
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406687
mov al, bl
call fcn.00546649
ret 4
Function at 0x4401b9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4401c9
xor al, al
jmp 0x440231
mov ecx, dword [esi + 0x20]
test cl, 2
jne 0x440207
movzx eax, byte [esi + 0x24]
or ecx, 2
push eax
push ecx
call fcn.0043f957
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 4]
push eax
push dword [esi + 0x1c]
call fcn.0043fe10
add esp, 0x18
test al, al
je 0x440207
mov ecx, esi
call fcn.0043edf8
mov eax, dword [ebp - 4]
or dword [esi + 0x20], 2
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [eax + 0x14], 8
jb 0x44021c
mov eax, dword [eax]
push ecx
push edx
push 3
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
pop esi
leave
ret 8

Function at 0x440277
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x44032b
mov ecx, dword [esi + 0x20]
test cl, 2
jne 0x4402c9
movzx eax, byte [esi + 0x24]
or ecx, 2
push eax
push ecx
call fcn.0043f957
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 4]
push eax
push dword [esi + 0x1c]
call fcn.0043fe10
add esp, 0x18
test al, al
je 0x4402c9
mov ecx, esi
call fcn.0043edf8
mov eax, dword [ebp - 4]
or dword [esi + 0x20], 2
mov dword [esi], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
jb 0x4402da
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push eax
push 5
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], edi
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
cmp eax, 1
jne 0x44032b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x440307
mov eax, dword [eax]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 3
push edi
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
sete al
jmp 0x44032d
xor al, al
pop edi
pop esi
leave
ret 8
Function at 0x440333
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x597c5d
call fcn.0054669f
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x440351
xor al, al
jmp 0x4403d1
test byte [esi + 0x20], 2
jne 0x4403b1
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.0043faa8
cmp dword [ebp - 0x20], 4
mov dword [ebp - 4], ebx
jne 0x44037b
lea ecx, [ebp - 0x38]
call fcn.00440777
cmp eax, dword [ebp + 0xc]
jne 0x44037b
mov bl, 1
jmp 0x44038d
mov eax, dword [esi + 0x20]
mov ecx, esi
or eax, 2
push eax
call fcn.0044016a
test al, al
jne 0x4403a1
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
mov al, bl
jmp 0x4403d1
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
cmp dword [edi + 0x14], 8
jb 0x4403b9
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.00546649
ret 8

Function at 0x4404c6
Capabilities:
Set registry value

Disassembly:
push 0x4c
mov eax, 0x597c8a
call fcn.0054669f
mov ebx, ecx
mov dword [ebp - 0x58], ebx
cmp dword [ebx], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
jne 0x4404e9
xor al, al
jmp 0x4405b3
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4404fc
cmp byte [ebp + 0x10], al
jne 0x4404fc
mov al, 1
jmp 0x4405b3
xor ecx, ecx
inc ecx
test byte [ebx + 0x20], 2
mov dword [ebp - 0x54], ecx
jne 0x440583
push esi
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0043faa8
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 1
jne 0x440543
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.0044089b
push edi
mov ecx, eax
call fcn.0044099d
lea ecx, [ebp - 0x50]
mov bl, al
call fcn.00406687
test bl, bl
jne 0x440558
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebx + 0x20]
mov ecx, ebx
or eax, 2
push eax
call fcn.0044016a
test al, al
jne 0x44056d
mov byte [ebp - 0x54], al
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
mov al, byte [ebp - 0x54]
jmp 0x4405b3
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
mov eax, dword [edi + 0x10]
xor ecx, ecx
inc ecx
cmp dword [esi + 0x10], 0
jne 0x44058d
xor esi, esi
jmp 0x440595
cmp dword [esi + 0x14], 8
jb 0x440595
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x44059d
mov edi, dword [edi]
add eax, eax
push eax
push edi
push ecx
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
call fcn.00546649
ret 0xc

Function at 0x440976
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x440984
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 0x440e8d
Capabilities:
Compare security identifiers

Disassembly:
push 0x28
mov eax, 0x597e3d
call fcn.0054666b
mov esi, ecx
and dword [ebp - 0x20], 0
mov edi, dword [ebp + 8]
and dword [edi], 0
and dword [edi + 4], 0
and dword [edi + 8], 0
and dword [ebp - 4], 0
push 0
mov dword [ebp - 0x20], 1
call fcn.00441207
test al, al
je 0x440fc4
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x440fc4
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 4]
jmp 0x440fbb
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x440fae
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x440fae
mov al, byte [ebx]
test al, al
jne 0x440f5a
push dword [ebx + 4]
lea eax, [ebx + 8]
mov ecx, esi
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call dword [eax + 4]
mov byte [ebp - 0xd], al
test al, al
je 0x440fae
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x30]
mov dword [ebp - 0x24], eax
cmp ebx, eax
je 0x440fae
push dword [ebp - 0x14]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x440f4a
add ebx, 8
cmp ebx, dword [ebp - 0x24]
jne 0x440f30
jmp 0x440fae
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x2c], al
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
jmp 0x440fa6
cmp al, 1
jne 0x440fae
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 0x24], ecx
jmp 0x440f82
push edx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x440f8c
mov eax, dword [ebp - 0x14]
add eax, 8
cmp eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
lea edx, [ebx + 8]
jne 0x440f6b
jmp 0x440fae
mov eax, dword [esi]
mov ecx, esi
push dword [ebx + 4]
call dword [eax + 4]
or al, 0x80
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.0041f471
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 0x1c]
inc edx
movzx ecx, word [eax + 4]
cmp edx, ecx
mov dword [ebp - 0x1c], edx
jb 0x440edf
mov eax, edi
call fcn.00546634
ret 4
Function at 0x44194d
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 0x441974
mov eax, dword [ebp + 8]
or dword [eax + 4], esi
mov byte [eax], 0
jmp 0x441a29
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, 0x4000
push 4
pop ebx
cmp eax, 0xffffffff
je 0x4419d4
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 0x4419d3
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 0x4419d4
pop ebx
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x441a1e
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 0x441a1e
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 0x441cc4
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 0x441d0b
push edi
call fcn.005626ab
push dword [ebp - 4]
call fcn.0056e1a2
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 0x441cec
test eax, eax
jne 0x441d6b
lea ebx, [edi + 0x10]
cmp esi, dword [edi]
jae 0x441d6b
push dword [ebx - 8]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x7f000001
jne 0x441d59
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x7f000001
jne 0x441d59
mov eax, dword [ebp + 8]
movzx eax, word [eax + 2]
cmp dword [ebx - 4], eax
jne 0x441d59
movzx eax, word [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [ebp + 0xc]
je 0x441d5f
inc esi
add ebx, 0x18
jmp 0x441d17
lea eax, [esi + 1]
imul eax, eax, 0x18
mov eax, dword [eax + edi]
mov dword [ebp - 8], eax
push edi
call fcn.005626ab
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4576b6
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 0x4576ef
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 0x4576d6
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45f9be
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 0x45fa46
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 0x45fa44
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 0x45fa22
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4661f3
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.0055fb20
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 0x4675be
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.0055fb20
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 0x46775c
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.0055fb20
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