joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b483
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b2f4

Function at 0x41b87d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b260
mov eax, dword [0x47d740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419264
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b8bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ba1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426310
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47fda0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c61c
mov ecx, dword [esi*4 + 0x47fda0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ba14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ba14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ba14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c61c
add esp, 0x14
test edx, edx
jl 0x41ba14
jg 0x41b98a
test eax, eax
jb 0x41ba14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ba14
jl 0x41b9a4
cmp dword [ebp - 0x1008], eax
ja 0x41ba14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b9c2
test ebx, ebx
je 0x41b9fb
cmp ecx, edi
jae 0x41b9fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b9dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b9e8
cmp byte [ecx + 1], 0xa
jne 0x41b9e8
inc ecx
jmp 0x41b9e8
movzx eax, al
movsx eax, byte [eax + 0x47da08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b9c2
cmp edx, ebx
jne 0x41b9c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ba19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a62d
leave
ret
Function at 0x41baba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47fda0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bafa
cmp byte [ebx], 0xa
jne 0x41bafa
or byte [eax + edi + 0x28], 4
jmp 0x41baff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bbfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41bbdf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bb2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bb53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb5d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41bb10
jmp 0x41bbfd
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bbda
cmp dword [ebp - 0xc], 0
je 0x41bbda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47fda0]
test byte [eax + edi + 0x28], 0x48
je 0x41bbb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb9f
mov byte [esi], dl
jmp 0x41bbb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47fda0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bbfd
cmp byte [ebp - 1], 0xa
jne 0x41bbc3
cmp esi, ebx
jne 0x41bbc3
mov byte [esi], 0xa
jmp 0x41bbfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bbfd
mov byte [esi], 0xd
jmp 0x41bbfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47fda0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bbf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bbfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bc06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47fda0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bc49
cmp word [esi], dx
jne 0x41bc49
or byte [edi + eax + 0x28], 4
jmp 0x41bc4e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bda1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bd81
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bc90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bcc6
cmp eax, edx
jae 0x41bcd2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bc68
jmp 0x41bda1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd7d
cmp dword [ebp - 0x14], 0
je 0x41bd7d
mov eax, dword [ebx*4 + 0x47fda0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bd55
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bd1e
mov word [esi], cx
jmp 0x41bd51
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47fda0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47fda0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47fda0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bda1
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd66
cmp esi, dword [ebp + 0xc]
jne 0x41bd66
mov word [esi], bx
jmp 0x41bd9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bda1
push 0xd
jmp 0x41bd9a
mov ecx, dword [ebx*4 + 0x47fda0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd98
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bda1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a867
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.0040a867
xor esi, esi
push esi
push esi
push esi
push esi
mov ebx, dword [ebp + 8]
xor eax, eax
shl eax, 2
add ebx, eax
mov dword [ebx + 0x14], 0
mov ebx, dword [ebp + 8]
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebx + 0x14], 0
mov ebx, dword [ebp + 8]
xor eax, eax
shl eax, 2
add ebx, eax
mov dword [ebx], 0x67452301
mov ebx, dword [ebp + 8]
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebx], 0xefcdab89
mov ebx, dword [ebp + 8]
mov eax, 2
shl eax, 2
add ebx, eax
mov dword [ebx], 0x98badcfe
mov ebx, dword [ebp + 8]
mov eax, 3
shl eax, 2
add ebx, eax
mov dword [ebx], 0x10325476
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40c1f1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.0040c1f1
xor esi, esi
xor edi, edi
mov ecx, 0x10b
push esi
dec ecx
jne 0x40c20d
mov edi, 0x400
lea ebx, [ebp - 0x498]
mov eax, ebx
mov dword [ebp - 0x4b0], eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
fldcw word [ebp - 0x10]
mov esi, eax
fild qword [0x186aa78]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
fcompp
fnstsw ax
sahf
je 0x40c2f0
lea ebx, [ebp - 0x4ac]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x4a8], eax
push 0
lea ebx, [ebp - 0x4a0]
push ebx
mov eax, edi
push eax
push dword [ebp - 0x4b0]
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
je 0x40c2e4
push dword [ebp - 0x4a0]
push dword [ebp - 0x4b0]
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040bd3e
mov eax, dword [ebp - 0x4a8]
sub eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
je 0x40c2e4
jmp 0x40c27d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x410096
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00410096
xor esi, esi
push esi
push esi
push esi
push esi
push esi
mov ebx, 0x100
xor eax, eax
call fcn.004554b7
mov ebx, dword [ebp + 8]
lea ebx, [ebx + 0x20]
mov ecx, 0x100
call fcn.0045b409
mov ebx, dword [ebp + 8]
lea ebx, [ebx + 0x20]
mov eax, ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x1c], eax
mov ebx, 0x100
xor eax, eax
call fcn.004554b7
mov ebx, dword [ebp + 8]
lea ebx, [ebx + 0x124]
mov ecx, 0x100
call fcn.0045b409
mov ebx, dword [ebp + 8]
lea ebx, [ebx + 0x124]
mov eax, ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x120], eax
mov eax, 0x410265
mov esi, eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x22c], esi
mov eax, 0x400
mov ecx, esi
add eax, ecx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x230], eax
fild dword [0x186b3f0]
fimul dword [0x186b560]
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x234], eax
fild dword [0x186b404]
fimul dword [0x186b560]
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x238], eax
fild dword [0x186b41c]
fimul dword [0x186b560]
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x23c], eax
fild dword [0x186b424]
fimul dword [0x186b560]
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x240], eax
fild dword [0x186b42c]
fimul dword [0x186b560]
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x244], eax
fild dword [0x186b434]
fimul dword [0x186b560]
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x248], eax
fild dword [0x186b3a8]
fimul dword [0x186b560]
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x224], eax
mov eax, 0x100
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x224]
add eax, ecx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x228], eax
fild dword [0x186b3f0]
fimul dword [0x186b564]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x224]
call fcn.0045a848
faddp st(1)
mov ebx, dword [ebp + 8]
call fcn.0045a86f
mov dword [ebx + 0x24c], eax
jmp 0x41248d
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x412511
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00412511
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov ebx, dword [ebp + 8]
push ebx
push 0
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, esi
test eax, eax
je 0x4125ae
push 0
push 0
push 0
push 4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
fldcw word [ebp - 0x10]
mov edi, eax
mov eax, edi
test eax, eax
je 0x4125a2
mov ebx, edi
mov eax, dword [ebx]
mov dword [ebp - 0xa4], eax
mov eax, 4
add eax, edi
mov ecx, eax
mov eax, dword [ebp - 0xa4]
call fcn.0045635d
lea ebx, [ebp - 0x98]
call fcn.0045a876
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
fldcw word [ebp - 0x10]
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4174f2
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004174f2
xor esi, esi
mov ecx, 0x1b
push esi
dec ecx
jne 0x41750c
push 0
lea ebx, [ebp - 0xec]
push ebx
lea ebx, [ebp - 0xdc]
push ebx
lea ebx, [ebp + 8]
call fcn.0045b45a
mov eax, 4
call fcn.0045ac7a
lea ebx, [esp + 8]
call fcn.0045a938
push 0
push 0x10
push 0
push 0
push 0
lea ebx, [ebp + 0x108]
push ebx
lea ebx, [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00456355
pop eax
add esp, 4
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, esi
test eax, eax
je 0x417592
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], esi
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x200
Function at 0x4175b5
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004175b5
xor esi, esi
mov ecx, 0x5c
push esi
dec ecx
jne 0x4175cf
mov eax, 0x44
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xb0], 1
mov word [ebp - 0xac], 0
push 0
push 0x104
lea ebx, [ebp - 0x1f4]
push ebx
lea ebx, [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x417619
jmp 0x4176ff
push 0
push 0
push 0
lea ebx, [ebp - 0xec]
push ebx
lea ebx, [ebp - 0xdc]
push ebx
lea ebx, [ebp + 8]
call fcn.0045b45a
mov eax, 4
call fcn.0045ac7a
lea ebx, [esp + 0x10]
call fcn.0045a938
push 0
push 0x10
push 0
push 0
push 0
mov edx, 0x185eb48
call fcn.0045b687
lea ebx, [ebp - 0x1f4]
call fcn.0045b45a
call fcn.0045ab3a
mov edx, 0x185e804
call fcn.0045b687
call fcn.0045ab3a
lea ebx, [ebp + 0x108]
call fcn.0045b45a
call fcn.0045ab3a
lea ebx, [esp + 0x24]
call fcn.0045a938
mov edx, 0x185eb28
call fcn.0045b687
lea ebx, [esp + 0x24]
call fcn.0045a938
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push eax
mov ebx, esp
mov eax, dword [ebx + 0xc]
call fcn.00456355
mov eax, dword [ebx + 8]
call fcn.00456355
mov eax, dword [ebx + 4]
call fcn.00456355
pop eax
add esp, 0xc
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, esi
test eax, eax
je 0x4176f9
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], esi
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x200

Function at 0x417832
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00417832
xor esi, esi
mov ecx, 0x4e8
push esi
dec ecx
jne 0x41784c
mov edx, dword [ebp + 0x10]
call fcn.0045b670
mov edx, 0x185e9a0
call fcn.0045b687
call fcn.0045abcf
jne 0x41788e
mov ebx, str.AcpiData
call fcn.0045b45a
mov edx, 0x185eb58
call fcn.0045b687
call fcn.0045ab3a
lea ebx, [ebp + 0x10]
call fcn.0045a876
push 0
lea ebx, [ebp + 0x10]
call fcn.0045b77c
push ebx
push 0x1388
lea ebx, [ebp - 0x1420]
push ebx
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [esp + 0xc]
call fcn.0045a938
lea ebx, [ebp + 0xc]
call fcn.0045b77c
push ebx
lea ebx, [ebp + 8]
call fcn.0045b77c
push ebx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00456355
pop eax
add esp, 4
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, esi
test eax, eax
je 0x417932
lea ebx, [ebp - 0x1420]
call fcn.0045b45a
xor eax, eax
call fcn.004557b7
xor eax, eax
call fcn.00455785
lea ebx, [ebp - 0x1420]
mov ecx, 0x1388
call fcn.0045b4a3
lea ebx, [ebp - 0x1420]
call fcn.0045b45a
lea ebx, [ebp - 0x98]
call fcn.0045a876
jmp 0x417947
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [ebp - 0x98]
call fcn.0045a876
lea ebx, [ebp - 0x1420]
mov eax, 0x1388
call fcn.0044f5df
call fcn.0045b4f9
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x418415
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00418415
xor esi, esi
xor edi, edi
mov ecx, 0xe
push esi
dec ecx
jne 0x418431
push 0
push 0
push 0xf003f
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [esp + 8]
call fcn.0045a938
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [esp + 8]
call fcn.0045a938
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
push eax
mov ebx, esp
mov eax, dword [ebx + 8]
call fcn.00456355
mov eax, dword [ebx + 4]
call fcn.00456355
pop eax
add esp, 8
fldcw word [ebp - 0x10]
mov esi, eax
fild dword [0x186b388]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
fcompp
fnstsw ax
sahf
jne 0x4184a5
jmp 0x41850c
push 0xf01ff
mov ebx, dword [ebp + 8]
push ebx
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
fldcw word [ebp - 0x10]
mov edi, eax
cmp edi, 0
jne 0x4184d6
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
jmp 0x41850c
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_DeleteService]
fldcw word [ebp - 0x10]
test eax, eax
je 0x4184f4
mov dword [ebp - 0x98], 1
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x418529
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00418529
xor esi, esi
xor edi, edi
mov ecx, 0xe
push esi
dec ecx
jne 0x418545
push 0
push 0
push 0xf003f
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [esp + 8]
call fcn.0045a938
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [esp + 8]
call fcn.0045a938
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
push eax
mov ebx, esp
mov eax, dword [ebx + 8]
call fcn.00456355
mov eax, dword [ebx + 4]
call fcn.00456355
pop eax
add esp, 8
fldcw word [ebp - 0x10]
mov esi, eax
fild dword [0x186b388]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
fcompp
fnstsw ax
sahf
jne 0x4185b9
jmp 0x41869f
push 0xf01ff
mov ebx, dword [ebp + 8]
push ebx
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
fldcw word [ebp - 0x10]
mov edi, eax
cmp edi, 0
jne 0x4185ea
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
jmp 0x41869f
lea ebx, [ebp - 0xbc]
push ebx
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_QueryServiceStatus]
fldcw word [ebp - 0x10]
fild dword [0x186ade0]
mov eax, dword [ebp - 0xb8]
call fcn.0045a848
fcompp
fnstsw ax
sahf
jne 0x418640
mov dword [ebp - 0x98], 1
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
jmp 0x41869f
push 0
push 0
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_StartServiceA]
fldcw word [ebp - 0x10]
test eax, eax
je 0x418667
mov dword [ebp - 0x98], 1
jmp 0x418687
push 0x420
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x418687
mov dword [ebp - 0x98], 1
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4186bc
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004186bc
xor esi, esi
xor edi, edi
mov ecx, 0x11
push esi
dec ecx
jne 0x4186d8
push 0
push 0
push 0xf003f
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [esp + 8]
call fcn.0045a938
mov edx, 0x185e9a0
call fcn.0045b687
lea ebx, [esp + 8]
call fcn.0045a938
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
push eax
mov ebx, esp
mov eax, dword [ebx + 8]
call fcn.00456355
mov eax, dword [ebx + 4]
call fcn.00456355
pop eax
add esp, 8
fldcw word [ebp - 0x10]
mov esi, eax
fild dword [0x186b388]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
fcompp
fnstsw ax
sahf
jne 0x41874c
jmp 0x41882a
push 0xf01ff
mov ebx, dword [ebp + 8]
push ebx
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
fldcw word [ebp - 0x10]
mov edi, eax
cmp edi, 0
jne 0x41877d
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
jmp 0x41882a
lea ebx, [ebp - 0xbc]
push ebx
push 1
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_ControlService]
fldcw word [ebp - 0x10]
test eax, eax
je 0x418812
mov dword [ebp - 0xc0], 8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebx, [ebp - 0xbc]
push ebx
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_QueryServiceStatus]
fldcw word [ebp - 0x10]
fild dword [0x186addc]
mov eax, dword [ebp - 0xb8]
call fcn.0045a848
fcompp
fnstsw ax
sahf
jne 0x4187ee
mov dword [ebp - 0x98], 1
jmp 0x418800
mov eax, 0x1f4
call fcn.00455620
dec dword [ebp - 0xc0]
jne 0x4187b0
mov eax, 8
sub eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc0], eax
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4