joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4720a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
or ecx, 0x100
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [ebx + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
add eax, dword [edi + edx*4]
cmp ecx, 2
jae 0x4720b7
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4720e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
or ecx, esi
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [ebp + 8]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [ebp + 0x14]
add ebx, dword [eax + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x4720f5
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x473450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
movaps xmm0, xmmword [0x51cd90]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x400
push edi
mov edi, 0xc
mov eax, dword [esi + 0x78]
lea edx, [esi + 0x1e54]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x201c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
movups xmmword [esi + 0x1e1c], xmm0
movups xmmword [esi + 0x1e2c], xmm0
nop word [eax + eax]
mov ecx, 0x10
nop word [eax + eax]
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x473510
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
sub edi, 1
jne 0x473500
mov eax, 0x4000400
lea edi, [esi + 0x219c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x239c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x473582
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x249c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x269c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esi + 0x289c]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2a9c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbca4]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
sub ecx, 1
jne 0x4735d4
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x98]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0x94]
shr edx, cl
sub eax, edx
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
pop ebp
ret

Function at 0x4739a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov edx, dword [ebp + 8]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [ebp + 0x14]
shr esi, 4
mov edx, dword [eax + ecx*4]
add edx, dword [eax + esi*4]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
movzx ecx, word [eax + edi*2 + 8]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4]
add eax, edx
mov dword [edi + ebx*4], eax
mov eax, dword [esi + ecx*4]
add eax, edx
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x4739a8
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x476d00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x476d46
pop esi
pop ebp
ret

Function at 0x478b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.004f044c
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x478b6b
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x484640
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x484709
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call fcn.004a3130
add esp, 0xc
test eax, eax
jne 0x484709
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call fcn.004a3130
add esp, 0xc
test eax, eax
jne 0x484709
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x484693
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004a3100
add esp, 0xc
test eax, eax
je 0x4846c7
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004a3100
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4846c9
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x4846f5
mov al, byte [esi]
push eax
call fcn.004a1740
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x4846d7
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004d0675
mov esp, ebp
pop ebp
ret

Function at 0x485840
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x55f064]
cmp eax, 0xffffffff
jne 0x485882
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x485868
xor eax, eax
test eax, eax
mov dword [0x55f064], eax
setg al
ret
push eax
push 0
mov dword [0x55f064], 1
call fcn.00490e80
mov eax, dword [0x55f064]
add esp, 8
test eax, eax
setg al
ret

Function at 0x485890
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c8], 2
jne 0x4858e9
mov eax, dword [0x55f064]
cmp eax, 0xffffffff
jne 0x4858e2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4858c8
xor eax, eax
test eax, eax
mov dword [0x55f064], eax
setg al
pop ebp
ret
push eax
push 0
mov dword [0x55f064], 1
call fcn.00490e80
mov eax, dword [0x55f064]
add esp, 8
test eax, eax
setg al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x490260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x4902af
push esi
push 1
push edi
call fcn.0047b390
mov esi, dword [edi + 0x600]
add esp, 8
mov ecx, esi
push dword [edi + 0x594]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [0x51a4a0]
call esi
push 0
push edi
mov esi, eax
call fcn.0047b390
add esp, 0x1c
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4902e5
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x51f938
push 2
push eax
call fcn.004f98a0
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004f98a0
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x490940
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x94], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0x18]
mov edx, dword [ebx + 0x1c4]
cmp dword [ebp + 0xc], edx
push edi
sete al
mov dword [ebp - 0x8c], esi
mov edi, 0x1e4
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x88], eax
mov eax, 0x1f4
cmove edi, eax
mov eax, dword [ebx + 0x2c0]
add edi, ebx
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 8]
test byte [eax + 0x40], 3
mov dword [ebp - 0x90], ecx
je 0x490a6f
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x490590
jne 0x490a6f
cmp dword [edi], 0
je 0x4909dd
test ecx, ecx
je 0x490a6f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x88]
call fcn.00493630
add esp, 0x14
cmp eax, 0xffffffff
je 0x490a6f
test al, 1
je 0x490a6f
mov ecx, dword [edi]
test ecx, ecx
jne 0x490a40
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
mov dword [edi + 4], eax
mov esi, dword [fcn.004f0180]
mov ecx, esi
push eax
call dword [0x51a4a0]
call esi
mov esi, dword [ebp - 0x8c]
mov ecx, eax
mov eax, dword [edi + 4]
add esp, 4
mov dword [edi], ecx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
jmp 0x490a46
mov eax, dword [ebp - 0x90]
test ecx, ecx
je 0x490a68
push 0
push eax
mov eax, dword [edi + 8]
add eax, ecx
push eax
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x490a6f
add dword [edi + 8], eax
jmp 0x490a6f
mov dword [edi + 4], 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x94]
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x490b05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x490abd
mov ecx, dword [ebp - 0x8c]
lea eax, [edi + 0x52]
pop edi
pop esi
pop ebx
mov dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00479770
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.004902f0
mov eax, dword [ebx]
add esp, 0x18
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0xcac], esi
mov eax, 0x37
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d0675
mov esp, ebp
pop ebp
ret

Function at 0x490f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test byte [eax + 0x210], 1
je 0x490f83
push eax
call fcn.004890d0
add esp, 4
test eax, eax
jne 0x490fa1
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x1c0]
cmp eax, 0xffffffff
je 0x490f7d
push 2
push 1
lea ecx, [ebp - 1]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x490f7d
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x492d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x51fdb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x492d4b
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x51fdcc
push edi
call fcn.004fae47
add esp, 8
test eax, eax
je 0x492d9c
test ebx, ebx
je 0x492d8c
push 8
push 0
push edi
mov ecx, ebx
call dword [0x51a4a0]
call ebx
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x492dcb
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x492dcb
push 0x800
push 0
push edi
mov ecx, ebx
call dword [0x51a4a0]
call ebx
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x492e9e
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492de7
sub ecx, esi
lea eax, [edx + 1]
mov esi, dword [fcn.004f0180]
add eax, ecx
push eax
mov ecx, esi
call dword [0x51a4a0]
call esi
mov esi, eax
add esp, 4
test esi, esi
je 0x492e7f
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x492e7f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492e22
sub ecx, edx
mov eax, 0x5c
mov word [ecx + esi], ax
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492e40
sub ecx, edx
sub ecx, edi
add ecx, esi
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x492e50
test ebx, ebx
je 0x492e74
push 8
push 0
push esi
mov ecx, ebx
call dword [0x51a4a0]
call ebx
mov ebx, eax
jmp 0x492e81
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
jmp 0x492e81
xor ebx, ebx
push esi
mov esi, dword [fcn.004ebfb0]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor ebx, ebx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x493060
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4930b9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4930a6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4930a0
shr eax, 8
cmp al, 2
je 0x4930b9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
call fcn.004acc50
test eax, eax
jne 0x4931b5
push 0x51fd90
call fcn.00492d30
add esp, 4
mov dword [0x564224], eax
test eax, eax
je 0x4930f9
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x564220]
test eax, eax
cmovne ecx, eax
mov dword [0x564220], ecx
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004e8d40
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x90], 2
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x10
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 1
push 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 0x33
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x4931ac
push 0x566890
mov byte [0x56688c], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov byte [0x56688c], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
Function at 0x4a4200
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call fcn.004e8d40
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a42ce
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a42b0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a42b0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4a42b0
cmp esi, dword [ebp - 0xc]
jb 0x4a42b0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a42be
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a42ce
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a7690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004d1720
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004fba8a
add esp, 4
mov byte [ebp - 0x1004], 0
test eax, eax
je 0x4a7704
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x1004], 0
je 0x4a7704
push esi
mov esi, dword [fcn.004fd4d0]
lea eax, [ebp - 0x1004]
push eax
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
Function at 0x4b6600
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b6610

Function at 0x4b6890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4b689c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004b68b0
Function at 0x4c48d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x564314]
test eax, eax
je 0x4c48e6
inc eax
mov dword [0x564314], eax
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov dword [0x564314], 1
test bl, 1
je 0x4c49a7
push str.iphlpapi.dll
mov dword [0x56431c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x56431c], eax
test eax, eax
jne 0x4c4923
mov eax, 0x16
pop ebx
pop ebp
ret
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x564304], eax
test eax, eax
jne 0x4c494c
push dword [0x56431c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x17
pop ebx
pop ebp
ret
push str.GetAdaptersAddresses
push dword [0x56431c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetBestRoute2
push dword [0x56431c]
mov dword [0x56430c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.advapi32.dll
mov dword [0x564310], eax
mov dword [0x564320], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x564320], eax
test eax, eax
je 0x4c49a7
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x564308], eax
mov dword [0x564318], ebx
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c5bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
call fcn.004ca620
cmp eax, 3
jne 0x4c5cad
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5d9b
push edi
push str.NameServer
push dword [ebp - 8]
call fcn.004c5db0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4c5c91
push edi
push str.DhcpNameServer
push dword [ebp - 8]
call fcn.004c5db0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4c5c91
lea eax, [ebp - 4]
push eax
push 9
push esi
push str.Interfaces
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c5c67
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c5d87
push edi
push str.NameServer
push dword [ebp - 4]
call fcn.004c63d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4c5c91
push edi
push str.DhcpNameServer
push dword [ebp - 4]
call fcn.004c63d0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c5c9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c5d87
cmp eax, 2
jne 0x4c5d9b
lea eax, [ebp - 0xc]
mov dword [edi], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5d9b
push ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push str.NameServer
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4c5d0e
cmp eax, 0xea
jne 0x4c5d7b
mov eax, dword [ebp - 8]
test eax, eax
je 0x4c5d7b
mov esi, dword [0x55f1a8]
inc eax
push eax
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4c5d7b
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.NameServer
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c5d60
mov ecx, dword [ebp - 8]
cmp ecx, 1
je 0x4c5d60
mov eax, dword [edi]
mov esi, 1
mov byte [ecx + eax], 0
jmp 0x4c5d7d
push dword [edi]
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [edi], 0
xor esi, esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test esi, esi
je 0x4c5d9b
cmp dword [edi], 0
je 0x4c5d9b
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c5db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4c5de7
cmp eax, 0xea
jne 0x4c5e56
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c5e56
mov esi, dword [0x55f1a8]
inc eax
push eax
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4c5e56
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c5e3b
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x4c5e3b
mov eax, dword [edi]
pop edi
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [edi]
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [edi], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret