joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005d280
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100bb758]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.100609f0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.1005c730
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1005d2ea
mov al, byte [edi + ecx]
test al, al
je 0x1005d2ea
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1005d2d1
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x1005d30b
inc eax
sub ecx, 1
jne 0x1005d300
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x1005d360
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x1005d355
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x1005d354
mov bl, byte [edi + ecx]
test bl, bl
je 0x1005d354
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x1005d340
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.100609f0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x1009a400
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x1005d41a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1005d3e4
test cl, cl
je 0x1005d3e0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1005d3e4
add eax, 2
add esi, 2
test cl, cl
jne 0x1005d3c4
xor eax, eax
jmp 0x1005d3e9
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005d41a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d3f6
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d423
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x1009a400
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100561dc
mov esp, ebp
pop ebp
ret
Function at 0x1005f0a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.1005f1d0
add esp, 8
test al, al
je 0x1005f0c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1005f0c5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x1005f1d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x1005f550
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005f57b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1005f57b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x1007d66e
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007d573

Function at 0x1007facd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f78d
Function at 0x405530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov byte [ebp - 0x25], al
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 5]
call fcn.004055d0
lea ecx, [ebp - 0x20]
call fcn.004074a0
movzx edx, al
test edx, edx
jne 0x4055b5
lea eax, [ebp - 0x24]
push eax
push 0x466bd8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4055b5
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x20]
call fcn.00407520
shl eax, 1
push eax
lea ecx, [ebp - 0x20]
call fcn.00407540
push eax
push 1
push 0
push str.Self
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.00407640
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret

Function at 0x4056d0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x405738
lea ecx, [ebp - 0xc]
push ecx
push 0xf003f
push 0
push 0x466c08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405736
mov dword [ebp - 8], 1
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push 0x466c7c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405775
lea edx, [ebp - 0x10]
push edx
push 0xf003f
push 0
push 0x466cb0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405775
push str.EnableLinkedConnections
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret
Function at 0x4146c0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x4146d6
mov al, 1
jmp 0x414733
push 0xf0000000
push 1
push 0x479028
push 0
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x414731
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x41472d
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
mov edx, dword [ebp - 8]
add edx, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x414724
mov byte [ebp - 1], 1
jmp 0x414728
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
jmp 0x414733
xor al, al
jmp 0x414733
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x414740
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x414756
mov al, 1
jmp 0x4147aa
push 0
push 0x18
push 0
push 0
mov ecx, dword [ebp - 8]
add ecx, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4147a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4147a4
push 8
push 0x18
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 8
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41479b
mov byte [ebp - 1], 1
jmp 0x41479f
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
jmp 0x4147aa
xor al, al
jmp 0x4147aa
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4147b0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 9], 0
mov ecx, dword [ebp + 8]
call fcn.004074a0
movzx eax, al
test eax, eax
je 0x4147de
mov al, byte [ebp - 9]
jmp 0x414883
mov dword [ebp - 8], 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004078e0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x414880
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414880
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004078e0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x41486d
mov edx, dword [ebp - 0x14]
add edx, 4
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x41486d
mov byte [ebp - 9], 1
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 9]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 4
Function at 0x415390
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b750
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
xor eax, eax
mov byte [ebp - 0x41], al
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00401650
lea ecx, [ebp - 0x20]
call fcn.00411560
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], 0
jmp 0x4153ed
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0x1a
jae 0x41548c
movzx edx, word [ebp - 0x40]
add edx, 0x41
mov word [ebp - 0x3c], dx
movzx eax, word [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x11]
call fcn.004154d0
lea ecx, [ebp - 0x38]
call fcn.004074a0
movzx edx, al
test edx, edx
jne 0x415430
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.004102e0
jmp 0x41547f
mov edx, 1
mov ecx, dword [ebp - 0x40]
shl edx, cl
and edx, dword [ebp - 0x4c]
je 0x41547f
mov ax, word [ebp - 0x3c]
mov word [ebp - 0x48], ax
lea ecx, [ebp - 0x46]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x58]
call fcn.00401c30
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x38]
call fcn.004156c0
push 0x4790e8
lea ecx, [ebp - 0x38]
call fcn.004156a0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.004102e0
lea ecx, [ebp - 0x38]
call fcn.00407640
jmp 0x4153e4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004114b0
lea ecx, [ebp - 0x20]
call fcn.00407400
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 4
Function at 0x419680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bb1d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.00401650
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0041a1d0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409170
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00419cb0
mov dword [ebp - 0x24], 0x41a240
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.00401c60
push eax
mov edx, dword [ebp - 0x24]
push edx
push 0
push 0
call fcn.0043fbaf
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x419727
lea ecx, [ebp - 0x14]
call fcn.0040ad10
jmp 0x419738
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call fcn.004228bc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419cb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 8
Function at 0x41ba50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bde0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.00401650
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403630
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00401650
lea ecx, [ebp - 0x20]
call fcn.00411560
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], 0
jmp 0x41babe
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0x1a
jae 0x41bb4f
movzx edx, word [ebp - 0x40]
add edx, 0x41
mov word [ebp - 0x3c], dx
movzx eax, word [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bb90
lea ecx, [ebp - 0x38]
call fcn.004074a0
movzx edx, al
test edx, edx
je 0x41bb42
mov eax, 1
mov ecx, dword [ebp - 0x40]
shl eax, cl
and eax, dword [ebp - 0x4c]
jne 0x41bb42
mov cx, word [ebp - 0x3c]
mov word [ebp - 0x44], cx
lea edx, [ebp - 0x42]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401c30
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x38]
call fcn.004156c0
push 0x4794e8
lea ecx, [ebp - 0x38]
call fcn.004156a0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.004102e0
lea ecx, [ebp - 0x38]
call fcn.00407640
jmp 0x41bab5
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004114b0
lea ecx, [ebp - 0x20]
call fcn.00407400
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 4
Function at 0x41c780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 8]
call fcn.004074a0
movzx eax, al
test eax, eax
je 0x41c7c1
xor al, al
jmp 0x41c896
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.0041c8c0
lea ecx, [ebp - 0x2c]
call fcn.004074a0
movzx eax, al
test eax, eax
je 0x41c7f4
mov byte [ebp - 0x2d], 0
lea ecx, [ebp - 0x2c]
call fcn.00407640
mov al, byte [ebp - 0x2d]
jmp 0x41c896
mov ecx, 0x485e00
call fcn.004106f0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041c960
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x2c]
call fcn.00407540
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x41c887
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x485e00
call fcn.00410710
mov ecx, eax
call fcn.00407520
push eax
mov ecx, 0x485e00
call fcn.00410710
mov ecx, eax
call fcn.004078e0
push eax
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x2e], 1
lea ecx, [ebp - 0x2c]
call fcn.00407640
mov al, byte [ebp - 0x2e]
jmp 0x41c896
mov byte [ebp - 0x2f], 0
lea ecx, [ebp - 0x2c]
call fcn.00407640
mov al, byte [ebp - 0x2f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 4
Function at 0x41cc60
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b410
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00401650
lea ecx, [ebp - 0x20]
call fcn.00411560
xor eax, eax
mov byte [ebp - 0x45], al
mov dword [ebp - 0x3c], 0x288
push 0x288
call fcn.0043fa48
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41ccdb
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004114b0
lea ecx, [ebp - 0x20]
call fcn.00407400
mov eax, dword [ebp + 8]
jmp 0x41cdcc
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x41cd2b
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0043f6c0
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0043fa48
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41cd2b
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.004114b0
lea ecx, [ebp - 0x20]
call fcn.00407400
mov eax, dword [ebp + 8]
jmp 0x41cdcc
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x41cda9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x41cda9
mov ecx, dword [ebp - 0x44]
add ecx, 0x1b0
push ecx
lea ecx, [ebp - 0x64]
call fcn.00407920
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x11]
call fcn.0041cdf0
lea ecx, [ebp - 0x64]
call fcn.00407900
push 0x3e8
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0041ce70
movzx edx, al
test edx, edx
je 0x41cd97
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041cc40
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [ebp - 0x44], edx
lea ecx, [ebp - 0x38]
call fcn.00407640
jmp 0x41cd43
mov eax, dword [ebp - 0x40]
push eax
call fcn.0043f6c0
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004114b0
lea ecx, [ebp - 0x20]
call fcn.00407400
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 4
Function at 0x41ce70
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], ecx
xor eax, eax
mov byte [ebp - 0x29], al
mov ecx, dword [ebp + 8]
call fcn.004074a0
movzx ecx, al
test ecx, ecx
jne 0x41cf88
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 6]
call fcn.0041cfa0
lea ecx, [ebp - 0x20]
call fcn.004074a0
movzx ecx, al
test ecx, ecx
jne 0x41cf80
lea ecx, [ebp - 0x20]
call fcn.004078e0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x41cf80
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x41cf80
mov dl, byte [0x466da7]
mov byte [ebp - 5], dl
mov dword [ebp - 0x34], 0x1d
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043fa48
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x41cf76
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 0
push 1
lea ecx, [ebp - 5]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
mov edx, dword [ebp - 0x30]
push edx
call fcn.0043f6c0
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x41cf5c
mov dword [ebp - 0x3c], 1
jmp 0x41cf63
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0x21], al
lea ecx, [ebp - 0x20]
call fcn.00407900
mov al, byte [ebp - 0x21]
jmp 0x41cf8a
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00407900
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 8
Function at 0x41d030
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bec0
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00401650
lea ecx, [ebp - 0x28]
call fcn.00411560
mov ecx, dword [ebp + 0xc]
call fcn.004074a0
movzx eax, al
test eax, eax
jne 0x41d1db
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
push ecx
push 1
mov ecx, dword [ebp + 0xc]
call fcn.00407540
push eax
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x41d0df
cmp dword [ebp - 0x48], 0xea
jne 0x41d1ce
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 1
jmp 0x41d0f7
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x14]
ja 0x41d1c4
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407790
push 0
push 0x4794fc
lea ecx, [ebp - 0x40]
call fcn.0041d220
cmp eax, 0xffffffff
jne 0x41d1ae
push 0x479500
lea ecx, [ebp - 0x40]
push ecx
push 0x479504
mov edx, dword [ebp + 0xc]
push edx
push 0x479508
lea eax, [ebp - 0xb4]
push eax
call fcn.00414d80
add esp, 0xc
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00416920
add esp, 0xc
push eax
lea edx, [ebp - 0x84]
push edx
call fcn.0041d320
add esp, 0xc
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00416920
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.004102e0
lea ecx, [ebp - 0x6c]
call fcn.00407640
lea ecx, [ebp - 0x84]
call fcn.00407640
lea ecx, [ebp - 0x9c]
call fcn.00407640
lea ecx, [ebp - 0xb4]
call fcn.00407640
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x40]
call fcn.00407640
jmp 0x41d0ee
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x48], 0xea
je 0x41d0a6
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004114b0
lea ecx, [ebp - 0x28]
call fcn.00407400
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 8