joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465f18
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e5f1c]
cmp byte [eax + 0xc], 0
je 0x466085
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46607e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e8e70], 0
jne 0x465f6c
push 0x46608c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x466094
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e70], eax
cmp dword [0x4e3698], 0
jne 0x466067
push 0x4660a4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e3698], eax
cmp dword [0x4e3698], 0
je 0x466067
push 0x4660b0
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e74], eax
push 0x4660c0
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e78], eax
push 0x4660d4
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e7c], eax
push 0x4660ec
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e80], eax
push 0x466104
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e84], eax
push 0x466118
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e88], eax
push 0x466130
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e8c], eax
push 0x466148
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e90], eax
push 0x466164
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e94], eax
push 0x466170
mov eax, dword [0x4e3698]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8e98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466085
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x466e78
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x466e81
mov eax, dword [ebp - 4]
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x4024], edx
mov dword [ebp - 0x4020], edx
mov dword [ebp - 0x401c], edx
mov dword [ebp - 0x4018], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467076
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00466d9c
lea eax, [ebp - 0x4014]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0x4000
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.IpHlpApi.dll_GetAdaptersInfo
test eax, eax
jne 0x467058
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1a0], 6
je 0x466f02
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x46704e
mov eax, dword [ebp - 0xc]
add eax, 0x1ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x467046
mov dl, 1
mov eax, dword [0x466c64]
call fcn.00403c7c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
call fcn.00420018
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x19c]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 8]
add eax, 4
mov edx, dword [ebp - 0xc]
add edx, 8
mov ecx, 0x104
call fcn.00404dec
mov eax, dword [ebp - 8]
add eax, 8
mov edx, dword [ebp - 0xc]
add edx, 0x10c
mov ecx, 0x84
call fcn.00404dec
mov eax, dword [ebp - 8]
lea edx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
add eax, 0x194
mov ecx, 6
call fcn.00402d40
lea eax, [ebp - 0x4018]
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, 0x10
call fcn.00404dec
mov edx, dword [ebp - 0x4018]
mov eax, dword [ebp - 8]
call fcn.00466d54
lea eax, [ebp - 0x401c]
mov edx, dword [ebp - 0x14]
add edx, 0x14
mov ecx, 0x10
call fcn.00404dec
mov edx, dword [ebp - 0x401c]
mov eax, dword [ebp - 8]
call fcn.00466d78
lea eax, [ebp - 0x4020]
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, 0x10
call fcn.00404dec
mov eax, dword [ebp - 0x4020]
mov edx, 0x46708c
call fcn.0040a774
test eax, eax
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x20], al
lea eax, [ebp - 0x4024]
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, 0x10
call fcn.00404dec
mov eax, dword [ebp - 0x4024]
mov edx, 0x4670a0
call fcn.0040a774
test eax, eax
setne al
mov edx, dword [ebp - 8]
mov byte [edx + 0x21], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x466f17
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x466ee9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46707d
lea eax, [ebp - 0x4024]
mov edx, 4
call fcn.00404b90
ret
Function at 0x467ec8
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x8c]
push eax
call sub.kernel32.dll_FindFirstVolumeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x467f74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00420d88
mov edx, dword [0x467b74]
call fcn.00403e5c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0xc
lea edx, [ebp - 0x8c]
mov ecx, 0x80
call fcn.00404dec
jmp 0x467f52
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00420d88
mov edx, dword [0x467b74]
call fcn.00403e5c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0xc
lea edx, [ebp - 0x8c]
mov ecx, 0x80
call fcn.00404dec
push 0x104
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextVolumeA
test eax, eax
jne 0x467f23
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindVolumeClose
mov esp, ebp
pop ebp
ret

Function at 0x468150
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x468244
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
mov edx, 0x468258
call fcn.00404c04
mov dword [ebp - 8], 2
lea eax, [ebp - 0xc]
call fcn.004050b0
mov dl, byte [ebp - 8]
add dl, 0x41
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
call fcn.00405058
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x468211
push 0xff
lea eax, [ebp - 0x10f]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405058
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jbe 0x468211
push dword [ebp - 0xc]
push 0x468264
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10f]
mov ecx, 0xff
call fcn.00404dec
push dword [ebp - 0x114]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404f18
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jne 0x468194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46824b
lea eax, [ebp - 0x114]
call fcn.00404b6c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b90
ret
Function at 0x468328
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405048
xor eax, eax
push ebp
push 0x4683bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.0040fcc4
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 4]
call fcn.00404c04
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x40
call fcn.004034ac
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.00405058
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x50]
call fcn.0040bacc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4683c6
lea eax, [ebp - 0x54]
call fcn.00404b6c
lea eax, [ebp - 4]
call fcn.00404b6c
ret
Function at 0x4683cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4685ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x210]
xor ecx, ecx
mov edx, 0x200
call fcn.004034ac
mov eax, dword [ebp - 8]
add eax, 0x64
xor ecx, ecx
mov edx, 0x164
call fcn.004034ac
push 0
push 0
push 0x7200
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0x210]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
push ebp
push 0x4685a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x468554
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x468554
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
mov dword [edx + 0x3c], eax
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0xc]
add eax, 0xc
call fcn.0040bacc
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 8]
add eax, 0x40
call fcn.00404bc0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 8]
mov dword [edx + 0x48], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0xc]
add eax, 0x30
call fcn.0040bacc
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 8]
add eax, 0x50
call fcn.00404bc0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 0xc]
add eax, 0x34
call fcn.0040bacc
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 8]
add eax, 0x4c
call fcn.00404bc0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x134]
mov edx, dword [ebp - 8]
mov dword [edx + 0x54], eax
mov eax, dword [ebp - 8]
add eax, 0x60
mov edx, dword [ebp - 0xc]
add edx, 0x144
mov ecx, 0x20
call fcn.00404dec
mov eax, dword [ebp - 8]
lea edx, [eax + 0x64]
mov eax, dword [ebp - 0xc]
mov ecx, 0x164
call fcn.00402d40
jmp 0x468598
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 8]
add eax, 0x40
call fcn.00404b6c
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 8]
add eax, 0x50
call fcn.00404b6c
mov eax, dword [ebp - 8]
add eax, 0x4c
call fcn.00404b6c
mov eax, dword [ebp - 8]
add eax, 0x60
call fcn.00404b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4685ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4685d1
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.00404b90
ret
Function at 0x4687a0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46893a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b6c
push 0xff
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00405058
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jbe 0x46890f
push 0x104
lea eax, [ebp - 0x21c]
push eax
call sub.kernel32.dll_FindFirstVolumeA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x46890f
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x21c]
call fcn.0040bacc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404e58
mov ecx, eax
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 0x10]
call fcn.004050b8
push 0x40
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405058
push eax
call sub.kernel32.dll_QueryDosDeviceA
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x118]
call fcn.0040bacc
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x25c]
call fcn.0040bacc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x25c]
mov ecx, 0x40
call fcn.00404dec
mov eax, dword [ebp - 0x260]
mov edx, dword [ebp - 0xc]
call fcn.0040a774
test eax, eax
jne 0x4688e9
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0040fd04
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 0x268], 0xb
lea edx, [ebp - 0x26c]
xor ecx, ecx
mov eax, 0x468950
call fcn.0040bfbc
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 4]
call fcn.00404bc0
jmp 0x468906
push 0x104
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextVolumeA_1
test eax, eax
jne 0x46881c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindVolumeClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468941
lea eax, [ebp - 0x264]
mov edx, 2
call fcn.00404b90
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b90
ret
Function at 0x4698cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x4698eb
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x469a5a
xor dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc], 8
jb 0x469a1f
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
sub dword [ebp - 0xc], 8
cmp dword [ebp - 0xc], 8
jae 0x4698f9
cmp dword [ebp - 0xc], 0
je 0x469a51
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov eax, dword [eax*4 + 0x4e3834]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
inc dword [ebp - 8]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x469a25
mov eax, dword [ebp - 4]
xor eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x46a628
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004034ac
pop ecx
pop ebp
ret
Function at 0x470c94
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov word [ebx + 8], 0
mov byte [ebx + 0xa], 0
mov byte [ebx + 0xb], 0
mov word [ebx + 0xc], 0
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov word [ebx + 0x1c], 0
mov word [ebx + 0x1e], 0
xor eax, eax
push ebp
push 0x470d3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x2002
call fcn.00402adc
mov dword [ebx + 0x24], eax
mov eax, 0x2002
call fcn.00402adc
mov dword [ebx + 0x28], eax
mov eax, 0x2202
call fcn.00402adc
mov dword [ebx + 0x2c], eax
mov eax, 0x103b
call fcn.00402adc
mov dword [ebx + 0x20], eax
mov eax, 0x4e8
call fcn.00402adc
mov dword [ebx + 0x30], eax
mov eax, 0x75a
call fcn.00402adc
mov dword [ebx + 0x34], eax
mov eax, 0x4e6
call fcn.00402adc
mov dword [ebx + 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470d5e
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x473804
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4738e2
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4738cc
push 0
push 0
push ebp
lea eax, [ebp - 0x18]
call fcn.00473688
pop ecx
mov eax, dword [ebp - 0x18]
call fcn.00405058
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405058
push eax
push 0
push 2
push 0x10
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405058
push eax
mov eax, dword [ebp - 4]
call fcn.00405058
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47389d
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4738c3
call fcn.0042d710
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, 0x4738f8
mov edx, 1
mov eax, 0x47391c
call fcn.0042d5b0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4738e9
lea eax, [ebp - 0x18]
call fcn.00404b6c
ret
Function at 0x473924
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 4], eax
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4739bd
push 0x10004
mov eax, dword [ebp - 4]
call fcn.00405058
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4739b4
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4739ab
cmp dword [ebp - 0x24], 1
jne 0x4739ab
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4739ab
call fcn.0042d710
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, 0x4739cc
mov edx, 2
mov eax, 0x4739f0
call fcn.0042d5b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov esp, ebp
pop ebp
ret

Function at 0x474ed8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov word [ebp - 0x1c], 2
push 0x474f64
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1a], 1
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x82], 0xff
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 6
jne 0x474f05
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax - 0x82]
mov eax, dword [ebp - 8]
mov ecx, 6
call fcn.00402d40
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x11
jne 0x474f20
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x66
lea eax, [ebp - 0x82]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_sendto
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x474f74
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov dword [ebp - 0xc], 0xffffffff
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x47503f
mov dword [ebp - 0x14], 1
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 6
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x14], 1
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0xffff
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_setsockopt
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004034ac
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 8]
call fcn.00474d24
mov dword [ebp - 0x20], eax
mov ax, word [ebp - 2]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_bind
inc eax
jne 0x475021
mov eax, dword [ebp - 0x10]
call fcn.00475048
jmp 0x47503f
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_listen
inc eax
jne 0x475039
mov eax, dword [ebp - 0x10]
call fcn.00475048
jmp 0x47503f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x47505c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
jle 0x4750ba
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x4750a2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x4750ba
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jg 0x47507c
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
jle 0x475122
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x47510a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x475122
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jg 0x4750e4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4