joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470d24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470dae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.004059c8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405738
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x470d75
mov eax, dword [ebp - 4]
call fcn.004052a8
jmp 0x470d98
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004059c8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00411bdc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004052fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470db5
lea eax, [ebp - 0xc]
call fcn.004052a8
ret
Function at 0x471128
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47122d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x47115e
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00405340
jmp 0x471188
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xb
lea edx, [ebp - 0x78]
mov ecx, 1
mov eax, 0x471248
call fcn.0040dee0
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00403af4
mov dword [ebp - 0x58], 0x44
cmp byte [ebp + 0x10], 0
je 0x4711ac
mov word [ebp - 0x28], 1
jmp 0x4711b2
mov word [ebp - 0x28], 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405738
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00405738
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x471217
cmp byte [ebp + 0xc], 0
je 0x4711fd
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471234
lea eax, [ebp - 0x14]
call fcn.004052a8
ret

Function at 0x48e464
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48e4fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.004059c8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405738
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405568
test eax, eax
jns 0x48e4ab
call fcn.004041ac
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jns 0x48e4ba
call fcn.004041ac
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004059c8
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [0x47289c]
call fcn.00471984
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004052fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e502
lea eax, [ebp - 0xc]
call fcn.004052a8
ret
Function at 0x492450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4924c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0049242c
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0048f8d0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.0048f32c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4924c8
lea eax, [ebp - 0x14]
call fcn.004052a8
ret
Function at 0x49d3a8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x49d3fe
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor al, byte [edx]
and eax, 0xff
mov eax, dword [eax*4 + 0x4d86d4]
mov edx, dword [ebp - 0x10]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x49d3d4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x49d4c4
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49d589
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0xff
call fcn.004059c8
push 0xff
mov eax, dword [ebp - 8]
call fcn.00405738
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [ebp - 8]
call fcn.00405738
call fcn.0040d414
mov edx, eax
lea eax, [ebp - 8]
call fcn.004059c8
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0040d1e8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00411b90
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00405340
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405738
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x49d566
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d590
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004052cc
lea eax, [ebp - 8]
call fcn.004052a8
ret

Function at 0x49d778
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, 0xff
call fcn.00403274
mov dword [ebp - 8], eax
mov eax, 4
call fcn.00403274
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xff
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x49d7c2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004054a0
jmp 0x49d7ca
mov eax, dword [ebp - 4]
call fcn.004052a8
mov eax, dword [ebp - 8]
call fcn.00403290
mov edx, 4
mov eax, dword [ebp - 0xc]
call fcn.00403290
mov esp, ebp
pop ebp
ret
Function at 0x4b5180
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 1
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4b5291
xor eax, eax
mov al, byte [ebp - 0xa]
cmp eax, 0x3d
jg 0x4b51c5
je 0x4b523b
sub eax, 0x2b
je 0x4b521f
sub eax, 4
je 0x4b522d
dec eax
sub eax, 0xa
jb 0x4b5207
jmp 0x4b5291
add eax, 0xffffffbf
sub eax, 0x1a
jb 0x4b51da
add eax, 0xfffffffa
sub eax, 0x1a
jb 0x4b51ef
jmp 0x4b5291
mov eax, dword [ebp - 0x10]
shl eax, 6
xor edx, edx
mov dl, byte [ebp - 0xa]
add eax, edx
sub eax, 0x41
mov dword [ebp - 0x10], eax
jmp 0x4b523f
mov eax, dword [ebp - 0x10]
shl eax, 6
xor edx, edx
mov dl, byte [ebp - 0xa]
add eax, edx
sub eax, 0x61
add eax, 0x1a
mov dword [ebp - 0x10], eax
jmp 0x4b523f
mov eax, dword [ebp - 0x10]
shl eax, 6
xor edx, edx
mov dl, byte [ebp - 0xa]
add eax, edx
sub eax, 0x30
add eax, 0x34
mov dword [ebp - 0x10], eax
jmp 0x4b523f
mov eax, dword [ebp - 0x10]
shl eax, 6
add eax, 0x3e
mov dword [ebp - 0x10], eax
jmp 0x4b523f
mov eax, dword [ebp - 0x10]
shl eax, 6
add eax, 0x3f
mov dword [ebp - 0x10], eax
jmp 0x4b523f
shl dword [ebp - 0x10], 6
cmp byte [ebp - 0xa], 0x3d
je 0x4b5258
mov eax, dword [ebp - 0x14]
inc eax
and eax, 0x80000003
jns 0x4b5255
dec eax
or eax, 0xfffffffc
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4b5291
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and al, 0xff
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x10]
shr eax, 8
and al, 0xff
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0x10]
and al, 0xff
mov byte [ebp - 0x15], al
lea edx, [ebp - 0x17]
mov ecx, 3
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0xa]
mov ecx, 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
dec eax
je 0x4b51a0
mov eax, dword [ebp - 0x14]
sub eax, 1
jb 0x4b5301
dec eax
je 0x4b52b8
dec eax
je 0x4b52d5
jmp 0x4b52fd
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and al, 0xff
mov byte [ebp - 0x17], al
lea edx, [ebp - 0x17]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x4b5301
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and al, 0xff
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x10]
shr eax, 8
and al, 0xff
mov byte [ebp - 0x16], al
lea edx, [ebp - 0x17]
mov ecx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x4b5301
mov byte [ebp - 9], 0
mov al, byte [ebp - 9]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5518
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov al, byte [ebp - 9]
add al, 0x41
xor edx, edx
mov dl, byte [ebp - 9]
mov byte [ebp + edx - 0x54], al
mov al, byte [ebp - 9]
add al, 0x61
xor edx, edx
mov dl, byte [ebp - 9]
mov byte [ebp + edx - 0x3a], al
inc byte [ebp - 9]
cmp byte [ebp - 9], 0x1a
jne 0x4b5529
mov byte [ebp - 9], 0
mov al, byte [ebp - 9]
add al, 0x30
xor edx, edx
mov dl, byte [ebp - 9]
mov byte [ebp + edx - 0x20], al
inc byte [ebp - 9]
cmp byte [ebp - 9], 0xa
jne 0x4b5552
mov byte [ebp - 0x16], 0x2b
mov byte [ebp - 0x15], 0x2f
lea edx, [ebp - 0xc]
mov ecx, 3
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jne 0x4b55fb
xor eax, eax
mov al, byte [ebp - 0xc]
shr eax, 2
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xc]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0xb]
shr edx, 4
or eax, edx
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xb]
and al, 0xf
and eax, 0xff
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0xa]
shr edx, 6
or eax, edx
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xa]
and al, 0x3f
and eax, 0xff
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0xd], al
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x4b5571
cmp dword [ebp - 0x14], 1
jne 0x4b563e
xor eax, eax
mov al, byte [ebp - 0xc]
shr eax, 2
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xc]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0xf], al
mov byte [ebp - 0xe], 0x3d
mov byte [ebp - 0xd], 0x3d
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x4b5699
cmp dword [ebp - 0x14], 2
jne 0x4b5699
xor eax, eax
mov al, byte [ebp - 0xc]
shr eax, 2
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xc]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0xb]
shr edx, 4
or eax, edx
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xb]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], 0x3d
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bed74
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 4], eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov ecx, 0x58
call fcn.00403588
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0x67452301
mov dword [ebp - 0x50], 0xefcdab89
mov dword [ebp - 0x4c], 0x98badcfe
mov dword [ebp - 0x48], 0x10325476
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x5c]
mov ecx, 0x58
call fcn.00403588
mov esp, ebp
pop ebp
ret
Function at 0x4bfc88
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4bfce8
xor eax, eax
push ebp
push 0x4bfce1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x3e8
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfce8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c248c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x34
call fcn.00403af4
mov eax, dword [ebp - 4]
call fcn.0040cec4
test al, al
je 0x4c2535
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00405738
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c2535
mov eax, dword [ebp - 0x10]
call fcn.00403274
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405738
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4c252a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4c2540
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4c252a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 9], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.00403290
mov al, byte [ebp - 9]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c5648
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x4c56e0
push 0
mov eax, ebx
call fcn.00405738
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4c56bb
mov ebx, esi
test ebx, ebx
je 0x4c5691
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, esi
call fcn.00405738
push eax
push 1
push 0
mov eax, edi
call fcn.00405738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x4c56d6
mov ecx, dword [0x4d95ac]
mov dl, 1
mov eax, dword [0x4c393c]
call fcn.00410ea0
call fcn.00404c1c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4cbef8
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
mov eax, ebx
call fcn.00405738
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4cbf31
mov eax, esi
call fcn.00405738
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edx
pop esi
pop ebx
ret

Function at 0x4ce2ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp word [eax], 0x25ff
jne 0x4ce316
mov eax, dword [ebp - 4]
mov eax, dword [eax + 2]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
jmp 0x4ce31c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 5
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4ce3c9
xor eax, eax
push ebp
push 0x4ce3c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov edx, dword [ebp - 0x1c]
add edx, 5
mov eax, dword [ebp - 0x20]
call fcn.004ce258
mov edx, dword [ebp - 0x1c]
add edx, 4
mov byte [edx], al
mov eax, dword [ebp - 0x20]
mov byte [eax], 0xe9
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
sub eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
inc eax
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
add eax, 5
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce3c9
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 5
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x4d1a0c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov byte [ebp - 1], 2
push 1
push 0
push 0
call fcn.00429b20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d1acc
xor eax, eax
push ebp
push 0x4d1ac5
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0x4d1ad4
mov eax, dword [ebp - 8]
push eax
call fcn.00429b28
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d1aae
xor eax, eax
push ebp
push 0x4d1aa7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00429b30
test eax, eax
jne 0x4d1a80
call fcn.00404cc8
call fcn.00404cc8
jmp 0x4d1acc
cmp dword [ebp - 0x24], 4
jne 0x4d1a8c
mov byte [ebp - 1], 0
jmp 0x4d1a90
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1aae
mov eax, dword [ebp - 0xc]
push eax
call fcn.00429b00
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1acc
mov eax, dword [ebp - 8]
push eax
call fcn.00429b00
ret
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x40689b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 4]
mov dword [esp + 0x1a0], 0
push ecx
push 0x10
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x10
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4014ed
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4014ed
push esi
mov esi, dword [eax]
lea ecx, [esp + 4]
mov dword [esp + 0x1a4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
add esp, 0x1a4
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp]
mov dword [esp + 0x1a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x198]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x4021f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
call sub.MFC42.DLL_AfxSocketInit
test eax, eax
jne 0x402211
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edi, 0x7365c4
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x7365c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x28]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x12c]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x40227f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x24]
push ecx
call sub.WS2_32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
jne 0x4022a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4022ed
mov eax, dword [esp + 0x10]
xor esi, esi
movsx ecx, word [ebp + 0xa]
mov esi, dword [edx + esi]
mov edx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, dword [esp + 0x134]
jne 0x4022da
mov eax, dword [esp + 0x18]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edx, dword [ebp + 0xc]
inc ebx
lea esi, [ebx*4]
cmp dword [esi + edx], 0
jne 0x4022ae
jmp 0x4022f1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
test ecx, ecx
je 0x4022fe
mov dword [ecx], ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret