joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a691
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
call fcn.004491b0
mov edi, eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004090c3
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x44a6c7
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00406385
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret

Function at 0x44a7ac
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x7906f4
call fcn.006fee7b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ecx
push eax
call fcn.004090c3
pop ecx
pop ecx
mov edi, eax
xor esi, esi
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], esi
jb 0x44a7df
mov edi, dword [edi]
push esi
push ebx
call fcn.004491b0
pop ecx
push eax
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00406385
cmp edi, 0xffffffff
jne 0x44a80f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44a859
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x44a833
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
je 0x44a847
test esi, esi
je 0x44a84b
call ebx
mov esi, eax
test esi, esi
jne 0x44a857
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x2c], eax
push 0x27
pop ecx
cmovne esi, ecx
mov eax, esi
call fcn.006fee25
ret

Function at 0x45ae6d
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 0x45ae7f
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 0x45aec4
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 0x45af38
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 0x45af41
pop esi
ret

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

Function at 0x45b285
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, 0xcbf29ce4
push ebx
push esi
push edi
cmp dword [eax + 0x14], 0x10
mov ebx, 0x84222325
mov dword [ebp - 4], edx
mov esi, eax
jb 0x45b2a6
mov esi, dword [eax]
mov ecx, eax
jb 0x45b2ac
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 0x45b2ef
movsx eax, byte [esi]
push 0x100
cdq
xor edx, dword [ebp - 4]
xor eax, ebx
push 0x1b3
push edx
push eax
call fcn.006ff3f0
mov ebx, eax
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x45b2c4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x45b2f6
Capabilities:
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 0x45b30e
mov esi, dword [eax]
mov ecx, eax
jb 0x45b314
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 0x45b357
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 0x45b32c
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b2f6

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b285

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b35e
Function at 0x45c9be
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x314], 0xffffffff
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
cmp eax, 0x3e7
ja 0x45ca11
imul eax, eax, 0x3e8
mov dword [ebp - 0x318], eax
jmp 0x45ca1b
mov dword [ebp - 0x31c], 1
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ecx + 0x38]
call fcn.0069f021
mov eax, dword [ebp - 0x314]
add esp, 0x14
test eax, eax
jns 0x45ca6d
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0x64
push eax
mov dword [ebp - 0x320], esi
call fcn.0040d206
pop ecx
xor eax, eax
jmp 0x45ca91
lea ecx, [ebp - 0x31c]
inc eax
push ecx
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x310]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006fedff
leave
ret 4

Function at 0x461d41
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x7beea8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x461da0
push str.GetPhysicallyInstalledSystemMemory
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x6c], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461da0
lea ecx, [ebp - 0x6c]
push ecx
call eax
test eax, eax
je 0x461da0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
shld ecx, eax, 0xa
shl eax, 0xa
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], ecx
jmp 0x461e12
push ebx
push 0x3c
xor ebx, ebx
mov dword [ebp - 0x64], 0x40
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00718210
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x461ddb
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0xe0], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0xe4], eax
jmp 0x461e11
push edi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x24], 0x20
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
pop edi
cmp eax, 0xffffffff
jne 0x461e05
mov eax, ebx
xor ebx, ebx
inc ebx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006fedff
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4733d5
movzx eax, byte [ebx]
push 0x100
cdq
push 0x1b3
xor edx, ecx
xor eax, esi
push edx
push eax
call fcn.006ff3f0
inc ebx
mov esi, eax
mov ecx, edx
sub edi, 1
jne 0x4733b2
pop edi
mov eax, esi
mov edx, ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x482474
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4825cc
push edi
push 0x29
pop edi
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4825ca
cmp eax, edi
jne 0x4824b5
cmp dword [esi + 0x10], 0
mov eax, edi
jne 0x4825ca
cmp eax, edi
jne 0x4824b5
test dword [esi + 0x50], edx
je 0x4825d8
cmp eax, 0x2e
jne 0x4824d0
push 5
lea ecx, [esi + 0x24]
call fcn.00483d47
mov ecx, esi
call fcn.00483d85
jmp 0x4825b5
cmp eax, 0x5c
jne 0x482522
mov ecx, esi
call fcn.00483d85
test byte [esi + 0x50], 0x80
je 0x482516
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x4824ff
push 4
lea ecx, [esi + 0x24]
call fcn.00483d47
mov ecx, esi
call fcn.00483d85
jmp 0x4825bc
cmp al, 0x42
jne 0x482516
push 4
lea ecx, [esi + 0x24]
call fcn.00483d47
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4824f3
mov ecx, esi
call fcn.004825e2
jmp 0x4825b5
cmp eax, 0x5b
jne 0x482542
mov ecx, esi
call fcn.00483d85
mov ecx, esi
call fcn.00482a50
cmp dword [esi + 0x4c], 0x5d
je 0x4824c4
push 4
jmp 0x4825da
cmp eax, 0x28
jne 0x48255e
mov ecx, esi
call fcn.00483d85
mov ecx, esi
call fcn.004841d8
mov bl, al
cmp dword [esi + 0x4c], edi
jne 0x4825d8
jmp 0x4825aa
cmp eax, 0x5e
jne 0x482567
push 2
jmp 0x4824eb
cmp eax, 0x24
jne 0x482573
push 3
jmp 0x4824eb
cmp eax, 0x2a
je 0x4825d4
cmp eax, 0x2b
je 0x4825d4
cmp eax, 0x3f
je 0x4825d4
cmp eax, 0x7b
je 0x4825d4
cmp eax, 0x7d
jne 0x482591
test dword [esi + 0x50], edx
je 0x4825d0
cmp eax, 0x5d
jne 0x48259b
test dword [esi + 0x50], edx
je 0x48253b
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00481e00
mov bl, 1
mov ecx, esi
call fcn.00483d85
test bl, bl
je 0x4825bc
mov ecx, esi
call fcn.00483db3
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x48248a
pop ebx
pop edi
mov al, cl
pop esi
ret
push 6
jmp 0x4825da
push 0xa
jmp 0x4825da
push 5
mov ecx, esi
call fcn.0048370d
int3

Function at 0x4a3142
Capabilities:
Delete registry key

Disassembly:
push 0x34
mov eax, 0x79b947
call fcn.006fee7b
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x4a3160
xor al, al
jmp 0x4a31ec
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004090c3
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], ebx
jne 0x4a31c1
cmp dword [esi + 0x14], ebx
je 0x4a31e2
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004090c3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004a2d6a
lea ecx, [ebp - 0x40]
call fcn.00406385
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x1c]
call fcn.004a2db6
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, esi
mov edi, eax
call fcn.004a2da1
jmp 0x4a31d7
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 0x4a31e0
cmp edi, 2
jne 0x4a31e2
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406385
mov al, bl
call fcn.006fee25
ret 4
Function at 0x4a3208
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.006ffc90
mov eax, dword [0x8d5f40]
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 0x4a330f
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.00718210
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 0x4a3275
mov edi, ecx
jmp 0x4a327d
cmp dword [edi + 0x14], 8
jb 0x4a327d
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 0x4a330f
cmp dword [ebp - 0x1020], 3
jne 0x4a330f
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 0x4a330f
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.004037ef
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004020e8
lea ecx, [ebp - 0x1c]
call fcn.004036d4
jmp 0x4a331d
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.006fedff
leave
ret 8
Function at 0x4a341d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79b97c
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.006ffc90
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1060], esi
mov dword [ebp - 0x1060], eax
test eax, eax
je 0x4a3528
push 0x1000
lea eax, [ebp - 0x1058]
push ebx
push eax
call fcn.00718210
add esp, 0xc
mov dword [ebp - 0x105c], 0x1000
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
cmp dword [edi + 0x10], ebx
jne 0x4a34a5
mov edi, ebx
jmp 0x4a34ad
cmp dword [edi + 0x14], 8
jb 0x4a34ad
mov edi, dword [edi]
lea eax, [ebp - 0x105c]
push eax
lea eax, [ebp - 0x1058]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x1060]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a3513
mov eax, dword [ebp - 0x105c]
lea ecx, [ebp - 0x58]
mov byte [ebp + eax - 0x1058], bl
lea eax, [ebp - 0x1058]
push eax
call fcn.004415a2
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00409030
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004026f7
lea ecx, [ebp - 0x40]
call fcn.004036d4
lea ecx, [ebp - 0x58]
call fcn.00406385
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004020e8
lea ecx, [ebp - 0x28]
call fcn.004036d4
jmp 0x4a3534
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006fedff
leave
ret 8
Function at 0x4a374a
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x79ba2f
call fcn.006fee7b
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x4a3768
xor al, al
jmp 0x4a3837
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040916f
pop ecx
pop ecx
test byte [esi + 0x20], 2
mov dword [ebp - 4], ebx
jne 0x4a380e
cmp dword [ebp - 0x18], 0
jne 0x4a378b
mov eax, ebx
jmp 0x4a3796
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4a380e
push dword [esi + 0x1c]
call fcn.004a2db6
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.004a33ea
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.004a35e8
add esp, 0x20
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.004036d4
test bl, bl
je 0x4a380c
mov ecx, esi
call fcn.004a2da1
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 0x4a382b
cmp eax, 2
jne 0x4a382d
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406385
mov al, bl
call fcn.006fee25
ret 4
Function at 0x4a3937
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x30
mov eax, 0x79ba5c
call fcn.006fee7b
mov edi, ecx
cmp dword [edi], 0
mov esi, dword [ebp + 8]
jne 0x4a3954
xor al, al
jmp 0x4a3a33
xor ebx, ebx
mov dword [ebp - 0x30], 4
test byte [edi + 0x20], 2
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], 4
jne 0x4a3a12
cmp dword [esi + 0x10], ebx
jne 0x4a397a
mov eax, ebx
jmp 0x4a3984
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4a3984
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a39ad
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0xc]
jne 0x4a39ad
mov al, 1
jmp 0x4a3a33
push dword [edi + 0x1c]
call fcn.004a2db6
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
movzx eax, byte [edi + 0x24]
push eax
mov eax, dword [edi + 0x20]
or eax, 2
mov dword [ebp - 4], ebx
push eax
call fcn.004a33ea
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004a35e8
add esp, 0x20
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004036d4
test bl, bl
je 0x4a3a10
mov ecx, edi
call fcn.004a2da1
mov eax, dword [ebp - 0x3c]
or dword [edi + 0x20], 2
mov dword [edi], eax
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x4a3a1a
mov esi, dword [esi]
push dword [ebp - 0x30]
lea eax, [ebp + 0xc]
push eax
push 4
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
call fcn.006fee25
ret 8
Function at 0x4a3ad1
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x44
mov eax, 0x79ba91
call fcn.006fee7b
mov edi, ecx
cmp dword [edi], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], ebx
jne 0x4a3af4
xor al, al
jmp 0x4a3c55
cmp dword [ebx + 0x10], 0
jne 0x4a3b07
cmp byte [ebp + 0x10], 0
jne 0x4a3b07
mov al, 1
jmp 0x4a3c55
test byte [edi + 0x20], 2
jne 0x4a3c21
mov eax, 0x1000
push eax
mov dword [ebp - 0x48], eax
call fcn.006ff7b6
push dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
push 0
push eax
call fcn.00718210
xor edx, edx
add esp, 0x10
cmp dword [esi + 0x10], edx
jne 0x4a3b3b
mov eax, edx
jmp 0x4a3b45
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4a3b45
mov eax, dword [esi]
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x44]
push edx
push edx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a3b67
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov byte [ecx + eax], 0
jmp 0x4a3b79
push 0x1000
push 0
push dword [ebp - 0x44]
call fcn.00718210
add esp, 0xc
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.004415a2
and dword [ebp - 4], 0
push 1
push dword [ebp - 0x44]
call fcn.006feb57
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, ebx
call fcn.004a3d7b
test al, al
je 0x4a3bb0
lea ecx, [ebp - 0x40]
call fcn.00406385
jmp 0x4a3b00
push dword [edi + 0x1c]
call fcn.004a2db6
and dword [ebp - 0x18], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
movzx eax, byte [edi + 0x24]
push eax
mov eax, dword [edi + 0x20]
or eax, 2
mov byte [ebp - 4], 1
push eax
call fcn.004a33ea
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a35e8
add esp, 0x20
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004036d4
test bl, bl
je 0x4a3c16
mov ecx, edi
call fcn.004a2da1
mov eax, dword [ebp - 0x4c]
or dword [edi + 0x20], 2
mov dword [edi], eax
lea ecx, [ebp - 0x40]
call fcn.00406385
mov ebx, dword [ebp - 0x50]
cmp dword [esi + 0x10], 0
jne 0x4a3c2b
xor esi, esi
jmp 0x4a3c33
cmp dword [esi + 0x14], 8
jb 0x4a3c33
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x4a3c3e
mov ebx, dword [ebx]
add eax, eax
push eax
push ebx
push 1
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
call fcn.006fee25
ret 0xc

Function at 0x4a3d15
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
lea eax, [ebp - 0x1c]
mov esi, ecx
push eax
call fcn.004090c3
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jne 0x4a3d43
mov eax, ecx
jmp 0x4a3d4e
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push ecx
push ecx
push ecx
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
lea ecx, [ebp - 0x1c]
sete bl
call fcn.00406385
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret 4
Function at 0x4a5d3b
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 0x4a5d82
push edi
call fcn.0072051c
push dword [ebp - 4]
call fcn.0072dc45
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 0x4a5d63
test eax, eax
jne 0x4a5de2
lea ebx, [edi + 0x10]
cmp esi, dword [edi]
jae 0x4a5de2
push dword [ebx - 8]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x7f000001
jne 0x4a5dd0
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x7f000001
jne 0x4a5dd0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 2]
cmp dword [ebx - 4], eax
jne 0x4a5dd0
movzx eax, word [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [ebp + 0xc]
je 0x4a5dd6
inc esi
add ebx, 0x18
jmp 0x4a5d8e
lea eax, [esi + 1]
imul eax, eax, 0x18
mov eax, dword [eax + edi]
mov dword [ebp - 8], eax
push edi
call fcn.0072051c
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret