joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b590
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003aee5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1004c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 8]
cmp ebx, dword [ebp + 0xc]
je 0x1001b76f
nop dword [eax]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.1001b520
cmp dword [ebp - 0x1c], 0
jne 0x1001b760
cmp dword [edi + 8], 0x15555555
je 0x1001b783
lea eax, [edi + 4]
mov dword [ebp - 0x28], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.1001ebdf
mov cx, word [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov word [esi + 8], cx
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x1c]
inc ecx
mov dword [ebp - 0x14], eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1003f850]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x1003f850]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
seta al
test al, al
je 0x1001b707
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.100285c0
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1001f0a0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x1001b6e0
cmp eax, 0x200
jae 0x1001b6de
shl eax, 3
cmp eax, ecx
jae 0x1001b6e0
mov eax, ecx
push eax
mov ecx, edi
call fcn.1001cbc0
push dword [ebp - 0x10]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.1001b520
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x1001b70a
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [edi + 8]
mov ebx, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
jne 0x1001b742
mov dword [ecx + eax*8], esi
jmp 0x1001b755
cmp dword [ecx + eax*8], edx
jne 0x1001b74c
mov dword [ecx + eax*8], esi
jmp 0x1001b759
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1001b759
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
add ebx, 2
mov dword [ebp + 8], ebx
cmp ebx, dword [ebp + 0xc]
jne 0x1001b5d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.1001d215
int3
Function at 0x1001cbc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
cmp edx, eax
ja 0x1001ccfd
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10018700
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x1001ccd8
mov eax, ecx
movzx edx, byte [eax + 8]
mov ecx, dword [ecx]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
mov esi, dword [edi + 0x18]
and esi, edx
mov edx, dword [edi + 0xc]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp + 8], ebx
cmp esi, dword [ebp - 8]
jne 0x1001cc5c
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x1001cccd
mov edx, dword [ebx + 4]
movzx edi, word [eax + 8]
cmp di, word [edx + 8]
jne 0x1001cc95
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x1001cc90
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x1001ccca
cmp esi, edx
je 0x1001ccad
nop dword [eax]
mov edx, dword [edx + 4]
cmp di, word [edx + 8]
je 0x1001cce1
cmp esi, edx
jne 0x1001cca0
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 8]
jne 0x1001cc22
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x1001ccca
push str.invalid_hash_bucket_count
call fcn.1001d215
int3
Function at 0x1001cd10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1001cdb8
mov eax, dword [ebx + 0x1c]
shr eax, 3
push esi
cmp eax, ecx
jbe 0x1001ce60
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
cmp edx, eax
je 0x1001cdb7
mov eax, dword [edx + 4]
mov esi, edx
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.1001ec0f
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x1001cdbd
cmp esi, dword [ebp - 4]
jne 0x1001cd83
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x1001cdae
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x1001cdd1
mov dword [ecx], edx
mov eax, edx
jmp 0x1001cdd4
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
cmp esi, edx
je 0x1001cdae
nop dword [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebp - 0x1c]
and eax, dword [ebx + 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.1001ec0f
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x1001ce42
cmp esi, dword [ebp - 4]
jne 0x1001ce10
mov eax, dword [ebp - 0x14]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp esi, edx
jne 0x1001cde0
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x1001ce85
mov esi, dword [eax]
push 0xc
push eax
call fcn.1001ec0f
add esp, 8
mov eax, esi
test esi, esi
jne 0x1001ce72
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.100120d0
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002e803
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10043a3c
push 0x10043a34
push str.FlsAlloc
push 0x1e
call fcn.1002e68d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002e837
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c1ac]
call esi
jmp 0x1002e83d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002e881
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10043a4c
push 0x10043a44
push str.FlsGetValue
push 0x20
call fcn.1002e68d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002e8b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c1ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10031613
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100316b0
push ebx
push esi
call fcn.100315dc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10030521
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003165d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100316af
push edi
push eax
call fcn.1002d0c2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003167d
call fcn.1002d088
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100316ae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10030521
add esp, 0x20
test eax, eax
jne 0x1003169c
push edi
call fcn.1002d088
jmp 0x100316a4
push ebx
call fcn.1002d088
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10039080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100390ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100390ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401700
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x4017a1
add esi, 0x10
push ebx
mov eax, dword [esi]
test eax, eax
jne 0x40175a
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x401786
mov ecx, dword [esi - 4]
mov edx, dword [edi + 0xc]
push 4
push 0x1000
push ebx
add ecx, ebp
push ecx
call edx
push ebx
push 0
mov dword [esi - 8], eax
push eax
mov eax, dword [edi + 0x20]
call eax
jmp 0x401783
mov ecx, dword [esi - 4]
mov edx, dword [edi + 0xc]
push 4
push 0x1000
push eax
add ecx, ebp
push ecx
call edx
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x24]
mov ebx, eax
mov eax, dword [esi]
push eax
push ecx
push ebx
call edx
mov dword [esi - 8], ebx
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [esp + 0xc]
movzx ecx, word [edx + 6]
inc eax
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x401728
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x4017b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebp
push edi
mov edi, dword [eax]
movzx ecx, word [edi + 0x14]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [ecx + edi + 0x18]
cmp dx, word [edi + 6]
jae 0x4018ac
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40184c
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
mov edx, dword [esp + 0x38]
push 0x4000
push eax
mov eax, dword [edx + 0x10]
push ecx
call eax
jmp 0x401894
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [esp + edx*4 + 0x14]
test eax, 0x4000000
je 0x401863
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40187e
test al, 0x40
je 0x401875
mov ecx, dword [edi + 0x20]
jmp 0x40187c
test al, al
jns 0x401894
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401894
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x14]
push ecx
call eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx]
movzx edx, word [edi + 6]
inc ebp
add ebx, 0x28
cmp ebp, edx
jl 0x401816
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x24
ret
Function at 0x401a70
Capabilities:
Parse pe header

Disassembly:
push ecx
push edi
mov edi, eax
mov eax, dword [esp + 0xc]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x401a87
xor eax, eax
pop edi
pop ecx
ret
push ebp
mov ebp, dword [eax + 0x3c]
add ebp, eax
cmp dword [ebp], 0x4550
je 0x401a9c
pop ebp
xor eax, eax
pop edi
pop ecx
ret
mov edx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x34]
mov ecx, dword [edi + 0xc]
push ebx
push 4
push 0x2000
push edx
push eax
call ecx
mov ebx, eax
test ebx, ebx
jne 0x401ad3
mov edx, dword [ebp + 0x50]
push 4
push 0x2000
push edx
push eax
mov eax, dword [edi + 0xc]
call eax
mov ebx, eax
test ebx, ebx
jne 0x401ad3
pop ebx
pop ebp
pop edi
pop ecx
ret
mov ecx, dword [edi + 0x1c]
push esi
push 0x14
push 0
call ecx
mov edx, dword [edi + 0x18]
push eax
call edx
mov ecx, dword [edi + 0xc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x50]
push 0x1000
push eax
push ebx
call ecx
mov edx, dword [ebp + 0x54]
mov eax, dword [edi + 0xc]
push 4
push 0x1000
push edx
push ebx
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [esp + 0x10], eax
push edx
push ecx
push eax
call fcn.0040bd90
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x3c]
mov edx, dword [esp + 0x1c]
push esi
add eax, edx
push ebp
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00401700
mov eax, ebx
add esp, 0x18
sub eax, dword [ebp + 0x34]
je 0x401b5a
push eax
mov eax, esi
call fcn.004019f0
add esp, 4
push esi
push edi
call fcn.004018c0
add esp, 8
test eax, eax
je 0x401b8a
push esi
push edi
call fcn.004017b0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 8
test eax, eax
je 0x401b99
add eax, ebx
je 0x401b8a
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x401b92
pop esi
pop ebx
pop ebp
xor eax, eax
pop edi
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop ebp
pop edi
pop ecx
ret
Function at 0x401f90
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4213c0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push 0xf003f
push 0
mov ebx, ecx
push 0
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x402008
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
add ebx, 4
push ebx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x402021
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x218
ret
push esi
push edi
mov ecx, 0xe
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [esp + 0x124]
mov eax, ebx
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402042
lea edi, [esp + 0x124]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402053
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x128]
push eax
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40209b
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
push ebp
call esi
xor eax, eax
jmp 0x402116
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020a2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push 2
push 0
push str.EventMessageFile
push eax
call esi
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.TypesSupported
push edx
mov dword [esp + 0x30], 7
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
push 0x64
push 4
mov eax, ebx
call fcn.004021b0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
push ebp
call esi
mov eax, 1
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a5bc
add esp, 0x218
ret

Function at 0x4021b0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
test eax, eax
je 0x4021d3
mov esi, 1
cmp dword [edi + 0x74], 0
jne 0x4021e8
lea eax, [edi + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x74]
test eax, eax
je 0x40220e
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push esi
push 0
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop esi
add esp, 0xc
ret 8
Function at 0x402300
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
push str.Entering_CNTService::Initialize__
mov ecx, esi
call fcn.004026c0
mov eax, dword [esi + 0x4c]
push 2
push eax
push str.CNTService::SetStatus__lu___lu_
mov ecx, esi
call fcn.004026c0
mov ecx, dword [esi + 0x4c]
add esp, 0x10
lea ebx, [esi + 0x50]
push ebx
push ecx
mov dword [esi + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
cmp edi, ebp
jne 0x4023c7
cmp dword [esi + 0x74], ebp
jne 0x40237b
lea ecx, [esi + 4]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x74]
cmp eax, ebp
je 0x402397
push ebp
lea edx, [esp + 0x10]
push edx
push ebp
push ebp
push ebp
push 0x68
push ebp
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [esi + 0x4c]
push 1
push eax
push str.CNTService::SetStatus__lu___lu_
mov ecx, esi
call fcn.004026c0
mov ecx, dword [esi + 0x4c]
add esp, 0xc
push ebx
push ecx
mov dword [esi + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp dword [esi + 0x74], ebp
jne 0x4023da
lea edx, [esi + 4]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x74]
cmp eax, ebp
je 0x4023f6
push ebp
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
push ebp
push 0x69
push ebp
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esi + 0x4c]
push 4
push edx
push str.CNTService::SetStatus__lu___lu_
mov ecx, esi
call fcn.004026c0
mov eax, dword [esi + 0x4c]
add esp, 0xc
push ebx
push eax
mov dword [esi + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push str.Leaving_CNTService::Initialize__
mov ecx, esi
call fcn.004026c0
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x4026c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x4213c0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
add esi, 4
push esi
lea eax, [esp + 0xc]
push str.__s___lu_:
push eax
call fcn.0040a9a2
add esp, 0x10
lea eax, [esp + 4]
lea edx, [eax + 1]
pop esi
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402700
push edi
sub eax, edx
mov edx, dword [esp + 0x40c]
lea ecx, [esp + 0x410]
push ecx
push edx
lea eax, [esp + eax + 0xc]
push eax
call fcn.0040b00f
lea edi, [esp + 0x10]
add esp, 0xc
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402730
mov cx, word [0x41e678]
lea edx, [esp + 4]
push edx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
call fcn.0040a5bc
add esp, 0x404
ret
Function at 0x4027c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 7
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4027e7
xor eax, eax
pop esi
pop ecx
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0xc], eax
call fcn.0040b2f6
mov edi, eax
add esp, 4
test edi, edi
jne 0x402811
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x40283f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b219
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dword [eax], edi
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret